VictoriaMetrics/lib/protoparser/prometheus
Aliaksandr Valialkin f3e89754a9 lib/promscrape: reduce CPU usage for common case when calculating scrape_series_added metric
Also reduce CPU usage when applying `series_limit` to scrape targets with constant set of metrics.

The main idea is to perform the calculations on scrape_series_added and series_limit
only if the set of metrics exposed by the target has been changed.
Scrape targets rarely change the set of exposed metrics,
so this optimization should reduce CPU usage in general case.
2021-09-12 12:53:14 +03:00
..
parser.go lib/promscrape: reduce CPU usage for common case when calculating scrape_series_added metric 2021-09-12 12:53:14 +03:00
parser_test.go lib/promscrape: reduce CPU usage for common case when calculating scrape_series_added metric 2021-09-12 12:53:14 +03:00
parser_timing_test.go lib/promscrape: send stale markers for disappeared metrics like Prometheus does 2021-09-11 10:51:04 +03:00
streamparser.go lib/protoparser: stop reading the input stream as soon as the callback provided by the caller returns error 2021-06-14 15:18:49 +03:00
streamparser_test.go Fixes error handling for promscrape.streamParse (#1009) 2021-01-12 13:31:47 +02:00