Actualizado Grafana

This commit is contained in:
2026-02-20 22:44:51 +01:00
parent 54cce3052a
commit e3faa5607d
2 changed files with 40 additions and 7 deletions
+32 -7
View File
@@ -1,16 +1,41 @@
services:
grafana:
image: grafana/grafana-oss
user: '1000'
container_name: Grafana
image: grafana/grafana-oss:latest
user: "1000:1000"
container_name: grafana
restart: unless-stopped
environment:
# - GF_SERVER_ROOT_URL=https://grafana.tudominio.es
- GF_INSTALL_PLUGINS=grafana-clock-panel
# - GF_SERVER_ROOT_URL=https://grafana.example.com
- GF_INSTALL_PLUGINS=grafana-clock-panel
ports:
- '33310:3000'
- "33310:3000"
volumes:
- ./data:/var/lib/grafana
- ./data/grafana:/var/lib/grafana
prometheus:
image: prom/prometheus:latest
user: "1000:1000"
container_name: prometheus
restart: unless-stopped
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
- ./data/prometheus:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--web.listen-address=0.0.0.0:9090"
ports:
- "33320:9090"
node_exporter:
image: prom/node-exporter:latest
container_name: node-exporter
restart: unless-stopped
command:
- "--path.rootfs=/host"
volumes:
- "/:/host:ro,rslave"
networks:
default:
name: Grafana_NET
+8
View File
@@ -0,0 +1,8 @@
global:
scrape_interval: 15s
scrape_configs:
- job_name: "node"
static_configs:
- targets:
- "node-exporter:9100"