diff options
| author | Seth Flynn <[email protected]> | 2025-02-15 00:11:43 -0500 |
|---|---|---|
| committer | Seth Flynn <[email protected]> | 2025-02-15 01:18:39 -0500 |
| commit | 539f23daf05c81d4239b068254ff61598376da9e (patch) | |
| tree | 3bb9d2b783a2c3a4e254b0a419caa7c83a60b277 /systems/atlas/victoria-metrics.nix | |
| parent | eb1267e54b3ff75c73ddb9c4f67041d21bf82caa (diff) | |
atlas: collect more metrics for local services
Diffstat (limited to 'systems/atlas/victoria-metrics.nix')
| -rw-r--r-- | systems/atlas/victoria-metrics.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/systems/atlas/victoria-metrics.nix b/systems/atlas/victoria-metrics.nix index 25f0e57..fba00ae 100644 --- a/systems/atlas/victoria-metrics.nix +++ b/systems/atlas/victoria-metrics.nix @@ -1,4 +1,5 @@ { + config, lib, inputs, ... @@ -41,10 +42,56 @@ in prometheusConfig = { scrape_configs = [ { + job_name = "forgejo"; + metrics_path = "/metrics"; + static_configs = [ + { + targets = [ + "http://${config.services.forgejo.settings.server.HTTP_ADDR}:${toString config.services.forgejo.settings.server.HTTP_PORT}" + ]; + labels.type = "forgejo"; + } + ]; + } + + { + job_name = "miniflux"; + metrics_path = "/metrics"; + static_configs = [ + { + targets = [ "http://${config.services.miniflux.config.LISTEN_ADDR}" ]; + labels.type = "miniflux"; + } + ]; + } + + { job_name = "node-exporter"; metrics_path = "/metrics"; static_configs = remoteNodes; } + + { + job_name = "victoria-logs"; + metrics_path = "/metrics"; + static_configs = [ + { + targets = [ "localhost:9428" ]; + labels.type = "victoria-logs"; + } + ]; + } + + { + job_name = "victoria-metrics"; + metrics_path = "/metrics"; + static_configs = [ + { + targets = [ "localhost${config.services.victoriametrics.listenAddress}" ]; + labels.type = "victoria-logs"; + } + ]; + } ]; }; }; |
