From 8585e3537375c0deb11462d7256f5da23228f5e1 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Tue, 12 Mar 2024 20:20:28 +0000 Subject: [PATCH] fix: promtail failures connecting to local loki installation [release-2.9.x] (#12184) Co-authored-by: Vishal Vazkar --- docs/sources/send-data/promtail/installation.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/sources/send-data/promtail/installation.md b/docs/sources/send-data/promtail/installation.md index d39b22b32717..e7dc18a8f6cd 100644 --- a/docs/sources/send-data/promtail/installation.md +++ b/docs/sources/send-data/promtail/installation.md @@ -40,10 +40,20 @@ And the chart repository can be updated by running: helm repo update ``` +Create the configuration file `values.yaml`. The example below illustrates a connection to the locally deployed loki server: +```yaml +config: + # publish data to loki + clients: + - url: http://loki-gateway/loki/api/v1/push + tenant_id: 1 +``` + Finally, Promtail can be deployed with: ```bash -helm upgrade --install promtail grafana/promtail +# The default helm configuration deploys promtail as a daemonSet (recommended) +helm upgrade --values values.yaml --install promtail grafana/promtail ``` ## Install as Kubernetes daemonSet (recommended)