Skip to content

Running the prometheus-nginx-exporter service on CentOS 7 [VMBitrix 7.5.2] #508

Closed Answered by lucacome
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like the account that opened this was deleted, but for reference I was able to use the exporter installed via Snap in systemd with this config for /etc/systemd/system/nginx_exporter.service

Description=NGINX Prometheus Exporter
Requires=nginx_exporter.socket

[Service]
ExecStart=/snap/nginx-prometheus-exporter/current/nginx-prometheus-exporter --nginx.scrape-uri=http://127.0.0.1:8080/stub_status

[Install]
WantedBy=multi-user.target

and the rest of the config as in the opening post.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@lucacome
Comment options

@ghost
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by lucacome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant