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

Newbie Question: count #2198

Closed
hardcoar opened this Issue Nov 18, 2016 · 4 comments

Comments

Projects
None yet
2 participants
@hardcoar
Copy link

hardcoar commented Nov 18, 2016

quick question: what's the difference between histogram's <basename_count> vs count metric?

i would really like to use prometheus in k8s and i want to start small. if it's the same i would use histograms instead (to conserve resources) or if it's negligible i'll use both for specifics. please help me and thanks in advance!

@juliusv

This comment has been minimized.

Copy link
Member

juliusv commented Nov 18, 2016

I'm not sure what you mean with count metric, but I assume you mean a metric of type Counter (vs. type Histogram). The <basename>_count series that is outputted as part of a histogram in fact is a counter, so you don't need to define an extra counter metric to just count the observed events as well, you get it for free with the histogram. So yes, if you mean that, you can omit the extra counter metric.

@juliusv

This comment has been minimized.

Copy link
Member

juliusv commented Nov 18, 2016

Hoping that answered the question and closing here - please reopen if not (but better to use the users mailing list for questions like this, as it's not an issue). See https://prometheus.io/community/.

@juliusv juliusv closed this Nov 18, 2016

@hardcoar

This comment has been minimized.

Copy link
Author

hardcoar commented Nov 18, 2016

@juliusv awesome. thanks! i will next time.

@lock

This comment has been minimized.

Copy link

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.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.