added shit
This commit is contained in:
79
grafana/docker-compose.yml
Normal file
79
grafana/docker-compose.yml
Normal file
@@ -0,0 +1,79 @@
|
||||
services:
|
||||
goodwe-exporter-garaz:
|
||||
image: "gitea.angoosh.com/angoosh/goodwe-prometheus-exporter:latest"
|
||||
restart: always
|
||||
ports:
|
||||
- 8787:8787
|
||||
command:
|
||||
- "--port=8787"
|
||||
- "--interval=30"
|
||||
- "--inverter=192.168.88.26"
|
||||
- "--energy-price=4.5"
|
||||
- "--PVpower=10000"
|
||||
- "--scrape-spot-price=False"
|
||||
networks:
|
||||
- grafana
|
||||
|
||||
goodwe-exporter-bouda:
|
||||
image: "gitea.angoosh.com/angoosh/goodwe-prometheus-exporter:latest"
|
||||
restart: always
|
||||
ports:
|
||||
- 8788:8787
|
||||
command:
|
||||
- "--port=8787"
|
||||
- "--interval=30"
|
||||
- "--inverter=192.168.88.14"
|
||||
- "--energy-price=4.5"
|
||||
- "--PVpower=10000"
|
||||
- "--scrape-spot-price=False"
|
||||
networks:
|
||||
- grafana
|
||||
|
||||
prometheus:
|
||||
image: prom/prometheus:v2.33.5
|
||||
restart: always
|
||||
volumes:
|
||||
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
||||
- prometheus-data:/prometheus
|
||||
ports:
|
||||
- 9090:9090
|
||||
command:
|
||||
- "--config.file=/etc/prometheus/prometheus.yml"
|
||||
- "--storage.tsdb.path=/prometheus"
|
||||
- '--storage.tsdb.retention.time=1y'
|
||||
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
|
||||
- "--web.console.templates=/usr/share/prometheus/consoles"
|
||||
- "--query.lookback-delta=40m"
|
||||
networks:
|
||||
- grafana
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana-oss:9.5.20
|
||||
restart: always
|
||||
volumes:
|
||||
- grafana-cfg:/etc/grafana
|
||||
- grafana-data:/var/lib/grafana
|
||||
environment:
|
||||
GF_FEATURE_TOGGLES_PUBLICDASHBOARDS: "true"
|
||||
ports:
|
||||
- 3001:3000
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.grafana.rule=Host(`grafana.angoosh.com`)"
|
||||
- "traefik.http.routers.grafana.entrypoints=websecure"
|
||||
- "traefik.http.routers.grafana.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.grafana.loadbalancer.server.port=3000"
|
||||
networks:
|
||||
- grafana
|
||||
- default
|
||||
|
||||
volumes:
|
||||
prometheus-data:
|
||||
grafana-cfg:
|
||||
grafana-data:
|
||||
|
||||
networks:
|
||||
default:
|
||||
name: gateway
|
||||
external: true
|
||||
grafana:
|
||||
31
grafana/prometheus.yml
Normal file
31
grafana/prometheus.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
global:
|
||||
scrape_interval: 15s # By default, scrape targets every 15 seconds.
|
||||
|
||||
# scrape_timeout: 15s
|
||||
# evaluation_interval: 1m
|
||||
|
||||
# Attach these labels to any time series or alerts when communicating with
|
||||
# external systems (federation, remote storage, Alertmanager).
|
||||
# external_labels:
|
||||
# monitor: 'PV'
|
||||
|
||||
scrape_configs:
|
||||
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
|
||||
- job_name: 'prometheus'
|
||||
# scrape_interval: 5s
|
||||
static_configs:
|
||||
- targets: ['localhost:9090']
|
||||
|
||||
- job_name: 'PV-garaz'
|
||||
scrape_interval: 5s
|
||||
static_configs:
|
||||
- targets: ['goodwe-exporter-garaz:8787']
|
||||
labels:
|
||||
group: 'PV'
|
||||
|
||||
- job_name: 'PV-bouda'
|
||||
scrape_interval: 5s
|
||||
static_configs:
|
||||
- targets: ['goodwe-exporter-bouda:8788']
|
||||
labels:
|
||||
group: 'PV'
|
||||
Reference in New Issue
Block a user