January 2020
Intermediate to advanced
640 pages
16h 56m
English
The last scrape target discovery method that we will be discussing in this chapter is highly recommended for workloads running on top of Kubernetes, such as the Links 'R' Us project. Once enabled, Prometheus will invoke the API endpoints exposed by Kubernetes to obtain information about the resource types that the operator is interested in scraping.
Prometheus can be configured to create scrape targets for the following types of Kubernetes resources:
| Resource Type | Description |
| node | Creates a scrape target for each node in the Kubernetes cluster and allows us to collect machine-level metrics that can be exported by running a tool such as node-exporter [9]. |
| service | Scans the Kubernetes Service ... |