2022-06-12 15:39:15 +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";
|
2022-06-12 15:39:15 +00:00
|
|
|
static_configs = [
|
|
|
|
{
|
|
|
|
targets = [
|
|
|
|
"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";
|
2022-06-12 15:39:15 +00:00
|
|
|
static_configs = [
|
|
|
|
{
|
|
|
|
targets = [
|
|
|
|
"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";
|
2022-06-12 15:39:15 +00:00
|
|
|
static_configs = [
|
|
|
|
{
|
|
|
|
targets = [
|
|
|
|
"nixos-8gb-fsn1-1.int.chir.rs:${toString config.services.prometheus.exporters.postgres.port}"
|
|
|
|
"nas.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";
|
2022-06-12 15:39:15 +00:00
|
|
|
static_configs = [
|
|
|
|
{
|
|
|
|
targets = [
|
|
|
|
"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";
|
2022-06-12 15:39:15 +00:00
|
|
|
static_configs = [
|
|
|
|
{
|
|
|
|
targets = [
|
|
|
|
"nixos-8gb-fsn1-1.int.chir.rs:${toString config.services.prometheus.exporters.dovecot.port}"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
2022-05-03 09:31:27 +00:00
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "hydra_exporter";
|
2022-06-12 15:39:15 +00:00
|
|
|
static_configs = [
|
|
|
|
{
|
|
|
|
targets = [
|
|
|
|
"nas.int.chir.rs:9199"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
2022-05-03 09:31:27 +00:00
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "statsd_exporter";
|
2022-06-12 15:39:15 +00:00
|
|
|
static_configs = [
|
|
|
|
{
|
|
|
|
targets = [
|
|
|
|
"nas.int.chir.rs:9102"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
2022-05-03 09:31:27 +00:00
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "matrix_media_repo";
|
2022-06-12 15:39:15 +00:00
|
|
|
static_configs = [
|
|
|
|
{
|
|
|
|
targets = [
|
|
|
|
"nixos-8gb-fsn1-1.int.chir.rs:9000"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
2022-05-03 09:31:27 +00:00
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "rspamd_exporter";
|
2022-06-12 15:39:15 +00:00
|
|
|
static_configs = [
|
|
|
|
{
|
|
|
|
targets = [
|
|
|
|
"nas.int.chir.rs:7980"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
2022-05-03 09:31:27 +00:00
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "synapse";
|
2022-05-28 07:14:57 +00:00
|
|
|
scrape_interval = "30s";
|
|
|
|
scrape_timeout = "10s";
|
2022-05-03 14:23:05 +00:00
|
|
|
metrics_path = "/_synapse/metrics";
|
2022-06-12 15:39:15 +00:00
|
|
|
static_configs = [
|
|
|
|
{
|
|
|
|
targets = [
|
|
|
|
"matrix.int.chir.rs:80"
|
|
|
|
];
|
|
|
|
labels = {
|
|
|
|
instance = "matrix.chir.rs";
|
|
|
|
job = "master";
|
|
|
|
index = "1";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
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
|
|
|
};
|
|
|
|
}
|