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

Is there any plan for prometheus to support string type metrics? #2227

Closed
aaskey opened this issue Nov 28, 2016 · 8 comments
Closed

Is there any plan for prometheus to support string type metrics? #2227

aaskey opened this issue Nov 28, 2016 · 8 comments

Comments

@aaskey
Copy link

aaskey commented Nov 28, 2016

Currently prometheus metrics types include counter, gauge, histogram, and summary. They are all numeric types. I would like to see if prometheus can support string type metrics. For example, to report system state in "start", "running", "pause", "bypass", "stop", or sometimes, arbitrary string message, then apply aggregation functions to the values. Is there any way to do it now? If not, is there plan to support it?

@brian-brazil
Copy link
Contributor

There's no plans to support non-numeric values. However you can put strings into labels.

Arbitrary string messages are usually bad idea, as each value will be a new time series which will run you into performance issues.

@aaskey
Copy link
Author

aaskey commented Nov 28, 2016

Hi Brian, you mean it is a bad idea to use arbitrary string message as labels? That's also one of the reasons I am hesitate using that way.

@brian-brazil
Copy link
Contributor

Yes. If you're looking for that you probably want an event logging solution, such as ELK.

@aaskey
Copy link
Author

aaskey commented Nov 28, 2016

ELK is a very capable logging solution. I am trying to see if I can use one stack to satisfy my application requirements. Is there any specific reason not supporting string metrics type?

@brian-brazil
Copy link
Contributor

Strings aren't metrics.

@matthiasr
Copy link
Contributor

matthiasr commented Nov 28, 2016 via email

@aaskey
Copy link
Author

aaskey commented Nov 28, 2016

Got it. Thank Brian and Matthias.

@lock
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.
Projects
None yet
Development

No branches or pull requests

3 participants