diff options
| author | Isabella Bastaja <isabella@sorre.xyz> | 2025-12-26 23:51:23 +0100 |
|---|---|---|
| committer | Isabella Bastaja <isabella@sorre.xyz> | 2025-12-26 23:51:23 +0100 |
| commit | 5e7896eac4da3ba6ee0e42ec9dd27c1e3d8e011e (patch) | |
| tree | 21aeae9045580e2205236fa157bb65c715102e3b /hosts/sagittarius | |
| parent | b34f7b7e297595251cf6019941a32b8acc4d1574 (diff) | |
sagittarius: prometheus hello world
Diffstat (limited to 'hosts/sagittarius')
| -rw-r--r-- | hosts/sagittarius/web/observability.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/hosts/sagittarius/web/observability.nix b/hosts/sagittarius/web/observability.nix index 6a2e58a..cebeac0 100644 --- a/hosts/sagittarius/web/observability.nix +++ b/hosts/sagittarius/web/observability.nix @@ -72,4 +72,22 @@ in }; }; + services.prometheus = { + enable = true; + globalConfig = { + scrape_timeout = "10s"; + scrape_interval = "1m"; + }; + scrapeConfigs = [ + { + job_name = "otel"; + scrape_interval = "5s"; + static_configs = [ + { + targets = [ "localhost:${toString otel-prometheus-exporter-port}" ]; + } + ]; + } + ]; + }; } |
