Skip to content

Add ability to set a limit of the number of targets per scrape config #7340

@lilic

Description

@lilic

Proposal

Original proposal idea: Add ability to set a limit of total series/samples per scrape config. This would override any sample_limit set per scrape config target and set the limit of series instead proportional for each scrape target. This would be an optional field, so would be compatible with any current configuration. (Also exposing this value as a metric to potentially alert on this with the scrape_samples_scraped metric, might be a good idea.).

New proposal idea: Add ability to set a limit of the number of targets per scrape config. This would work together with the sample_limit per scrape config target and would provide a way to capacity plan better.

Feedback or alternative ideas welcome! :)

Use case. Why is this important?
Due to the dynamic nature of service discovery, it’s practically impossible to do accurate capacity planning, having an overall limit regardless of the number of scrape targets would be very helpful from an admin perceptive to prevent any accidental bad actor by limiting the number of ingested series.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions