prometheus/prometheus

Better support for relabeling when using multiple api servers

Aperta

#12.456 aperta il 15 giu 2023

 (8 commenti) (1 reazione) (0 assegnatari)Go (10.408 fork)batch import
component/service discoverycomponent/service discovery/kuberneteshelp wantedkind/featurepriority/P3

Metriche repository

Star
 (64.042 stelle)
Metriche merge PR
 (Merge medio 11g 5h) (118 PR mergiate in 30 g)

Descrizione

Proposal

Scrape configs allow specifying multiple kubernetes_sd_configs, which allows service discovery across multiple api server's. However all information regarding which cluster is being accessed is lost in the relabel_configs.

Adding a new __meta_label_kubernetes_sd_config_name, to relabel configs, and an optional name value to the kubernetes_sd_config itself would allow for more powerful scraping and relabeling when accessing multiple clusters

Guida contributor