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

How to create a Gauge metric? #170

Open
panduz86 opened this issue Feb 22, 2022 · 0 comments
Open

How to create a Gauge metric? #170

panduz86 opened this issue Feb 22, 2022 · 0 comments

Comments

@panduz86
Copy link

Hello,

I open this ticket because I don't figure how to create a Gauge metric with this library. In the example provided you show how to do for a Counter

val driverMetricsSystem = UserMetricsSystems
        .getMetricSystem(METRICS_NAMESPACE, builder => {
          builder.registerCounter(COUNTER_NAME)
        })

but the builder object doesn't offer a method "registerGauge", there is a generic "register" method with receives 2 parameters: the name and the metric object.

Could you please provide some documentation about this case?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants