zrepl: prometheus target
This commit is contained in:
		
							
								
								
									
										23
									
								
								ansible/zrepl/prom.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								ansible/zrepl/prom.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
---
 | 
			
		||||
apiVersion: monitoring.coreos.com/v1
 | 
			
		||||
kind: Probe
 | 
			
		||||
metadata:
 | 
			
		||||
  name: zrepl
 | 
			
		||||
spec:
 | 
			
		||||
  scrapeTimeout: 30s
 | 
			
		||||
  targets:
 | 
			
		||||
    staticConfig:
 | 
			
		||||
      static:
 | 
			
		||||
        - nas.mgmt.k-space.ee:9811
 | 
			
		||||
#        - offsite.k-space.ee:9811 # TODO: unreachable
 | 
			
		||||
      relabelingConfigs:
 | 
			
		||||
        - sourceLabels: [__param_target]
 | 
			
		||||
          targetLabel: instance
 | 
			
		||||
        - sourceLabels: [__param_target]
 | 
			
		||||
          targetLabel: __address__
 | 
			
		||||
  prober:
 | 
			
		||||
    url: localhost
 | 
			
		||||
    path: /metrics
 | 
			
		||||
  metricRelabelings:
 | 
			
		||||
    - sourceLabels: [__address__]
 | 
			
		||||
      targetLabel: target
 | 
			
		||||
							
								
								
									
										1
									
								
								monitoring/zrepl.yaml
									
									
									
									
									
										Symbolic link
									
								
							
							
						
						
									
										1
									
								
								monitoring/zrepl.yaml
									
									
									
									
									
										Symbolic link
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
../ansible/zrepl/prom.yaml
 | 
			
		||||
		Reference in New Issue
	
	Block a user