Skip to content

Commit

Permalink
docs: small typo in an example (#5456) (#5461)
Browse files Browse the repository at this point in the history
Hello :)

The exported field for local.file is `content` and not `content`. :)

https://grafana.com/docs/agent/latest/flow/reference/components/local.file/#exported-fields

Co-authored-by: Clayton Cornell <[email protected]>
(cherry picked from commit 73c2642)

Co-authored-by: Maxime Le Conte des Floris <[email protected]>
  • Loading branch information
grafanabot and mlcdf authored Oct 12, 2023
1 parent 5c2494a commit 3d9983d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ allow for more complex expressions (e.g. concatenating arrays or decoding JSON
strings into objects).
```river
env("HOME")
json_decode(local.file.cfg.contents)["namespace"]
json_decode(local.file.cfg.content)["namespace"]
```

[standard library]: {{< relref "../../reference/stdlib" >}}

0 comments on commit 3d9983d

Please sign in to comment.