add support for diskfree
add sidecar for ntfy alerts for grafana
This commit is contained in:
parent
cfa1a623c0
commit
77eee8b66b
3 changed files with 26 additions and 1 deletions
|
@ -4,6 +4,7 @@ version: "3.8"
|
||||||
networks:
|
networks:
|
||||||
traefik:
|
traefik:
|
||||||
external: true
|
external: true
|
||||||
|
grafana:
|
||||||
|
|
||||||
configs:
|
configs:
|
||||||
esdatasource:
|
esdatasource:
|
||||||
|
@ -80,6 +81,7 @@ services:
|
||||||
image: grafana/grafana-oss
|
image: grafana/grafana-oss
|
||||||
networks:
|
networks:
|
||||||
- traefik
|
- traefik
|
||||||
|
- grafana
|
||||||
deploy:
|
deploy:
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
|
@ -100,6 +102,21 @@ services:
|
||||||
- source: esdatasource
|
- source: esdatasource
|
||||||
target: /etc/grafana/provisioning/datasources/elasticsearch.yaml
|
target: /etc/grafana/provisioning/datasources/elasticsearch.yaml
|
||||||
|
|
||||||
|
grafana-ntfy:
|
||||||
|
image: kittyandrew/grafana-to-ntfy:master
|
||||||
|
ports:
|
||||||
|
- 8080:8080
|
||||||
|
networks:
|
||||||
|
grafana:
|
||||||
|
aliases:
|
||||||
|
- grafana-ntfy
|
||||||
|
environment:
|
||||||
|
- NTFY_URL=https://ntfy.kun.is/alerts
|
||||||
|
- NTFY_BAUTH_USER=pim
|
||||||
|
- NTFY_BAUTH_PASS=p2UfXybMxTRtEBT4FHnXzmHnvoha9ducIrTo19rK
|
||||||
|
- BAUTH_USER=admin
|
||||||
|
- BAUTH_PASS=test
|
||||||
|
|
||||||
fluentd:
|
fluentd:
|
||||||
image: git.kun.is/pim/fluentd:1.0.1
|
image: git.kun.is/pim/fluentd:1.0.1
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -17,3 +17,11 @@ datasources:
|
||||||
jsonData:
|
jsonData:
|
||||||
index: 'fluentd.memory-*'
|
index: 'fluentd.memory-*'
|
||||||
timeField: '@timestamp'
|
timeField: '@timestamp'
|
||||||
|
|
||||||
|
- name: diskfree
|
||||||
|
type: elasticsearch
|
||||||
|
access: proxy
|
||||||
|
url: http://maestro.dmz:{{ elasticsearch_port }}
|
||||||
|
jsonData:
|
||||||
|
index: 'fluentd.diskfree-*'
|
||||||
|
timeField: '@timestamp'
|
||||||
|
|
|
@ -30,7 +30,7 @@ resource "elasticstack_elasticsearch_index_template" "metrics_template" {
|
||||||
name = "metrics_template"
|
name = "metrics_template"
|
||||||
|
|
||||||
priority = 42
|
priority = 42
|
||||||
index_patterns = ["fluentd.cpu*", "fluentd.memory*"]
|
index_patterns = ["fluentd.cpu-*", "fluentd.memory-*", "fluentd.diskfree-*"]
|
||||||
|
|
||||||
template {
|
template {
|
||||||
settings = jsonencode({
|
settings = jsonencode({
|
||||||
|
|
Reference in a new issue