Skip to content

Commit 4cd836a

Browse files
committed
Testing shows ICPC2023 image doesn't have the up-to-date exporter
Alternative is to do the same as for the PHP-FPM exporter
1 parent 263afe7 commit 4cd836a

File tree

1 file changed

+4
-1
lines changed
  • provision-contest/ansible/roles/prometheus_target_web/tasks

1 file changed

+4
-1
lines changed

provision-contest/ansible/roles/prometheus_target_web/tasks/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,15 @@
7171
dest: /etc/nginx/sites-enabled/nginx-status.conf
7272
notify: Restart nginx
7373

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

8285
- name: Create storage dir for exporter settings

0 commit comments

Comments
 (0)