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/nested_array_of_objects/expected.out
vendored
Normal file
2
plugins/parsers/json_v2/testdata/nested_array_of_objects/expected.out
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
new_metric,name=partition LogEndOffset=339238i,LogStartOffset=339238i,NumLogSegments=1i,Size=0i,UnderReplicatedPartitions=0i 1610056029037925000
|
||||
new_metric,name=partition LogEndOffset=33914i,LogStartOffset=33238i,NumLogSegments=1i,Size=2i,UnderReplicatedPartitions=5i 1610056029037956000
|
36
plugins/parsers/json_v2/testdata/nested_array_of_objects/input.json
vendored
Normal file
36
plugins/parsers/json_v2/testdata/nested_array_of_objects/input.json
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
[
|
||||
{
|
||||
"data": {
|
||||
"LogEndOffset": 339238,
|
||||
"LogStartOffset": 339238,
|
||||
"NumLogSegments": 1,
|
||||
"Size": 0,
|
||||
"UnderReplicatedPartitions": 0
|
||||
},
|
||||
"name": "partition",
|
||||
"tags": {
|
||||
"host": "CUD1-001559",
|
||||
"jolokia_agent_url": "http://localhost:7777/jolokia",
|
||||
"partition": "1",
|
||||
"topic": "qa-kafka-connect-logs"
|
||||
},
|
||||
"timestamp": 1591124461
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"LogEndOffset": 33914,
|
||||
"LogStartOffset": 33238,
|
||||
"NumLogSegments": 1,
|
||||
"Size": 2,
|
||||
"UnderReplicatedPartitions": 5
|
||||
},
|
||||
"name": "partition",
|
||||
"tags": {
|
||||
"host": "CUD1-001559",
|
||||
"jolokia_agent_url": "http://localhost:7777/jolokia",
|
||||
"partition": "1",
|
||||
"topic": "qa-kafka-connect-logs"
|
||||
},
|
||||
"timestamp": 1591124461
|
||||
}
|
||||
]
|
15
plugins/parsers/json_v2/testdata/nested_array_of_objects/telegraf.conf
vendored
Normal file
15
plugins/parsers/json_v2/testdata/nested_array_of_objects/telegraf.conf
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Example taken from: https://github.com/influxdata/feature-requests/issues/160
|
||||
|
||||
[[inputs.file]]
|
||||
files = ["./testdata/nested_array_of_objects/input.json"]
|
||||
data_format = "json_v2"
|
||||
[[inputs.file.json_v2]]
|
||||
measurement_name = "new_metric"
|
||||
[[inputs.file.json_v2.object]]
|
||||
path = "@this"
|
||||
disable_prepend_keys = true
|
||||
excluded_keys = ["tags", "timestamp"]
|
||||
tags = ["name"]
|
||||
[inputs.file.json_v2.object.fields]
|
||||
data = "int"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue