1
0
mirror of https://github.com/nginxinc/nginx-prometheus-exporter.git synced 2025-04-18 12:45:02 +03:00

Update NGINX Prometheus Exporter with systemd-activated socket (#800)

Signed-off-by: huangsijun17 <huangsijun17@hotmail.com>
This commit is contained in:
huangsijun17 2024-08-14 00:13:13 +08:00 committed by GitHub
parent fced609f11
commit 661bad6b15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,9 +37,10 @@ full list of supported formats, run `man systemd.socket`.
## Installation
1. Copy `nginx_exporter.service` and `nginx_exporter.socket` to `/etc/systemd/system/`
2. Run `systemctl daemon-reload`
3. Run `systemctl start nginx_exporter`
4. Run `systemctl status nginx_exporter` to check the status of the service
2. Add a user named `nginx_exporter`
3. Run `systemctl daemon-reload`
4. Run `systemctl start nginx_exporter`
5. Run `systemctl status nginx_exporter` to check the status of the service
## Verification