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

only seeing limited amount of metrics #70

Open
pete-leese opened this issue Oct 3, 2018 · 4 comments
Open

only seeing limited amount of metrics #70

pete-leese opened this issue Oct 3, 2018 · 4 comments

Comments

@pete-leese
Copy link

Hi There,

Trying this out....

I can hit http://localhost:8080/status OK and loads a lot of json as per what I see on the status.html

When I hit the metrics end point - All I see is the following;

HELP nginx_server_connections nginx connections

TYPE nginx_server_connections gauge

nginx_server_connections{status="accepted"} 2.3859827e+07
nginx_server_connections{status="active"} 23
nginx_server_connections{status="handled"} 0
nginx_server_connections{status="reading"} 0
nginx_server_connections{status="requests"} 0
nginx_server_connections{status="waiting"} 0
nginx_server_connections{status="writing"} 0

HELP nginx_server_info nginx info

TYPE nginx_server_info gauge

nginx_server_info{hostName="",nginxVersion=""} 0

HELP nginx_vts_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, and goversion from which nginx_vts_exporter was built.

TYPE nginx_vts_exporter_build_info gauge

nginx_vts_exporter_build_info{branch="HEAD",goversion="go1.10",revision="8aa2881c7050d9b28f2312d7ce99d93458611d04

Running the latest exporter release and nginx plus 1.2.2

What am I missing here?

Cheers...

Pete

@sysulq
Copy link
Owner

sysulq commented Oct 8, 2018

maybe you forgot to compile nginx with nginx-module-vts, try it

@devlifeX
Copy link

Same problem, and nginx vts module install successfully.

image

@VR6Pete What was your issue?

@pete-leese
Copy link
Author

Can’t remember now , it was over 2 years ago and left the organisation since then.

@devlifeX
Copy link

Solution for Seekers:
In you docker-compose fie put this:

nginx-exporter:
    image: sophos/nginx-vts-exporter
    container_name: nginx-exporter
    user: root
    privileged: true
    environment:
      - NGINX_STATUS=http://webserver/status/format/json
    restart: always
    ports:
      - 9913:9913

instead of:

  nginx-exporter:
    image: sophos/nginx-vts-exporter
    container_name: nginx-exporter
    user: root
    privileged: true
    environment:
      - NGINX_STATUS=http://localhost/status/format/json
    restart: always
    ports:
      - 9913:9913

Don't forget change webserver (Put your nginx container name)

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

3 participants