gitea: Add monitoring
This commit is contained in:
parent
c373911a1b
commit
6f8d95781c
2 changed files with 44 additions and 6 deletions
|
@ -138,12 +138,29 @@ in {
|
|||
job_name = "tlater.net";
|
||||
static_configs = [
|
||||
{
|
||||
targets =
|
||||
lib.mapAttrsToList (name: exporter: "${exporter.listenAddress}:${toString exporter.port}")
|
||||
(lib.filterAttrs (name: exporter: (builtins.isAttrs exporter) && exporter.enable)
|
||||
(config.services.prometheus.exporters // config.services.prometheus.local-exporters))
|
||||
++ [
|
||||
"127.0.0.1:9641" # coturn
|
||||
targets = let
|
||||
exporters = config.services.prometheus.exporters;
|
||||
localExporters = config.services.prometheus.local-exporters;
|
||||
in
|
||||
map (exporter: "${exporter.listenAddress}:${toString exporter.port}") [
|
||||
exporters.domain
|
||||
exporters.node
|
||||
exporters.nginx
|
||||
exporters.nginxlog
|
||||
exporters.systemd
|
||||
|
||||
localExporters.prometheus-fail2ban-exporter
|
||||
|
||||
{
|
||||
# coturn
|
||||
listenAddress = "127.0.0.1";
|
||||
port = "9641";
|
||||
}
|
||||
{
|
||||
# gitea
|
||||
listenAddress = "127.0.0.1";
|
||||
port = "3000";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue