prometheus/retrieval
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 ServerName into TLS Config 2016-05-26 14:24:49 -07:00
helpers_test.go Fix tests for append API changes 2016-02-03 10:17:08 +01:00
scrape.go Add sample_limit to scrape config. 2016-12-16 15:10:09 +00:00
scrape_test.go Add sample_limit to scrape config. 2016-12-16 15:10:09 +00:00
target.go Refactor and add unittests to scrape result handling. 2016-12-13 16:49:17 +00:00
target_test.go config: extract SD and HTTPClient configurations 2016-11-23 18:23:37 +01:00
targetmanager.go retrieval: refactor TargetManager to return flat list of Targets 2016-12-02 13:28:58 +01:00
targetmanager_test.go discovery: move TargetSet into discovery package 2016-11-23 09:14:44 +01:00