-
Notifications
You must be signed in to change notification settings - Fork 772
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
How to use gauge histograms? #807
Comments
I have found the following unit test: https://github.com/prometheus/client_java/blob/master/simpleclient_common/src/test/java/io/prometheus/client/exporter/common/TextFormatTest.java#L172-L203 Please feel free to close this issue if you confirm this is how it is supposed to be used. |
👍 great that you found the unit test. Yes, this is currently the way how to create a If you have a proposal for a better API for OpenMetrics defines the semantics of
So I don't think an Anyway, if you have a use case that might be relevant for others and a proposal how to support this better, let me know. |
Gauge.build() without help ,how to fix the case? |
OpenMetrics 1.0.0 added the metric types
STATE_SET
,INFO
andGAUGE_HISTOGRAM
.I noticed that the classes
Enumeration
andInfo
have been added in response (#615), and these correspond toSTATE_SET
,INFO
.However, I see no new class corresponding to
GAUGE_HISTOGRAM
.I have looked at the
TextFormat
class, and IIUC, it handles a gauge histogram as a set of gauges.Am I right in thinking there will be no
GaugeHistogram
class?Should we instead create a set of gauges and submit that to prometheus client java?
In short, do you have any documentation or examples showing how to build a gauge histogram?
Thank you
The text was updated successfully, but these errors were encountered: