Fix CI errors
							parent
							
								
									78643a163d
								
							
						
					
					
						commit
						b6f2faf279
					
				| 
						 | 
				
			
			@ -5,7 +5,9 @@
 | 
			
		|||
    # Prometheus targets.json
 | 
			
		||||
    prometheus_targets:
 | 
			
		||||
      - labels: {job: node}
 | 
			
		||||
        targets: "{{ groups['server'] | map('replace', '.org', '.org:9100') | list | sort }}"
 | 
			
		||||
        targets: |
 | 
			
		||||
          {{ groups['server'] | map('replace', '.org', '.org:9100') |
 | 
			
		||||
          list | sort }}
 | 
			
		||||
      - labels: {job: prometheus}
 | 
			
		||||
        targets: ['localhost:9090']
 | 
			
		||||
    prometheus_ups_snmp_targets:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,7 +31,7 @@
 | 
			
		|||
    line: "ARGS=\"--web.listen-address=127.0.0.1:9116\""
 | 
			
		||||
  notify: Restart prometheus-snmp-exporter
 | 
			
		||||
 | 
			
		||||
#- name: Configure Prometheus snmp-exporter
 | 
			
		||||
# - name: Configure Prometheus snmp-exporter
 | 
			
		||||
#  template:
 | 
			
		||||
#    src: "prometheus/snmp.yml.j2"
 | 
			
		||||
#    dest: "/etc/prometheus/snmp.yml"
 | 
			
		||||
| 
						 | 
				
			
			@ -60,7 +60,7 @@
 | 
			
		|||
- name: Activate prometheus service
 | 
			
		||||
  systemd:
 | 
			
		||||
    name: prometheus
 | 
			
		||||
    enabled: yes
 | 
			
		||||
    enabled: true
 | 
			
		||||
    state: started
 | 
			
		||||
 | 
			
		||||
- name: Indicate role in motd
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue