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 uprate function and telegraf client #1904
Comments
This comment has been minimized.
This comment has been minimized.
|
A 10s rate on a 10s scrape will usually not work. I'd suggest at least a 25s rate for this setup so you can handle this, and one failure. |
brian-brazil
added
the
kind/question
label
Aug 21, 2016
This comment has been minimized.
This comment has been minimized.
|
To expand on this, you can only compute a rate over at least two samples of a counter (this is not a Prometheus restriction, it's a mathematical one). Those two samples will be at least 10 seconds apart when you scrape very 10s. So a 10s window is too small. To consider a larger window of samples, but still use only the latest two points under that interval, you can use |
This comment has been minimized.
This comment has been minimized.
|
Ok, so just to be sure i'm understand well - i can't calculate rate with scrape interval. |
brian-brazil
closed this
Oct 26, 2016
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 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. |
freeseacher commentedAug 21, 2016
•
edited
What did you do?

i've setup telegraf and prometheus
then ai got data from some telegraf clients to database. then i make a query like this
rate(nsq_client_message_count{topic="metrics",host="wrk01"}[10s])
What did you expect to see?
results from function
What did you see instead? Under which circumstances?
No datapoints found.
Environment
telegraf config
graph are shown well if i change time to [11s] or more. but i am afraid that data are already resampled. That is not trouble with one metric. the same behaviour for all rate function.
I've already check my time setting from #1022