Skip to content

Commit

Permalink
Update NGINX Prometheus Exporter with systemd-activated socket (#800)
Browse files Browse the repository at this point in the history
Signed-off-by: huangsijun17 <[email protected]>
  • Loading branch information
huangsijun17 authored Aug 13, 2024
1 parent fced609 commit 661bad6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/systemd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 661bad6

Please sign in to comment.