cluster/services/monitoring: add ingest-logs endpoint

This commit is contained in:
Max Headroom 2024-08-23 00:32:44 +02:00
parent 6f32855cb7
commit 4713febf4b
2 changed files with 8 additions and 1 deletions

View file

@ -26,7 +26,7 @@ in {
name = "logging"; name = "logging";
positions.filename = "\${STATE_DIRECTORY:/tmp}/logging-positions.yaml"; positions.filename = "\${STATE_DIRECTORY:/tmp}/logging-positions.yaml";
clients = singleton { clients = singleton {
url = "${cluster.config.ways.monitoring-logs.url}/loki/api/v1/push"; url = "${cluster.config.ways.ingest-logs.url}/loki/api/v1/push";
}; };
scrape_configs = singleton { scrape_configs = singleton {
job_name = "journal"; job_name = "journal";

View file

@ -99,6 +99,13 @@ in
extras.locations."/".proxyWebsockets = true; extras.locations."/".proxyWebsockets = true;
}; };
monitoring-logs = { monitoring-logs = {
internal = true;
consulService = "loki";
extras.extraConfig = ''
proxy_read_timeout 3600s;
'';
};
ingest-logs = {
internal = true; internal = true;
consulService = "loki"; consulService = "loki";
extras.extraConfig = '' extras.extraConfig = ''