这个完全不想折腾了,完全专注于作为一个稳定的路由器。
Docker
Portainer
1 2
| docker volume create portainer_data docker run -d -p 8000:8000 -p 9443:9443 -p 9000:9000 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest
|
Install Portainer CE with Docker on Linux
Arm系统,跟树莓派一样,用这个也行。
Prometheus
Grafana
Grafana Dashboard
cadvisor
node-exporter
Server Monitoring // Prometheus and Grafana Tutorial
Christian’s Boilerplates
Raspberry Pi & Docker Monitoring
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
| --- volumes: prometheus-data: driver: local grafana-data: driver: local services: prometheus: image: docker.io/prom/prometheus:v2.54.1 container_name: prometheus ports: - 9090:9090 command: "--config.file=/etc/prometheus/prometheus.yaml" volumes: - /etc/prometheus/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro - prometheus-data:/prometheus restart: unless-stopped
grafana: image: docker.io/grafana/grafana-oss:11.2.0 container_name: grafana ports: - "3030:3000" volumes: - grafana-data:/var/lib/grafana restart: unless-stopped
cadvisor: image: gcr.io/cadvisor/cadvisor:v0.50.0 container_name: cadvisor ports: - 8080:8080 volumes: - /:/rootfs:ro - /run:/run:ro - /sys:/sys:ro - /var/lib/docker/:/var/lib/docker:ro - /dev/disk/:/dev/disk:ro devices: - /dev/kmsg privileged: true restart: unless-stopped
node_exporter: image: quay.io/prometheus/node-exporter:v1.8.2 container_name: node_exporter command: "--path.rootfs=/host" pid: host restart: unless-stopped volumes: - /:/host:ro
|
prometheus-node-exporter-lua
使用Docker部署Prometheus+Grafana监控