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 upAdd a gauge for "number of open chunks". #1710
Comments
discordianfish
added
kind/enhancement
component/local storage
labels
Jun 6, 2016
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
Yes, that sounds exactly what I'm looking for and would be super helpful.
What do you think about an 'error' counter which would be incremented if the storage layer answers "no"? But I'm good with using prometheus_local_storage_persistence_urgency_score.
Let's discuss that over in prometheus/docs#442, looks like this is about the same confusion. |
This comment has been minimized.
This comment has been minimized.
|
A "throttling_needed_total" counter sounds like a good idea. Easy to implement, and easy to reason with. Can alert nicely on Title adjusted. |
beorn7
changed the title
Add throttled ingestion metrics
Add a counter for "throttling needed" and a gauge for "number of open chunks".
Jun 7, 2016
beorn7
self-assigned this
Jun 7, 2016
juliusv
added
the
help wanted
label
Jul 23, 2016
This comment has been minimized.
This comment has been minimized.
|
@beorn7 Both cases already have separate counters for the throttled cases: Line 149 in 0938661 prometheus/retrieval/scrape.go Line 430 in b4660a5 Can this issue be considered done? |
This comment has been minimized.
This comment has been minimized.
|
You are right about the counts for "throttling needed". But we still need a Gauge for "open chunks". That's seems to me a really useful metric to have. |
This comment has been minimized.
This comment has been minimized.
ghost
commented
Oct 5, 2016
|
@beorn7 @juliusv @discordianfish Would this be a good first issue to take a stab at? Or is there something else that'd be better suited? |
This comment has been minimized.
This comment has been minimized.
|
@copyconstructor A metric for open chunks sounds like a really good starting point: Note that the chunking code was just moved to its own package, which made the metrics collection a bit more complicated. Just have a look how it is done right now, and feel free to ask me or @juliusv if you have questions. |
beorn7
changed the title
Add a counter for "throttling needed" and a gauge for "number of open chunks".
Add a gauge for "number of open chunks".
Oct 5, 2016
jmeulemans
added a commit
to jmeulemans/prometheus
that referenced
this issue
Feb 16, 2017
jmeulemans
referenced this issue
Feb 17, 2017
Merged
Adding gauge for number of open head chunks. #2435
beorn7
closed this
in
#2435
Feb 17, 2017
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. |
discordianfish commentedJun 6, 2016
We have a metric for rushed mode, but non for throttled ingestion which is at least as important.
Additionally to that, it might be also useful to add a metric about the currently active timeseries which, I think, is different from prometheus_local_storage_memory_series because that shows how many Prometheus could fit into memory, not necessary how many would be active if it could fit more.
Or, this doesn't make sense but then the documentation could be a bit cleaner in that regard.