Moni: Read Blackbox targets as JSON
Use uniform JSON target files instead of a JSON/YAML mix. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
		
							parent
							
								
									fbc70ed8d1
								
							
						
					
					
						commit
						76a51e490f
					
				@ -29,7 +29,7 @@ prometheus:
 | 
			
		||||
              params:
 | 
			
		||||
                module: [http_2xx]
 | 
			
		||||
              file_sd_configs:
 | 
			
		||||
              - files: ['/etc/prometheus/targets/blackbox-2xx*.yml']
 | 
			
		||||
              - files: ['/etc/prometheus/targets/blackbox-2xx*.json']
 | 
			
		||||
              relabel_configs:
 | 
			
		||||
              - source_labels: [__address__]
 | 
			
		||||
                target_label: __param_target
 | 
			
		||||
@ -43,7 +43,7 @@ prometheus:
 | 
			
		||||
              params:
 | 
			
		||||
                module: [http_3xx]
 | 
			
		||||
              file_sd_configs:
 | 
			
		||||
              - files: ['/etc/prometheus/targets/blackbox-3xx*.yml']
 | 
			
		||||
              - files: ['/etc/prometheus/targets/blackbox-3xx*.json']
 | 
			
		||||
              relabel_configs:
 | 
			
		||||
              - source_labels: [__address__]
 | 
			
		||||
                target_label: __param_target
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user