From d2ad5c31a8874f25ae389b5e7594f4bccef548f1 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 24 Feb 2025 01:07:52 -0700 Subject: [PATCH] remove deleted files --- Caddyfile | 26 ---------------------- README.md | 7 ------ compose-node.yml | 12 ---------- compose-server.yml | 55 ---------------------------------------------- deploy-node.sh | 3 --- 5 files changed, 103 deletions(-) delete mode 100644 Caddyfile delete mode 100644 README.md delete mode 100644 compose-node.yml delete mode 100644 compose-server.yml delete mode 100755 deploy-node.sh diff --git a/Caddyfile b/Caddyfile deleted file mode 100644 index 59385c9..0000000 --- a/Caddyfile +++ /dev/null @@ -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 -} diff --git a/README.md b/README.md deleted file mode 100644 index d843c77..0000000 --- a/README.md +++ /dev/null @@ -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. - diff --git a/compose-node.yml b/compose-node.yml deleted file mode 100644 index fb79024..0000000 --- a/compose-node.yml +++ /dev/null @@ -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' diff --git a/compose-server.yml b/compose-server.yml deleted file mode 100644 index 2145067..0000000 --- a/compose-server.yml +++ /dev/null @@ -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: diff --git a/deploy-node.sh b/deploy-node.sh deleted file mode 100755 index 979b864..0000000 --- a/deploy-node.sh +++ /dev/null @@ -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