Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uprequest - support scrape_interval override in relabel_configs #2353
Comments
This comment has been minimized.
This comment has been minimized.
|
This has been discussed before and will not be supported. In general you should almost always have the same scrape interval for an entire Prometheus. |
This comment has been minimized.
This comment has been minimized.
|
We are tackling something in that direction with the prometheus-operator. Currently this only works on The idea is that teams or a company likely have some common practice on metrics and that can be expressed with one |
brian-brazil
closed this
Mar 27, 2017
This comment has been minimized.
This comment has been minimized.
zegl
commented
Jul 9, 2018
|
@brian-brazil I'm interested in knowing the reasoning behind this decision, and I'd like you to reconsider this it. Some exporters use a lot of resources (examples: prometheus-kafka-consumer-group-exporter, jmx_exporter for Cassandra), and often you're willing to reduce the scrape interval for services to keep the resource utilization down. In the cloudwatch_exporter the scrape interval is directly linked to the cost of running the exporter. In the recommended setup data newer than 10 minutes is ignored anyway, so scraping it more often than lets say every 5 minutes is a complete waste of money. A workaround is obviously to setup a separate scraping job that scrapes all pods in that job less frequently, but it's annoying to do it if you have lots of applications with different scrape intervals. |
This comment has been minimized.
This comment has been minimized.
lsowen
commented
Sep 1, 2018
•
|
@brian-brazil I have the same use case. I want to decrease the It looks like a custom Edit: Looks like there is some ongoing discussion about this in #4561 |
This comment has been minimized.
This comment has been minimized.
|
For slow exporters like cloudwatch and certain JMX uses the recommendation is to have a separate scrape config (don't go over 2m). These cases are (thankfully) fairly rare though. This does not require relabelling.
Delay and precision are different things, so this is not true. |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
cameronbraid commentedJan 19, 2017
In kubernetes/openshift, I would like to be able to use annotations on my pods that define the scrape_interval
i.e. I would like to do something like this in the relabel config :
Then I could use annotations on pods/deployment configs such as :