mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
Domain exporter
This commit is contained in:
parent
4570c49473
commit
0fe501b241
1 changed files with 26 additions and 0 deletions
|
|
@ -8,6 +8,9 @@
|
|||
enabledCollectors = ["systemd"];
|
||||
port = 9002;
|
||||
};
|
||||
domain = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
ruleFiles = [
|
||||
./synapse-v2.rules
|
||||
|
|
@ -21,6 +24,29 @@
|
|||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
job_name = "domains";
|
||||
metrics_path = "/probe";
|
||||
relabel_configs = [
|
||||
{
|
||||
source_labels = ["__address__"];
|
||||
target_label = "__param_target";
|
||||
}
|
||||
{
|
||||
target_label = "__address__";
|
||||
replacement = "127.0.0.1:${toString config.services.prometheus.exporters.domain.port}";
|
||||
}
|
||||
];
|
||||
static_configs = [
|
||||
{
|
||||
targets = [
|
||||
"dork.dev"
|
||||
"inskip.me"
|
||||
"gensokyo.zone"
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
job_name = "${config.networking.hostName}-synapse";
|
||||
metrics_path = "/_synapse/metrics";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue