2022-01-15 09:57:49 +00:00
|
|
|
{ config, ... }: {
|
2022-01-14 20:58:33 +00:00
|
|
|
services.prometheus = {
|
|
|
|
enable = true;
|
2022-01-16 20:14:47 +00:00
|
|
|
port = 9002;
|
2022-01-19 19:37:30 +00:00
|
|
|
globalConfig = {
|
|
|
|
scrape_interval = "10s";
|
|
|
|
scrape_timeout = "2s";
|
|
|
|
};
|
2022-01-15 09:57:49 +00:00
|
|
|
scrapeConfigs = [
|
|
|
|
{
|
|
|
|
job_name = "node_exporter";
|
|
|
|
static_configs = [{
|
|
|
|
targets = [
|
2022-05-03 09:31:27 +00:00
|
|
|
"nixos-8gb-fsn1-1.int.chir.rs:${toString config.services.prometheus.exporters.node.port}"
|
|
|
|
"nutty-noon.int.chir.rs:${toString config.services.prometheus.exporters.node.port}"
|
|
|
|
"nas.int.chir.rs:${toString config.services.prometheus.exporters.node.port}"
|
|
|
|
"thinkrac.int.chir.rs:${toString config.services.prometheus.exporters.node.port}"
|
2022-01-15 09:57:49 +00:00
|
|
|
];
|
|
|
|
}];
|
|
|
|
}
|
2022-01-15 13:44:34 +00:00
|
|
|
{
|
|
|
|
job_name = "bind_exporter";
|
|
|
|
static_configs = [{
|
|
|
|
targets = [
|
2022-05-03 09:31:27 +00:00
|
|
|
"nixos-8gb-fsn1-1.int.chir.rs:${toString config.services.prometheus.exporters.bind.port}"
|
2022-01-15 13:44:34 +00:00
|
|
|
];
|
|
|
|
}];
|
|
|
|
}
|
2022-01-15 20:50:42 +00:00
|
|
|
{
|
|
|
|
job_name = "postgres_exporter";
|
|
|
|
static_configs = [{
|
|
|
|
targets = [
|
2022-05-03 09:31:27 +00:00
|
|
|
"nixos-8gb-fsn1-1.int.chir.rs:${toString config.services.prometheus.exporters.postgres.port}"
|
2022-01-15 20:50:42 +00:00
|
|
|
];
|
|
|
|
}];
|
|
|
|
}
|
2022-01-17 13:32:52 +00:00
|
|
|
{
|
|
|
|
job_name = "gitea_exporter";
|
|
|
|
static_configs = [{
|
|
|
|
targets = [
|
2022-05-03 09:31:27 +00:00
|
|
|
"nixos-8gb-fsn1-1.int.chir.rs:${toString config.services.gitea.httpPort}"
|
2022-01-17 13:32:52 +00:00
|
|
|
];
|
|
|
|
}];
|
|
|
|
}
|
2022-01-17 14:26:01 +00:00
|
|
|
{
|
2022-05-03 09:31:27 +00:00
|
|
|
job_name = "dovecot_exporter";
|
|
|
|
static_configs = [{
|
|
|
|
targets = [
|
|
|
|
"nixos-8gb-fsn1-1.int.chir.rs:${toString config.services.prometheus.exporters.dovecot.port}"
|
|
|
|
];
|
|
|
|
}];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "hydra_exporter";
|
|
|
|
static_configs = [{
|
|
|
|
targets = [
|
|
|
|
"nas.int.chir.rs:9199"
|
|
|
|
];
|
|
|
|
}];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "statsd_exporter";
|
|
|
|
static_configs = [{
|
|
|
|
targets = [
|
|
|
|
"nas.int.chir.rs:9102"
|
|
|
|
];
|
|
|
|
}];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "matrix_media_repo";
|
|
|
|
static_configs = [{
|
|
|
|
targets = [
|
|
|
|
"nixos-8gb-fsn1-1.int.chir.rs:9000"
|
|
|
|
];
|
|
|
|
}];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "rspamd_exporter";
|
|
|
|
static_configs = [{
|
|
|
|
targets = [
|
|
|
|
"nas.int.chir.rs:7980"
|
|
|
|
];
|
|
|
|
}];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "synapse";
|
|
|
|
static_configs = [{
|
|
|
|
targets = [
|
|
|
|
"nas.int.chir.rs:9009"
|
|
|
|
];
|
|
|
|
}];
|
2022-01-17 14:26:01 +00:00
|
|
|
}
|
2022-01-15 09:57:49 +00:00
|
|
|
];
|
2022-04-28 17:51:20 +00:00
|
|
|
checkConfig = false;
|
2022-01-14 20:58:33 +00:00
|
|
|
};
|
|
|
|
}
|