mirror of https://github.com/grafana/loki
Promtail docs: Fix docker stage code example (#7653)
The current, 2.6.x, documentation on [configuring promtail
_pipeline_stages_](https://grafana.com/docs/loki/latest/clients/promtail/configuration/#pipeline_stages)
contains a [docker
stage](https://grafana.com/docs/loki/latest/clients/promtail/configuration/#docker)
which wraps the json, labels, timestamp, and output stage. The unwrapped
configuration is shown as example. However, this example is outdated as
can be seen by the lack of `expressions`. I have stumbled across this as
I tried the example in my own config as a starter to modify to my own
needs. It took me some time to realize what `failed to make file target
manager: invalid json stage config: JMES expression is required` meant.
This PR updates the example to match the current code at
<a6df09bc97/clients/pkg/logentry/stages/extensions.go (L16-L42)
>
Going back in history points to #576 as the origin of the divergence.
pull/7658/head
parent
764ee7c3bb
commit
aa0bec4786
Loading…
Reference in new issue