1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 19:47:47 +00:00

Scrape prometheus exporters over tailscale

This commit is contained in:
RGBCube 2024-05-11 23:43:06 +03:00
parent 685a6482ff
commit 9fac8ab7e4
No known key found for this signature in database
8 changed files with 51 additions and 115 deletions

View file

@ -2,24 +2,9 @@
let
fakeSSHPort = 22;
prometheusPort = 9050;
in serverSystemConfiguration {
services.prometheus = {
exporters.endlessh-go = enabled {
listenAddress = "[::1]";
port = prometheusPort;
};
scrapeConfigs = [{
job_name = "endlessh-go";
static_configs = [{
labels.job = "endlessh-go";
targets = [
"[::1]:${toString prometheusPort}"
];
}];
}];
services.prometheus.exporters.endlessh-go = enabled {
listenAddress = "[::]";
};
# `services.endlessh-go.openFirewall` exposes both the Prometheus

View file

@ -0,0 +1,8 @@
{ lib, ... }: with lib;
serverSystemConfiguration {
services.prometheus.exporters.node = enabled {
enabledCollectors = [ "processes" "systemd" ];
listenAddress = "[::]";
};
}