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

can u provide a complete metrics for me ? #29

Closed
dk900912 opened this issue Aug 25, 2017 · 13 comments
Closed

can u provide a complete metrics for me ? #29

dk900912 opened this issue Aug 25, 2017 · 13 comments

Comments

@dk900912
Copy link

Hi, hnlq715. Nginx has many metrics, but i only get 3 useful metrics :nginx_server_bytes、nginx_server_cache、nginx_server_connections. Is there some metrics i missed ? like nginx_uptime

@sysulq
Copy link
Owner

sysulq commented Aug 27, 2017

Sounds useful, I would add these metrics like uptime, version and so on... :-)
And yes, you missed some metrics like upstreamZones

@ivan-pinatti
Copy link

Hi @hnlq715,

I agree with @dk900912, could you please add;

  • nginx_uptime
  • nginx_up

Without these I can't create alarms to check if Nginx container is running and/or has spontaneously rebooted.

Cheers!

@bsushant-athena
Copy link

👍 same here, I also can't create alarms to check if Nginx container is running and/or has spontaneously rebooted.

sysulq added a commit that referenced this issue Feb 25, 2018
@sysulq
Copy link
Owner

sysulq commented Feb 25, 2018

Server info metrics added, and readme docs updated, please check the latest docker image.

@sysulq sysulq closed this as completed Feb 25, 2018
@bsushant-athena
Copy link

@hnlq715 We are not able to plot the graph for the nginx uptime value as it is not the metric output but it is inside the tag.
Is it possible for you expose the nginx uptime value as a separate metric?

@sysulq
Copy link
Owner

sysulq commented Feb 27, 2018

Refer to this link http://docs.grafana.org/features/datasources/prometheus/
You could get label value through label_values(metric, label)

@bsushant-athena
Copy link

@hnlq715 that is only possible in templating and that value does not update automatically.
label_values(metric, label) this we can not use for metrics query.

@sysulq
Copy link
Owner

sysulq commented Feb 27, 2018

Alright, what about this?

nginx_server_info{hostName="localhost", nginxVersion="1.11.1"} 100

the value 100 is nginx's uptime

@bsushant-athena
Copy link

yes if this is possible then it will be really helpful. But currently it is not.

@sysulq
Copy link
Owner

sysulq commented Feb 27, 2018

@bsushant-athena please try the latest release.

@bsushant-athena
Copy link

@hnlq715 can you please provide the binary file for the latest release?

@bsushant-athena
Copy link

@hnlq715 that worked but the problem I see is that , if I put this metric in singlestat graph then it only shows the seconds ; ideally it should be like
60 seconds
60 minutes
24 hours
then days and so on.
is it possible to add these changes as well ? 🙏

@sysulq
Copy link
Owner

sysulq commented Feb 28, 2018

This should be done in grafana I think? Prometheus can not store string metrics.

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

4 participants