add forgejo metrics
This commit is contained in:
parent
b2f0114d0e
commit
73b10a4feb
1 changed files with 19 additions and 12 deletions
|
|
@ -16,19 +16,24 @@
|
|||
retentionTime = "14d";
|
||||
listenAddress = "[::1]";
|
||||
scrapeConfigs = [
|
||||
{
|
||||
job_name = "forgejo";
|
||||
scrape_interval = "15s";
|
||||
static_configs = [ { targets = [ "git.${config.networking.domain}:443" ]; } ];
|
||||
}
|
||||
{
|
||||
job_name = "synapse";
|
||||
scrape_interval = "15s";
|
||||
scheme = "https";
|
||||
metrics_path = "/_synapse/metrics";
|
||||
static_configs = [ { targets = [ "matrix.berlin.ccc.de:443" ]; } ];
|
||||
static_configs = [ { targets = [ "matrix.${config.networking.domain}:443" ]; } ];
|
||||
}
|
||||
{
|
||||
job_name = "postgres";
|
||||
scrape_interval = "15s";
|
||||
static_configs = [
|
||||
{
|
||||
targets = [ "sql.berlin.ccc.de:${toString config.services.prometheus.exporters.postgres.port}" ];
|
||||
targets = [ "sql.${config.networking.domain}:${toString config.services.prometheus.exporters.postgres.port}" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
@ -38,11 +43,12 @@
|
|||
static_configs = [
|
||||
{
|
||||
targets = [
|
||||
"matrix.berlin.ccc.de:${toString config.services.prometheus.exporters.node.port}"
|
||||
"md.berlin.ccc.de:${toString config.services.prometheus.exporters.node.port}"
|
||||
"sql.berlin.ccc.de:${toString config.services.prometheus.exporters.node.port}"
|
||||
"monitoring.berlin.ccc.de:${toString config.services.prometheus.exporters.node.port}"
|
||||
"www.berlin.ccc.de:${toString config.services.prometheus.exporters.node.port}"
|
||||
"matrix.${config.networking.domain}:${toString config.services.prometheus.exporters.node.port}"
|
||||
"md.${config.networking.domain}:${toString config.services.prometheus.exporters.node.port}"
|
||||
"sql.${config.networking.domain}:${toString config.services.prometheus.exporters.node.port}"
|
||||
"monitoring.${config.networking.domain}:${toString config.services.prometheus.exporters.node.port}"
|
||||
"www.${config.networking.domain}:${toString config.services.prometheus.exporters.node.port}"
|
||||
"git.${config.networking.domain}:${toString config.services.prometheus.exporters.node.port}"
|
||||
"mqtt.club.berlin.ccc.de:9100"
|
||||
"forgejo-runner.club.berlin.ccc.de:9100"
|
||||
];
|
||||
|
|
@ -55,10 +61,11 @@
|
|||
static_configs = [
|
||||
{
|
||||
targets = [
|
||||
"matrix.berlin.ccc.de:${toString config.services.prometheus.exporters.nginx.port}"
|
||||
"md.berlin.ccc.de:${toString config.services.prometheus.exporters.nginx.port}"
|
||||
"monitoring.berlin.ccc.de:${toString config.services.prometheus.exporters.nginx.port}"
|
||||
"www.berlin.ccc.de:${toString config.services.prometheus.exporters.nginx.port}"
|
||||
"matrix.${config.networking.domain}:${toString config.services.prometheus.exporters.nginx.port}"
|
||||
"md.${config.networking.domain}:${toString config.services.prometheus.exporters.nginx.port}"
|
||||
"monitoring.${config.networking.domain}:${toString config.services.prometheus.exporters.nginx.port}"
|
||||
"www.${config.networking.domain}:${toString config.services.prometheus.exporters.nginx.port}"
|
||||
"git.${config.networking.domain}:${toString config.services.prometheus.exporters.nginx.port}"
|
||||
];
|
||||
}
|
||||
];
|
||||
|
|
@ -69,7 +76,7 @@
|
|||
scrape_interval = "15s";
|
||||
static_configs = [
|
||||
{
|
||||
targets = [ "ellsberg.berlin.ccc.de" ];
|
||||
targets = [ "ellsberg.${config.networking.domain}" ];
|
||||
}
|
||||
];
|
||||
metrics_path = "/pve";
|
||||
|
|
|
|||
Loading…
Reference in a new issue