feat: enable vault metrics

This commit is contained in:
Ilya K 2025-01-04 16:21:53 +03:00
parent 56a6fc766b
commit a1f2c9209f

View file

@ -56,6 +56,10 @@ in
storageBackend = "raft"; storageBackend = "raft";
listenerExtraConfig = '' listenerExtraConfig = ''
cluster_address = "${wanAddress}:8201" cluster_address = "${wanAddress}:8201"
telemetry {
unauthenticated_metrics_access = true
}
''; '';
storageConfig = '' storageConfig = ''
node_id = "${config.networking.fqdn}" node_id = "${config.networking.fqdn}"
@ -66,7 +70,19 @@ in
extraConfig = '' extraConfig = ''
cluster_addr = "http://${config.networking.fqdn}:8201" cluster_addr = "http://${config.networking.fqdn}:8201"
api_addr = "https://${config.networking.fqdn}" api_addr = "https://${config.networking.fqdn}"
telemetry {
prometheus_retention_time = "60s"
}
''; '';
}; };
bagel.monitoring.grafana-agent.exporters.vault = {
port = 8200;
scrapeConfig = {
metrics_path = "/v1/sys/metrics";
params.format = ["prometheus"];
};
};
}; };
} }