From 9549291be7123fcf643ee37ce115944354d7ef70 Mon Sep 17 00:00:00 2001 From: DoTheEvo Date: Sun, 5 Feb 2023 21:46:56 +0100 Subject: [PATCH] update --- prometheus_grafana/readme.md | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/prometheus_grafana/readme.md b/prometheus_grafana/readme.md index c8a061c..a5ffcee 100644 --- a/prometheus_grafana/readme.md +++ b/prometheus_grafana/readme.md @@ -447,43 +447,12 @@ groups: ``` - -
`prometheus.yml` -```yml -global: - scrape_interval: 15s - evaluation_interval: 15s - -scrape_configs: - - job_name: 'nodeexporter' - static_configs: - - targets: ['nodeexporter:9100'] - - - job_name: 'cadvisor' - static_configs: - - targets: ['cadvisor:8080'] - - - job_name: 'prometheus' - static_configs: - - targets: ['localhost:9090'] - -alerting: - alertmanagers: - - scheme: http - static_configs: - - targets: - - 'alertmanager:9093' - -rule_files: - - '/etc/prometheus/rules/alert.rules' -``` +aaa
-[ntfy](https://github.com/DoTheEvo/selfhosted-apps-docker/tree/master/gotify-ntfy-signal) -will be used to notify about prometheus alerts. test:
`curl -H 'Content-Type: application/json' -d '[{"labels":{"alertname":"blabla"}}]' https://alert.example.com/api/v1/alerts`