Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
18
plugins/parsers/json_v2/testdata/multiple_json_input/telegraf.conf
vendored
Normal file
18
plugins/parsers/json_v2/testdata/multiple_json_input/telegraf.conf
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
[[inputs.file]]
|
||||
files = ["./testdata/multiple_json_input/input_1.json", "./testdata/multiple_json_input/input_2.json"]
|
||||
data_format = "json_v2"
|
||||
[[inputs.file.json_v2]]
|
||||
[[inputs.file.json_v2.object]]
|
||||
path = "root.station"
|
||||
[[inputs.file.json_v2.object.tag]]
|
||||
path="#.abbr"
|
||||
rename = "from_station"
|
||||
[[inputs.file.json_v2.object.field]]
|
||||
path = "#.etd.0.estimate.0.minutes"
|
||||
rename = "minutes"
|
||||
type = "int"
|
||||
[[inputs.file.json_v2.object.tag]]
|
||||
path = "#.etd.0.abbreviation"
|
||||
rename = "to_station"
|
||||
[[inputs.file.json_v2.object.tag]]
|
||||
path = "#.etd.0.estimate.0.direction"
|
Loading…
Add table
Add a link
Reference in a new issue