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

Comments

Projects
None yet
3 participants
@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

This comment has been minimized.

Copy link
Member

brian-brazil commented Nov 28, 2016

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

This comment has been minimized.

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

This comment has been minimized.

Copy link
Member

brian-brazil commented Nov 28, 2016

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

@aaskey

This comment has been minimized.

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

This comment has been minimized.

Copy link
Member

brian-brazil commented Nov 28, 2016

Strings aren't metrics.

@matthiasr

This comment has been minimized.

Copy link
Contributor

matthiasr commented Nov 28, 2016

@aaskey

This comment has been minimized.

Copy link
Author

aaskey commented Nov 28, 2016

Got it. Thank Brian and Matthias.

@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.