Merge branch 'monitoring-grafana-render' into 'main'
Add Grafana renderer and graph links See merge request g4st3r/srv-docker!10
This commit is contained in:
@@ -19,7 +19,9 @@ receivers:
|
|||||||
{{ .Annotations.summary }}
|
{{ .Annotations.summary }}
|
||||||
{{ .Annotations.description }}
|
{{ .Annotations.description }}
|
||||||
Instance: {{ .Labels.instance }}
|
Instance: {{ .Labels.instance }}
|
||||||
Details: {{ reReplaceAll "http://[^/]+" "https://prometheus.g4st3r.ru" .GeneratorURL }}
|
Details (Prometheus): {{ reReplaceAll "http://[^/]+" "https://prometheus.g4st3r.ru" .GeneratorURL }}
|
||||||
|
Details (Grafana): {{ if eq .Labels.instance "10.8.0.1:9100" }}https://grafana.g4st3r.ru/d/bffbyigsryj28c{{ else if eq .Labels.instance "node-exporter:9100" }}https://grafana.g4st3r.ru/d/affbyigukvw1sc{{ else }}https://grafana.g4st3r.ru{{ end }}
|
||||||
|
Graph (PNG): {{ if eq .Labels.instance "10.8.0.1:9100" }}https://grafana.g4st3r.ru/render/d/bffbyigsryj28c?orgId=1&from=now-6h&to=now&width=1000&height=500&theme=dark{{ else if eq .Labels.instance "node-exporter:9100" }}https://grafana.g4st3r.ru/render/d/affbyigukvw1sc?orgId=1&from=now-6h&to=now&width=1000&height=500&theme=dark{{ else }}https://grafana.g4st3r.ru{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
parse_mode: Markdown
|
parse_mode: Markdown
|
||||||
disable_notifications: false
|
disable_notifications: false
|
||||||
|
|||||||
@@ -33,6 +33,9 @@ services:
|
|||||||
- GF_SECURITY_ADMIN_USER=admin
|
- GF_SECURITY_ADMIN_USER=admin
|
||||||
- GF_SECURITY_ADMIN_PASSWORD=admin
|
- GF_SECURITY_ADMIN_PASSWORD=admin
|
||||||
- GF_USERS_ALLOW_SIGN_UP=false
|
- GF_USERS_ALLOW_SIGN_UP=false
|
||||||
|
- GF_RENDERING_SERVER_URL=http://grafana-image-renderer:8081/render
|
||||||
|
- GF_RENDERING_CALLBACK_URL=http://grafana:3000
|
||||||
|
- GF_RENDERING_CONCURRENT_RENDER_REQUEST_LIMIT=5
|
||||||
volumes:
|
volumes:
|
||||||
- grafana-data:/var/lib/grafana
|
- grafana-data:/var/lib/grafana
|
||||||
- ./grafana/provisioning:/etc/grafana/provisioning:ro
|
- ./grafana/provisioning:/etc/grafana/provisioning:ro
|
||||||
@@ -41,6 +44,15 @@ services:
|
|||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
depends_on:
|
depends_on:
|
||||||
- prometheus
|
- prometheus
|
||||||
|
- grafana-image-renderer
|
||||||
|
|
||||||
|
grafana-image-renderer:
|
||||||
|
image: grafana/grafana-image-renderer:3.11.0
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- ENABLE_METRICS=true
|
||||||
|
ports:
|
||||||
|
- "8081:8081"
|
||||||
|
|
||||||
node-exporter:
|
node-exporter:
|
||||||
image: prom/node-exporter:v1.8.1
|
image: prom/node-exporter:v1.8.1
|
||||||
|
|||||||
Reference in New Issue
Block a user