Persistence prometheus data
This commit is contained in:
@@ -11,3 +11,8 @@ scrape_configs:
|
|||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['192.168.1.24:8087']
|
- targets: ['192.168.1.24:8087']
|
||||||
|
|
||||||
|
- job_name: 'kasa-exporter-local'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets: ['192.168.1.24:8088']
|
||||||
|
|||||||
@@ -29,14 +29,17 @@ services:
|
|||||||
|
|
||||||
prometheus:
|
prometheus:
|
||||||
image: prom/prometheus:latest
|
image: prom/prometheus:latest
|
||||||
|
user: "1000:1000"
|
||||||
restart: always
|
restart: always
|
||||||
command:
|
command:
|
||||||
- --storage.tsdb.retention.time=365d
|
- --storage.tsdb.retention.time=365d
|
||||||
- --config.file=/etc/prometheus/prometheus.yml
|
- --config.file=/etc/prometheus/prometheus.yml
|
||||||
|
- --storage.tsdb.path=/prometheus
|
||||||
ports:
|
ports:
|
||||||
- "8083:9090"
|
- "8083:9090"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
- ./data/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
||||||
|
- ./data/prometheus/data:/prometheus
|
||||||
|
|
||||||
node_exporter:
|
node_exporter:
|
||||||
image: prom/node-exporter:latest
|
image: prom/node-exporter:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user