remove deleted files
This commit is contained in:
		
							
								
								
									
										26
									
								
								Caddyfile
									
									
									
									
									
								
							
							
						
						
									
										26
									
								
								Caddyfile
									
									
									
									
									
								
							@@ -1,26 +0,0 @@
 | 
			
		||||
{
 | 
			
		||||
	admin :2019
 | 
			
		||||
 | 
			
		||||
	servers :80 {
 | 
			
		||||
		name static_site
 | 
			
		||||
		metrics
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	servers :3000 {
 | 
			
		||||
		name grafana
 | 
			
		||||
		metrics
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
:80 {
 | 
			
		||||
	root * /path/to/html
 | 
			
		||||
	file_server
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
:3000 {
 | 
			
		||||
	reverse_proxy grafana:3000
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
:3100 {
 | 
			
		||||
	reverse_proxy loki:3100
 | 
			
		||||
}
 | 
			
		||||
@@ -1,7 +0,0 @@
 | 
			
		||||
# Host visability 
 | 
			
		||||
I would recommend using [this dashboard](https://grafana.com/grafana/dashboards/1860-node-exporter-full/).
 | 
			
		||||
 | 
			
		||||
Use `docker compose -f node.yml up` on the devices you are monitoring
 | 
			
		||||
 | 
			
		||||
Use `docker compose up` for the server that's collecting all the logs.
 | 
			
		||||
 | 
			
		||||
@@ -1,12 +0,0 @@
 | 
			
		||||
services:
 | 
			
		||||
  # monitor the host
 | 
			
		||||
  node_exporter:
 | 
			
		||||
    image: quay.io/prometheus/node-exporter:latest
 | 
			
		||||
    command:
 | 
			
		||||
      - '--path.rootfs=/host'
 | 
			
		||||
    network_mode: host
 | 
			
		||||
    # uses port 9100
 | 
			
		||||
    pid: host
 | 
			
		||||
    restart: unless-stopped
 | 
			
		||||
    volumes:
 | 
			
		||||
      - '/:/host:ro'
 | 
			
		||||
@@ -1,55 +0,0 @@
 | 
			
		||||
services:
 | 
			
		||||
  # r-proxy
 | 
			
		||||
  caddy:
 | 
			
		||||
    image: caddy:latest
 | 
			
		||||
    restart: unless-stopped
 | 
			
		||||
    ports:
 | 
			
		||||
      # HTTP
 | 
			
		||||
      - 80:80
 | 
			
		||||
      - 443:443
 | 
			
		||||
      - '443:443/udp'
 | 
			
		||||
      # Grafana
 | 
			
		||||
      - 3000:3000
 | 
			
		||||
      # Loki
 | 
			
		||||
      - 3100:3100
 | 
			
		||||
    volumes:
 | 
			
		||||
      - ./Caddyfile:/etc/caddy/Caddyfile
 | 
			
		||||
 | 
			
		||||
  # Metrics collector
 | 
			
		||||
  prometheus:
 | 
			
		||||
    image: prom/prometheus:latest
 | 
			
		||||
    expose:
 | 
			
		||||
      - 9090
 | 
			
		||||
    volumes:
 | 
			
		||||
      - ./prometheus.yaml:/etc/prometheus/prometheus.yml
 | 
			
		||||
      # persist data
 | 
			
		||||
      - prometheus_storage:/prometheus
 | 
			
		||||
    depends_on:
 | 
			
		||||
      - caddy
 | 
			
		||||
    command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
 | 
			
		||||
 | 
			
		||||
  loki:
 | 
			
		||||
    image: grafana/loki:2.9.2
 | 
			
		||||
    expose:
 | 
			
		||||
    - 3100
 | 
			
		||||
    command: -config.file=/etc/loki/local-config.yaml
 | 
			
		||||
 | 
			
		||||
  # log viewer
 | 
			
		||||
  grafana:
 | 
			
		||||
    image: grafana/grafana:latest
 | 
			
		||||
    volumes:
 | 
			
		||||
      - ./grafana.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
 | 
			
		||||
      - grafana_storage:/var/lib/grafana
 | 
			
		||||
    environment:
 | 
			
		||||
      - GF_AUTH_ANONYMOUS_ENABLED=true
 | 
			
		||||
      - GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
 | 
			
		||||
      - GF_AUTH_DISABLE_LOGIN_FORM=true
 | 
			
		||||
      - GF_FEATURE_TOGGLES_ENABLE=traceqlEditor
 | 
			
		||||
    expose:
 | 
			
		||||
      - 3000
 | 
			
		||||
    depends_on:
 | 
			
		||||
      - prometheus
 | 
			
		||||
 | 
			
		||||
volumes:
 | 
			
		||||
  prometheus_storage:
 | 
			
		||||
  grafana_storage:
 | 
			
		||||
@@ -1,3 +0,0 @@
 | 
			
		||||
wget https://git.oliveratkinson.net/Oliver/linux-node-visability/raw/branch/master/compose-node.yml
 | 
			
		||||
sudo ufw allow from 10.50.50.0/24 to any port 9100
 | 
			
		||||
docker compose -f compose-node.yml up -d
 | 
			
		||||
		Reference in New Issue
	
	Block a user