Skip to content

Commit

Permalink
docs: small typo in an example (#5456) (#5460)
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 98a011e commit b3eb3b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,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 b3eb3b5

Please sign in to comment.