cluster/services/monitoring: run loki over ways
This commit is contained in:
parent
549cbdb6c8
commit
9f158f15a4
3 changed files with 30 additions and 4 deletions
|
@ -87,8 +87,18 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
ways.monitoring = {
|
ways = {
|
||||||
|
monitoring = {
|
||||||
consulService = "grafana";
|
consulService = "grafana";
|
||||||
extras.locations."/".proxyWebsockets = true;
|
extras.locations."/".proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
|
monitoring-logs = {
|
||||||
|
internal = true;
|
||||||
|
consulService = "loki";
|
||||||
|
extras.extraConfig = ''
|
||||||
|
client_max_body_size 4G;
|
||||||
|
proxy_read_timeout 3600s;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,7 +70,7 @@ in
|
||||||
{
|
{
|
||||||
name = "Loki";
|
name = "Loki";
|
||||||
uid = "P8E80F9AEF21F6940";
|
uid = "P8E80F9AEF21F6940";
|
||||||
inherit (loki-ingest) url;
|
inherit (cluster.config.ways.monitoring-logs) url;
|
||||||
type = "loki";
|
type = "loki";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
@ -104,4 +104,20 @@ in
|
||||||
querier.max_concurrent = 16;
|
querier.max_concurrent = 16;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
consul.services.loki = {
|
||||||
|
definition = {
|
||||||
|
name = "loki";
|
||||||
|
address = loki-ingest.ipv4;
|
||||||
|
inherit (loki-ingest) port;
|
||||||
|
checks = [
|
||||||
|
{
|
||||||
|
name = "Loki";
|
||||||
|
id = "service:loki:backend";
|
||||||
|
interval = "5s";
|
||||||
|
http = "${loki-ingest.url}/ready";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue