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

Make prometheus metric names follow best practices #1509

Closed
discordianfish opened this issue Oct 9, 2017 · 4 comments · Fixed by #1910 or #1912
Closed

Make prometheus metric names follow best practices #1509

discordianfish opened this issue Oct 9, 2017 · 4 comments · Fixed by #1910 or #1912

Comments

@discordianfish
Copy link
Contributor

Hi,

I realized the metrics expose in ingress-nginx: https://github.com/kubernetes/ingress-nginx/blob/master/pkg/nginx/metric/collector/nginx.go#L57
Are not following the prometheus best practices: https://prometheus.io/docs/practices/naming/

I'm also not sure why

p.data = namedProcessData{
was done, given that client-golang already exposes these metrics by default in a way that is consistent with any other prometheus instrumented golang application: https://github.com/prometheus/client_golang/blob/master/prometheus/go_collector.go#L22

@aledbf
Copy link
Member

aledbf commented Oct 9, 2017

Are not following the prometheus best practices: https://prometheus.io/docs/practices/naming/

Can you open a PR to fix this?

was done, given that client-golang already exposes these metrics by default in a way that is consistent with any other prometheus instrumented golang application:

This stats are for the nginx process, not the go application. This two are separated.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 7, 2018
@derekperkins
Copy link
Contributor

👍

@discordianfish
Copy link
Contributor Author

/remove-lifecycle stale
..but I don't know when I'll have time for a PR.

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants