mirror of
				https://github.com/ItsDrike/network-monitor.git
				synced 2025-11-03 20:16:35 +00:00 
			
		
		
		
	Rename ping to blackbox
This commit is contained in:
		
							parent
							
								
									a3d904bbf0
								
							
						
					
					
						commit
						ec3f3217d3
					
				
					 3 changed files with 8 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -23,7 +23,7 @@ services:
 | 
			
		|||
    ports:
 | 
			
		||||
      - 9090:9090
 | 
			
		||||
    links:
 | 
			
		||||
      - ping:ping
 | 
			
		||||
      - blackbox:blackbox
 | 
			
		||||
      - speedtest:speedtest
 | 
			
		||||
    networks:
 | 
			
		||||
      - back-tier
 | 
			
		||||
| 
						 | 
				
			
			@ -44,7 +44,7 @@ services:
 | 
			
		|||
      - back-tier
 | 
			
		||||
      - front-tier
 | 
			
		||||
 | 
			
		||||
  ping:
 | 
			
		||||
  blackbox:
 | 
			
		||||
    tty: true
 | 
			
		||||
    stdin_open: true
 | 
			
		||||
    expose:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,4 +2,5 @@
 | 
			
		|||
    - https://google.com/;Google;external
 | 
			
		||||
    - https://github.com/;GitHub;external
 | 
			
		||||
    - https://ping.archlinux.org/;ArchLinux;external
 | 
			
		||||
    - https://192.168.0.107/;Proxmox;internal
 | 
			
		||||
    - 192.168.0.1:1024/;Router;internal
 | 
			
		||||
    - 192.168.0.107:8006/;Proxmox;internal
 | 
			
		||||
| 
						 | 
				
			
			@ -21,14 +21,14 @@ scrape_configs:
 | 
			
		|||
    static_configs:
 | 
			
		||||
      - targets: ['speedtest:9798']
 | 
			
		||||
 | 
			
		||||
  - job_name: 'ping'
 | 
			
		||||
  - job_name: 'blackbox'
 | 
			
		||||
    metrics_path: /probe
 | 
			
		||||
    scrape_interval: 5s # How often should we probe the pinghosts
 | 
			
		||||
    scrape_interval: 15s   # How often should we probe the pinghosts
 | 
			
		||||
    params:
 | 
			
		||||
      module: [http_2xx]  # Look for a HTTP 200 response.
 | 
			
		||||
    file_sd_configs:
 | 
			
		||||
      - files:
 | 
			
		||||
          - pinghosts.yaml
 | 
			
		||||
          - blackbox.yaml
 | 
			
		||||
    relabel_configs:
 | 
			
		||||
      - source_labels: [__address__]
 | 
			
		||||
        regex: '(.*);(.*);(.*)'  # first is the url, thus unique for instance
 | 
			
		||||
| 
						 | 
				
			
			@ -45,8 +45,4 @@ scrape_configs:
 | 
			
		|||
      - source_labels: [instance]
 | 
			
		||||
        target_label: __param_target
 | 
			
		||||
      - target_label: __address__
 | 
			
		||||
        replacement: ping:9115  # The blackbox exporter's real hostname:port.
 | 
			
		||||
 | 
			
		||||
  - job_name: 'nodeexp'
 | 
			
		||||
    static_configs:
 | 
			
		||||
      - targets: ['nodeexp:9100']
 | 
			
		||||
        replacement: blackbox:9115  # The blackbox exporter's real hostname:port.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue