Skip to content

Commit

Permalink
Move prometheus onto the NAS
Browse files Browse the repository at this point in the history
  • Loading branch information
offbyone committed Nov 24, 2024
1 parent f59c8b0 commit 132afbd
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 38 deletions.
38 changes: 0 additions & 38 deletions metrics/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
services:
prometheus-sidecar:
extends:
file: ../sidecar-compose.yaml
service: .sidecar
env_file: ../bitbucket/.tailscale.env
hostname: prometheus
volumes:
- prometheus-tailscale-data:/var/lib/tailscale
environment:
- TS_SERVE_PORT=9090

prometheus:
image: "prom/prometheus:v3.0.0"
restart: always
network_mode: "service:prometheus-sidecar"
volumes:
- /etc/prometheus:/etc/prometheus
- prometheus-storage:/prometheus

grafana-sidecar:
extends:
file: ../sidecar-compose.yaml
Expand Down Expand Up @@ -45,25 +26,6 @@ services:
- /etc/grafana:/etc/grafana
- grafana-storage:/var/lib/grafana

loki-sidecar:
extends:
file: ../sidecar-compose.yaml
service: .sidecar
env_file: ../bitbucket/.tailscale.env
hostname: loki
volumes:
- loki-tailscale-data:/var/lib/tailscale
environment:
- TS_SERVE_PORT=3100

loki:
image: grafana/loki:latest
network_mode: "service:loki-sidecar"
restart: always
volumes:
- /etc/loki:/etc/loki
- loki-storage:/loki

volumes:
grafana-storage:
loki-storage:
Expand Down
31 changes: 31 additions & 0 deletions prometheus/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: prometheus

services:
sidecar:
extends:
file: ../sidecar-compose.yaml
service: .sidecar
env_file: ../blob/.tailscale.env
hostname: prometheus
volumes:
- prometheus-tailscale-data:/var/lib/tailscale
environment:
- TS_SERVE_PORT=9090

prometheus:
image: "prom/prometheus:v3.0.0"
restart: always
network_mode: "service:sidecar"
volumes:
- /volume1/config/prometheus:/etc/prometheus
- prometheus-storage:/prometheus

volumes:
prometheus-storage:
driver: local
driver_opts:
o: bind
type: none
device: /volume1/Backups/prometheus-data

prometheus-tailscale-data:

0 comments on commit 132afbd

Please sign in to comment.