From 3ef7bb543bf024fb7f0d83625e22949da9234a07 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sat, 20 Jul 2024 20:17:20 +0530 Subject: [PATCH] rico0: scrape postgres_exporter data --- hosts/rico0/services/apps/prometheus.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hosts/rico0/services/apps/prometheus.nix b/hosts/rico0/services/apps/prometheus.nix index 9cfb449..fcc5814 100644 --- a/hosts/rico0/services/apps/prometheus.nix +++ b/hosts/rico0/services/apps/prometheus.nix @@ -11,7 +11,16 @@ _: { prometheus = { enable = true; listenAddress = "127.0.0.1"; + port = 9090; scrapeConfigs = [ + { + job_name = "postgres"; + scheme = "https"; + metrics_path = "/postgres-metrics"; + static_configs = [ + { targets = [ "wynne.labs.adtya.xyz" ]; } + ]; + } { job_name = "systemd"; scheme = "https";