Add prometheus for caddy and unbound exporters
This commit is contained in:
		
							
								
								
									
										4
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
[submodule "unbound-telemetry"]
 | 
			
		||||
	path = unbound-telemetry
 | 
			
		||||
	url = https://github.com/svartalf/unbound-telemetry.git
 | 
			
		||||
	branch = master
 | 
			
		||||
							
								
								
									
										14
									
								
								conf/prometheus.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								conf/prometheus.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
scrape_configs:
 | 
			
		||||
  - job_name: "caddy"
 | 
			
		||||
    scrape_interval: 15s
 | 
			
		||||
    static_configs:
 | 
			
		||||
      - targets: ["host.docker.internal:2020"]
 | 
			
		||||
        labels:
 | 
			
		||||
          instance: "boba.best"
 | 
			
		||||
 | 
			
		||||
  - job_name: "unbound"
 | 
			
		||||
    scrape_interval: 15s
 | 
			
		||||
    static_configs:
 | 
			
		||||
      - targets: ["unbound-telemetry:9167"]
 | 
			
		||||
        labels:
 | 
			
		||||
          instance: "boba.best"
 | 
			
		||||
@@ -34,13 +34,24 @@ services:
 | 
			
		||||
      - 127.0.0.1:84:3000
 | 
			
		||||
    restart: always
 | 
			
		||||
 | 
			
		||||
  #prometheus:
 | 
			
		||||
  #  image: prom/prometheus:latest
 | 
			
		||||
  #  restart: always
 | 
			
		||||
  #  command:
 | 
			
		||||
  #    - --config.file=/etc/prometheus/prometheus.yml
 | 
			
		||||
  #  volumes:
 | 
			
		||||
  #    - ./conf/prometheus.yml:/etc/prometheus/prometheus.yml
 | 
			
		||||
  #    - ./data/prometheus:/prometheus
 | 
			
		||||
  #  extra_hosts:
 | 
			
		||||
  #    - "host.docker.internal:host-gateway"
 | 
			
		||||
  prometheus:
 | 
			
		||||
    image: prom/prometheus:latest
 | 
			
		||||
    container_name: grafana_prometheus
 | 
			
		||||
    restart: always
 | 
			
		||||
    command:
 | 
			
		||||
      - --config.file=/etc/prometheus/prometheus.yml
 | 
			
		||||
    volumes:
 | 
			
		||||
      - ./conf/prometheus.yml:/etc/prometheus/prometheus.yml
 | 
			
		||||
      - ./data/prometheus:/prometheus
 | 
			
		||||
    extra_hosts:
 | 
			
		||||
      - "host.docker.internal:host-gateway"
 | 
			
		||||
 | 
			
		||||
  unbound-telemetry:
 | 
			
		||||
    build: unbound-telemetry
 | 
			
		||||
    restart: always
 | 
			
		||||
    command:
 | 
			
		||||
      - uds
 | 
			
		||||
      - --control-interface
 | 
			
		||||
      - /data/remote-control.sock
 | 
			
		||||
    volumes:
 | 
			
		||||
      - ./data/unbound-telemetry:/data
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								unbound-telemetry
									
									
									
									
									
										Submodule
									
								
							
							
								
								
								
								
								
							
						
						
									
										1
									
								
								unbound-telemetry
									
									
									
									
									
										Submodule
									
								
							 Submodule unbound-telemetry added at 7f1b6d4e9e
									
								
							
		Reference in New Issue
	
	Block a user