From 661bad6b15d88c23510efb7c52903f2346e96df9 Mon Sep 17 00:00:00 2001 From: huangsijun17 Date: Wed, 14 Aug 2024 00:13:13 +0800 Subject: [PATCH] Update NGINX Prometheus Exporter with systemd-activated socket (#800) Signed-off-by: huangsijun17 --- examples/systemd/README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/systemd/README.md b/examples/systemd/README.md index b40ead50..ed490fcc 100644 --- a/examples/systemd/README.md +++ b/examples/systemd/README.md @@ -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