From 1ec981c1e63f4f23595bcc28999b01dcccc816e6 Mon Sep 17 00:00:00 2001 From: Felix Husse Date: Fri, 24 Oct 2025 20:55:00 +0200 Subject: [PATCH] added prometheus endpoint config --- rma-metrics/prometheus-config/prometheus.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 rma-metrics/prometheus-config/prometheus.yaml diff --git a/rma-metrics/prometheus-config/prometheus.yaml b/rma-metrics/prometheus-config/prometheus.yaml new file mode 100644 index 0000000..ed1e040 --- /dev/null +++ b/rma-metrics/prometheus-config/prometheus.yaml @@ -0,0 +1,54 @@ +global: + scrape_interval: 5s # By default, scrape targets every 15 seconds. + + # Attach these labels to any time series or alerts when communicating with + # external systems (federation, remote storage, Alertmanager). + # external_labels: + # monitor: 'codelab-monitor' + +# A scrape configuration containing exactly one endpoint to scrape: +# Here it's Prometheus itself. +scrape_configs: + # The job name is added as a label `job=` to any timeseries scraped from this config. + - job_name: 'prometheus' + # Override the global default and scrape targets from this job every 5 seconds. + scrape_interval: 5s + static_configs: + - targets: ['localhost:9090'] + # Example job for RMA Traefik exporter + - job_name: 'Demo-124' + metrics_path: /metrics + scheme: https + static_configs: + - targets: ['demo124.remote-master.cloud'] + basic_auth: + username: stadmin + password: 'Strudel8-Sandblast-Charity' + - job_name: 'Riedle-Bertsch' + metrics_path: / + scheme: https + static_configs: + - targets: ['metrics.riedle-bertsch.remote-master.cloud'] + basic_auth: + username: stadmin + password: 'Strudel8-Sandblast-Charity' + - job_name: 'simon-backup' + metrics_path: /metrics + scheme: https + static_configs: + - targets: ['backup.simon.acdctest.eu'] + - job_name: 'production_servers_stats' + scrape_interval: 5m + scrape_timeout: 90s + scheme: https + metrics_path: /stats/metrics + http_sd_configs: + # /targets is Service discover EP for all production targets. /targets/dev is just dev.remote-master.cloud for testing + - url: https://node.remote-master.cloud/v1/targets + refresh_interval: 60m + authorization: + type: Bearer + credentials: "Ancient-Detonator-Wrinkly5" + authorization: + type: Bearer + credentials: "AlLurik50EE3TXXhrhMm7iZKkTvoFDRMOI8blykvt1JJki0PgZa6C0RE3eRKfOY6+akB55OBYLL8LrzJOj7axstdweEP5KgdZ08D0csIFl5Ife0yarA6emcS5fCoBcDWFiXbUCW8VF1WWLz0v4i63jt6VgUaj71fcYmZcZUxC" \ No newline at end of file