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
2
plugins/parsers/json_v2/testdata/array_of_objects/expected.out
vendored
Normal file
2
plugins/parsers/json_v2/testdata/array_of_objects/expected.out
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
file properties_mag=5.17
|
||||
file properties_mag=6.2
|
14
plugins/parsers/json_v2/testdata/array_of_objects/input.json
vendored
Normal file
14
plugins/parsers/json_v2/testdata/array_of_objects/input.json
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"features": [
|
||||
{
|
||||
"properties": {
|
||||
"mag": 5.17
|
||||
}
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"mag": 6.2
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
9
plugins/parsers/json_v2/testdata/array_of_objects/telegraf.conf
vendored
Normal file
9
plugins/parsers/json_v2/testdata/array_of_objects/telegraf.conf
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Example taken from: https://github.com/influxdata/telegraf/issues/5940
|
||||
|
||||
[[inputs.file]]
|
||||
files = ["./testdata/array_of_objects/input.json"]
|
||||
data_format = "json_v2"
|
||||
[[inputs.file.json_v2]]
|
||||
[[inputs.file.json_v2.object]]
|
||||
path = "features"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue