diff --git a/alveolus/loki-simple/src/main/resources/bundlebee/kubernetes/io.yupiik.alveoli_loki-simple.configmap.yaml b/alveolus/loki-simple/src/main/resources/bundlebee/kubernetes/io.yupiik.alveoli_loki-simple.configmap.yaml index 183a93d9..6e902e00 100644 --- a/alveolus/loki-simple/src/main/resources/bundlebee/kubernetes/io.yupiik.alveoli_loki-simple.configmap.yaml +++ b/alveolus/loki-simple/src/main/resources/bundlebee/kubernetes/io.yupiik.alveoli_loki-simple.configmap.yaml @@ -27,7 +27,7 @@ data: log_level: info http_listen_port: 3101 clients: - - url: http://loki:3100/loki/api/v1/push + - url: {{loki-simple.loki.client_url:-http://loki:3100/loki/api/v1/push}} positions: filename: /run/promtail/positions.yaml scrape_configs: diff --git a/alveolus/loki-simple/src/main/resources/bundlebee/manifest.json b/alveolus/loki-simple/src/main/resources/bundlebee/manifest.json index 136dc1fd..d42f10a2 100644 --- a/alveolus/loki-simple/src/main/resources/bundlebee/manifest.json +++ b/alveolus/loki-simple/src/main/resources/bundlebee/manifest.json @@ -1,7 +1,7 @@ { "alveoli": [ { - "//": "Loki setup to aggregate service logs using promtail, the prometheus for logs.", + "//": "Loki setup to aggregate service logs using promtail, the prometheus for logs.\n\nNOTE: Starting from 1.0.20, the Promtail descriptor moved from Deployment to DaemonSet", "name": "${project.groupId}:${project.artifactId}:${project.version}", "descriptors": [ { @@ -49,6 +49,10 @@ "name": "loki-simple.loki.image", "description": "The image to use for loki." }, + { + "name": "loki-simple.loki.client_url", + "description": "URL of the Loki API used to push data." + }, { "name": "loki-simple.loki.pipeline_stage", "description": "Pipeline stage to use, generally `cri` or `docker`."