Skip to content

Commit

Permalink
Testing shows ICPC2023 image doesn't have the up-to-date exporter
Browse files Browse the repository at this point in the history
Alternative is to do the same as for the PHP-FPM exporter
  • Loading branch information
vmcj committed Apr 10, 2024
1 parent 263afe7 commit 4cd836a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,15 @@
dest: /etc/nginx/sites-enabled/nginx-status.conf
notify: Restart nginx

# In the future add: --web.config /etc/prometheus/prometheus-authentication.yml"'
# see: https://github.com/nginxinc/nginx-prometheus-exporter
# The version at the WFLuxor in the repository is not new enough
- name: Prometheus nginx exporter
lineinfile:
dest: /etc/default/prometheus-nginx-exporter
state: present
regexp: '^ARGS=""'
line: 'ARGS="--nginx.scrape-uri=http://localhost:8787/basic_status --web.config /etc/prometheus/prometheus-authentication.yml"'
line: 'ARGS="-nginx.scrape-uri=http://localhost:8787/basic_status"'
notify: Restart nginx-exporter

- name: Create storage dir for exporter settings
Expand Down

0 comments on commit 4cd836a

Please sign in to comment.