From fba6c990e8b6e9e87b7b300558c3d42b90cbcff8 Mon Sep 17 00:00:00 2001 From: 0xevolve Date: Mon, 10 Jun 2024 18:31:06 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20prometheus=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prometheus/alerts.rules.yml | 8 ++++---- prometheus/prometheus.yml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/prometheus/alerts.rules.yml b/prometheus/alerts.rules.yml index 0643600..167ad3a 100644 --- a/prometheus/alerts.rules.yml +++ b/prometheus/alerts.rules.yml @@ -10,13 +10,13 @@ groups: summary: "Time since the last update is too high" description: "The time since the last update from {{ $labels.publisher }} has exceeded 1800 seconds." - alert: WrongPrice - expr: abs(price_deviation) > 0.025 + expr: abs(price_deviation) > 0.05 for: 5m labels: severity: warning annotations: summary: "Price deviation is too high" - description: "The price deviation of {{ $labels.pair }} from {{ $labels.source }} has exceeded 2.5%." + description: "The price deviation of {{ $labels.pair }} from {{ $labels.source }} has exceeded 5%." - alert: TooFewSources expr: num_sources < 5 for: 5m @@ -26,13 +26,13 @@ groups: summary: "Too few sources" description: "The number of sources for {{ $labels.pair }} has fallen below 5." - alert: SourceDeviation - expr: abs(price_deviation_source) > 0.02 + expr: abs(price_deviation_source) > 0.05 for: 5m labels: severity: warning annotations: summary: "Source deviation is too high" - description: "The source deviation of {{ $labels.pair }} from {{ $labels.source }} has exceeded 2%." + description: "The source deviation of {{ $labels.pair }} from {{ $labels.source }} has exceeded 5%." - alert: IndexerDown expr: indexer_blocks_left > 10 for: 5m diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml index f4894a6..3d72795 100644 --- a/prometheus/prometheus.yml +++ b/prometheus/prometheus.yml @@ -5,7 +5,7 @@ global: scrape_configs: - job_name: "prometheus_monitoring" static_configs: - - targets: ["host.docker.internal:8080"] + - targets: ["localhost:8080"] rule_files: - "alerts.rules.yml" @@ -14,4 +14,4 @@ alerting: alertmanagers: - static_configs: - targets: - - host.docker.internal:9093 + - localhost:9093