Skip to content
  • Brian Brazil's avatar
    Add sample_limit to scrape config. · 30448286
    Brian Brazil authored
    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
    30448286