From e5f9710db618f1c5bd0b66248abef3e750feb313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20C=2E=20Mass=C3=B3n?= <939888+Abuelodelanada@users.noreply.github.com> Date: Mon, 16 Sep 2024 18:55:01 -0300 Subject: [PATCH 1/3] Update logs-config.md - structured_metadata According to what I was able to investigate, grafana-agent is not able to forward `structured_metadata` received from `promtail` (or another `grafana-agent` instance) to Loki. https://grafana.slack.com/archives/C01050C3D8F/p1726151855977039 --- docs/sources/static/configuration/logs-config.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/sources/static/configuration/logs-config.md b/docs/sources/static/configuration/logs-config.md index 56d8d0677394..f6905ac41d71 100644 --- a/docs/sources/static/configuration/logs-config.md +++ b/docs/sources/static/configuration/logs-config.md @@ -17,10 +17,23 @@ a Loki push API endpoint. `logs_config` is identical to how Promtail is configured, except deprecated fields have been removed and the server_config is not supported. +## structured_metadata + +Keep in mind that Grafana Agent in a deployment like this one: + +``` +promtail --> grafana-agent --> Loki +``` +is not able to forward `structured_metadata` received from `promtail` to `loki`. + + Refer to the [Promtail documentation](/docs/loki/latest/clients/promtail/configuration/#clients) for the supported values for these fields. + + + ```yaml # Directory to store Loki Promtail positions files in. Positions files are # required to read logs, and are used to store the last read offset of log From f1c4945eab87365947b85811d9bfe77af9992b2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20C=2E=20Mass=C3=B3n?= <939888+Abuelodelanada@users.noreply.github.com> Date: Wed, 18 Sep 2024 12:07:25 -0300 Subject: [PATCH 2/3] Update docs/sources/static/configuration/logs-config.md Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com> --- docs/sources/static/configuration/logs-config.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/sources/static/configuration/logs-config.md b/docs/sources/static/configuration/logs-config.md index f6905ac41d71..fc5448d9d26d 100644 --- a/docs/sources/static/configuration/logs-config.md +++ b/docs/sources/static/configuration/logs-config.md @@ -19,12 +19,7 @@ not supported. ## structured_metadata -Keep in mind that Grafana Agent in a deployment like this one: - -``` -promtail --> grafana-agent --> Loki -``` -is not able to forward `structured_metadata` received from `promtail` to `loki`. +A Grafana Agent deployment similar to `promtail --> grafana-agent --> Loki` can't forward `structured_metadata` received from Promtail to Loki. Refer to the From d9088740cd7f2aa12f330fa52032f8b5024eb526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20C=2E=20Mass=C3=B3n?= <939888+Abuelodelanada@users.noreply.github.com> Date: Wed, 18 Sep 2024 12:07:37 -0300 Subject: [PATCH 3/3] Update docs/sources/static/configuration/logs-config.md Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com> --- docs/sources/static/configuration/logs-config.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/sources/static/configuration/logs-config.md b/docs/sources/static/configuration/logs-config.md index fc5448d9d26d..102fb6ab2887 100644 --- a/docs/sources/static/configuration/logs-config.md +++ b/docs/sources/static/configuration/logs-config.md @@ -25,10 +25,6 @@ A Grafana Agent deployment similar to `promtail --> grafana-agent --> Loki` can' Refer to the [Promtail documentation](/docs/loki/latest/clients/promtail/configuration/#clients) for the supported values for these fields. - - - - ```yaml # Directory to store Loki Promtail positions files in. Positions files are # required to read logs, and are used to store the last read offset of log