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 = { services.grafana-agent = {
enable = true; enable = true;
settings = { settings = {
metrics.global.remote_write = lib.singleton {
url = "${cluster.config.links.prometheus-ingest.url}/api/v1/write";
};
logs.configs = lib.singleton { logs.configs = lib.singleton {
name = "logging"; name = "logging";
positions.filename = "\${STATE_DIRECTORY:/tmp}/logging-positions.yaml"; positions.filename = "\${STATE_DIRECTORY:/tmp}/logging-positions.yaml";