Skip to content

Commit

Permalink
🔨 prometheus config
Browse files Browse the repository at this point in the history
  • Loading branch information
EvolveArt committed Jun 10, 2024
1 parent fab5233 commit fba6c99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions prometheus/alerts.rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -14,4 +14,4 @@ alerting:
alertmanagers:
- static_configs:
- targets:
- host.docker.internal:9093
- localhost:9093

0 comments on commit fba6c99

Please sign in to comment.