cluster/services/monitoring: configure remote write url

This commit is contained in:
Max Headroom 2023-05-26 16:49:33 +02:00
parent ba66551e20
commit 6cff7460f6

View file

@ -27,6 +27,9 @@ in {
services.grafana-agent = {
enable = true;
settings = {
metrics.global.remote_write = lib.singleton {
url = "${cluster.config.links.prometheus-ingest.url}/api/v1/write";
};
logs.configs = lib.singleton {
name = "logging";
positions.filename = "\${STATE_DIRECTORY:/tmp}/logging-positions.yaml";