From c1ffb7f93ef0860b227855ff8b4ce19f7cd0b325 Mon Sep 17 00:00:00 2001 From: Geoffrey Gilmore Date: Wed, 9 Nov 2022 09:43:13 -0800 Subject: [PATCH] Update docker_rules.yml (#877) --- prometheus/prometheus.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 prometheus/prometheus.yml diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml new file mode 100644 index 0000000..649ad7a --- /dev/null +++ b/prometheus/prometheus.yml @@ -0,0 +1,35 @@ +# Prometheus global config +global: + scrape_interval: 30s + evaluation_interval: 30s + # scrape_timeout is set to the global default (10s). + +# Alertmanager configuration +alerting: + alertmanagers: + # bundled alertmanager, started by prom-wrapper + - static_configs: + - targets: ['127.0.0.1:9093'] + path_prefix: /alertmanager + # add more alertmanagers here + +# Load rules once and periodically evaluate them according to the global 'evaluation_interval'. +rule_files: + - '*_rules.yml' + - '/sg_prometheus_add_ons/*_rules.yml' + +# Configure targets to scrape +scrape_configs: + # Scrape prometheus itself for metrics. + - job_name: 'builtin-prometheus' + static_configs: + - targets: ['127.0.0.1:9092'] + - job_name: 'builtin-alertmanager' + metrics_path: /alertmanager/metrics + static_configs: + - targets: ['127.0.0.1:9093'] + + - job_name: 'sg' + file_sd_configs: + - files: + - '/sg_prometheus_add_ons/*_targets.yml' \ No newline at end of file