cluster/services/monitoring: add ingest-logs endpoint
This commit is contained in:
parent
6f32855cb7
commit
4713febf4b
2 changed files with 8 additions and 1 deletions
|
@ -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";
|
||||||
|
|
|
@ -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 = ''
|
||||||
|
|
Loading…
Reference in a new issue