prometheus/config
Brian Brazil 30448286c7 Add sample_limit to scrape config.
This imposes a hard limit on the number of samples ingested from the
target. This is counted after metric relabelling, to allow dropping of
problemtic metrics.

This is intended as a very blunt tool to prevent overload due to
misbehaving targets that suddenly jump in sample count (e.g. adding
a label containing email addresses).

Add metric to track how often this happens.

Fixes #2137
2016-12-16 15:10:09 +00:00
..
testdata Add sample_limit to scrape config. 2016-12-16 15:10:09 +00:00
config.go Add sample_limit to scrape config. 2016-12-16 15:10:09 +00:00
config_test.go Add sample_limit to scrape config. 2016-12-16 15:10:09 +00:00