[prometheus-nginx] Change exposed port for a non-standard port
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>certbot_on_virtu
							parent
							
								
									08f359cc9c
								
							
						
					
					
						commit
						13b0367d46
					
				| 
						 | 
				
			
			@ -12,7 +12,7 @@
 | 
			
		|||
    path: /etc/default/prometheus-nginx-exporter
 | 
			
		||||
    regexp: '^ARGS='
 | 
			
		||||
    line: |
 | 
			
		||||
      ARGS="-web.listen-address={{ adm_ipv4 }}:9117"
 | 
			
		||||
      ARGS="-web.listen-address={{ adm_ipv4 }}:9117 -nginx.scrape-uri=http://[::1]:6424/stub_status"
 | 
			
		||||
  notify:
 | 
			
		||||
    - Restart nginx
 | 
			
		||||
    - Restart prometheus-nginx-exporter
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
{{ ansible_header | comment }}
 | 
			
		||||
 | 
			
		||||
server {
 | 
			
		||||
    listen 127.0.0.1:8080;
 | 
			
		||||
    listen [::1]:8080;
 | 
			
		||||
    location = /stub_status {
 | 
			
		||||
        stub_status;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue