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

Prometheus-Sample-App gauge metric value only goes up #7

Closed
mustafain117 opened this issue Nov 17, 2021 · 1 comment
Closed

Prometheus-Sample-App gauge metric value only goes up #7

mustafain117 opened this issue Nov 17, 2021 · 1 comment
Assignees

Comments

@mustafain117
Copy link

mustafain117 commented Nov 17, 2021

Describe the bug

Prometheus gauge metric represents value that can go up and down. However, Gauge metric produced by this app currently only goes up.

What did you expect to see?

Expected to see gauge value go both up and down instead of being monotonically increasing.

Possible Solution

In function updateGauge() to c.Set(rand.Float64()). This should make gauge value go both ways - up and down.

Additional context
Related to open-telemetry/wg-prometheus#57
cc @alolita @Aneurysm9

@PaurushGarg
Copy link
Contributor

Merged as part of PR #11

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

No branches or pull requests

2 participants