VictoriaMetrics/lib/promscrape
Roman Khavronenko 63b538ecd1
vmagent: update SD duration histogram metric if SD is active (#2677)
The change updates histogram for registering SD update duration
only SD is considered as `active`. SD is active if at least
one scraper for this SD has started.

This change supposed to reduce metrics cardinality produced
by duration histogram which gets updated even if SD isn't configured.

See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2671

Signed-off-by: hagen1778 <roman@victoriametrics.com>
2022-06-07 15:46:44 +03:00
..
discovery lib/promscrape/discovery/kubernetes: use unsupportedFieldError() function instead of errContext string 2022-06-07 01:22:07 +03:00
discoveryutils lib/promscrape: properly implement ScrapeConfig.clone() 2022-05-07 00:05:40 +03:00
testdata lib/promscrape: fix errors in test config 2022-02-08 19:56:37 +02:00
client.go lib/promscrape: properly implement ScrapeConfig.clone() 2022-05-07 00:05:40 +03:00
config.go lib/promscrape: add -promscrape.cluster.name command-line flag 2022-06-04 00:37:01 +03:00
config_test.go lib/promscrape: properly implement ScrapeConfig.clone() 2022-05-07 00:05:40 +03:00
config_timing_test.go lib/promscrape: follow-up after 91e290a8ff 2022-04-20 16:11:37 +03:00
scraper.go vmagent: update SD duration histogram metric if SD is active (#2677) 2022-06-07 15:46:44 +03:00
scrapework.go all: follow-up after 8edb390e21 2022-06-07 00:57:09 +03:00
scrapework_test.go lib/promscrape: generate scrape_timeout_seconds metric per each scrape target in the same way as Prometheus 2.30 does 2021-09-12 15:20:44 +03:00
scrapework_timing_test.go app/vmagent: follow-up after fe445f753b 2021-08-05 09:52:32 +03:00
statconn.go lib/promscrape: properly show proxy_url option value at /config page 2021-10-26 21:23:54 +03:00
targetstatus.go all: follow-up after 8edb390e21 2022-06-07 00:57:09 +03:00
targetstatus.qtpl all: follow-up after 8edb390e21 2022-06-07 00:57:09 +03:00
targetstatus.qtpl.go all: follow-up after 8edb390e21 2022-06-07 00:57:09 +03:00