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

GC reduces value of go_memstats_mallocs_total counter (collectors.NewGoCollector) #1300

Open
towleeee opened this issue Jun 20, 2023 · 0 comments

Comments

@towleeee
Copy link

github.com/prometheus/client_golang v1.16.0
go version: go1.17.11

Before GC:

go_gc_duration_seconds_sum 0.002715273
go_memstats_mallocs_total 87459

go_gc_duration_seconds_sum 0.002715273
go_memstats_mallocs_total 87796

After:

go_gc_duration_seconds_sum 0.002747097
go_memstats_mallocs_total 78381

the other counters seem to behave the same way.
Expected:
prometheus counter (a single whose value can only increase or be reset to zero on restart.)

@bwplotka bwplotka added the bug label Jun 20, 2023
@dosubot dosubot bot added the stale label Aug 21, 2024
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