VictoriaMetrics/lib/protoparser/prometheus
Aliaksandr Valialkin 09670479cd 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:45 +03:00
..
parser_test.go lib/promscrape: reduce CPU usage for common case when calculating scrape_series_added metric 2021-09-12 12:53:45 +03:00
parser_timing_test.go lib/promscrape: send stale markers for disappeared metrics like Prometheus does 2021-09-11 11:02:56 +03:00
parser.go lib/promscrape: reduce CPU usage for common case when calculating scrape_series_added metric 2021-09-12 12:53:45 +03:00
streamparser_test.go Fixes error handling for promscrape.streamParse (#1009) 2021-01-12 13:35:09 +02: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:20:38 +03:00