docs(serializers.json): specify version of jsonata used (#12117)
This commit is contained in:
parent
7d37ddfe51
commit
7466834164
|
|
@ -27,7 +27,9 @@ The `json` output data format converts metrics into JSON documents.
|
|||
# e.g.: json_timestamp_format = "2006-01-02T15:04:05Z07:00"
|
||||
#json_timestamp_format = ""
|
||||
|
||||
## A [JSONata](https://jsonata.org/) transformation of the JSON in [standard-form](#examples).
|
||||
## A [JSONata](https://jsonata.org/) transformation of the JSON in
|
||||
## [standard-form](#examples). Please note that only version 1.5.4 of the
|
||||
## JSONata is supported due to the underlying library used.
|
||||
## This allows to generate an arbitrary output form based on the metric(s). Please use
|
||||
## multiline strings (starting and ending with three single-quotes) if needed.
|
||||
#json_transformation = ""
|
||||
|
|
@ -100,6 +102,11 @@ metric in the standard-form above.
|
|||
The former adds a `metrics` field containing the metric array, while the later
|
||||
serializes the metric directly.
|
||||
|
||||
**Note**: Please note that the JSONata support is limited to version 1.5.4 due
|
||||
to the underlying library used by Telegraf. When using the online playground
|
||||
below ensure that you have selected 1.5.4 when trying examples or building
|
||||
transformations.
|
||||
|
||||
In the following sections, some rudimentary examples for transformations are shown.
|
||||
For more elaborated JSONata expressions please consult the
|
||||
[documentation](https://docs.jsonata.org) or the
|
||||
|
|
|
|||
Loading…
Reference in New Issue