Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scrape_timeout_seconds metric (behind feature flag) #9247

Merged
merged 1 commit into from Sep 2, 2021

Conversation

SuperQ
Copy link
Member

@SuperQ SuperQ commented Aug 24, 2021

Add a new built-in metric scrape_timeout_seconds to allow monitoring
of the ratio of scrape duration to the scrape timeout. Hide behind a
feature flag to avoid additional cardinality by default.

Signed-off-by: SuperQ superq@gmail.com

@roidelapluie
Copy link
Member

In general, do we want to have the feature flag more generic, e.g. extra-scrape-metrics? So we let the door open for #7722 and potentially others.

@SuperQ
Copy link
Member Author

SuperQ commented Aug 24, 2021

I see no issue with extra-scrape-metrics.

docs/feature_flags.md Outdated Show resolved Hide resolved
scrape/manager.go Show resolved Hide resolved
@SuperQ SuperQ force-pushed the superq/scrape_timeout_feature branch from 792e995 to aaa675f Compare August 26, 2021 15:52
@roidelapluie
Copy link
Member

let's have #8911 first, because it will be easier to rebase your pull request than that one.

@SuperQ SuperQ force-pushed the superq/scrape_timeout_feature branch 3 times, most recently from 1d8f237 to 988c522 Compare September 1, 2021 07:22
@roidelapluie roidelapluie changed the title Add scrape_timeout_seconds metric Add scrape_timeout_seconds metric (behind feature flag) Sep 1, 2021
docs/feature_flags.md Outdated Show resolved Hide resolved
cmd/prometheus/main.go Outdated Show resolved Hide resolved
@SuperQ SuperQ force-pushed the superq/scrape_timeout_feature branch from 988c522 to 267c9bd Compare September 1, 2021 13:46
@roidelapluie
Copy link
Member

Since we will have other metrics pretty soon, WDYT about changing directly the internal variable names?

@roidelapluie roidelapluie reopened this Sep 2, 2021
@roidelapluie
Copy link
Member

sorry, I did not mean to close it

Add a new built-in metric `scrape_timeout_seconds` to allow monitoring
of the ratio of scrape duration to the scrape timeout. Hide behind a
feature flag to avoid additional cardinality by default.

Signed-off-by: SuperQ <superq@gmail.com>
@SuperQ SuperQ force-pushed the superq/scrape_timeout_feature branch from 267c9bd to 31f4108 Compare September 2, 2021 10:15
@roidelapluie roidelapluie merged commit 9de6270 into main Sep 2, 2021
@roidelapluie roidelapluie deleted the superq/scrape_timeout_feature branch September 2, 2021 22:56
@roidelapluie
Copy link
Member

Thanks!

valyala added a commit to VictoriaMetrics/VictoriaMetrics that referenced this pull request Sep 12, 2021
valyala added a commit to VictoriaMetrics/VictoriaMetrics that referenced this pull request Sep 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants