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:
parent
685a6482ff
commit
9fac8ab7e4
8 changed files with 51 additions and 115 deletions
|
@ -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
|
||||
|
|
8
modules/node-exporter.nix
Normal file
8
modules/node-exporter.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ lib, ... }: with lib;
|
||||
|
||||
serverSystemConfiguration {
|
||||
services.prometheus.exporters.node = enabled {
|
||||
enabledCollectors = [ "processes" "systemd" ];
|
||||
listenAddress = "[::]";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue