Skip to content

Commit

Permalink
Update logs-config.md - structured_metadata
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Abuelodelanada authored Sep 16, 2024
1 parent 580d30c commit e5f9710
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/sources/static/configuration/logs-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e5f9710

Please sign in to comment.