What roles does `kubernetes_sd_configs` support?
IntermediateConceptPrometheus Architecture
Answer
node: one target per node (kubelet address).pod: one target per declared container port.service: one target per service port (for blackbox probing).endpoints/endpointslice: one target per backing pod address of a service; the most common for app scraping.ingress: one target per ingress path (for probing).
kubernetes_sd_configs:
- role: endpointslice
namespaces: { names: [payments] }
More on Prometheus Architecture
Describe the Prometheus architecture.BeginnerWhat does a basic prometheus.yml look like?BeginnerWhat is the `up` metric?BeginnerWhat are `job` and `instance` labels and where do they come from?BeginnerHow is the Prometheus TSDB organized on disk?AdvancedWhat is the WAL and why does Prometheus restart slowly sometimes?Advanced