Add monitoring capabilities with Grafana and Prometheus

This commit is contained in:
HDwayne
2024-02-03 17:09:10 +01:00
parent f9746af9cd
commit 8e991488ce
5 changed files with 117 additions and 3 deletions

19
prometheus/prometheus.yml Normal file
View File

@@ -0,0 +1,19 @@
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s).
alerting:
alertmanagers:
- static_configs:
- targets:
# - alertmanager:9093
rule_files:
# - "first_rules.yml"
# - "second_rules.yml"
scrape_configs:
- job_name: "rabbitmq"
static_configs:
- targets: ["rabbitmq:15692"]