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
34
plugins/parsers/json_v2/testdata/benchmark/benchmark.json
vendored
Normal file
34
plugins/parsers/json_v2/testdata/benchmark/benchmark.json
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"metrics": [
|
||||
{
|
||||
"name": "impression",
|
||||
"timestamp": 1653643420,
|
||||
"fields": {
|
||||
"count_sum": 5
|
||||
},
|
||||
"tags": {
|
||||
"key": "12345",
|
||||
"flagname": "F5",
|
||||
"host": "1cbbb3796fc2",
|
||||
"platform": "Java",
|
||||
"sdkver": "4.9.1",
|
||||
"value": "false"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "expression",
|
||||
"timestamp": 1653646789,
|
||||
"fields": {
|
||||
"count_sum": 42
|
||||
},
|
||||
"tags": {
|
||||
"key": "67890",
|
||||
"flagname": "E42",
|
||||
"host": "klaus",
|
||||
"platform": "Golang",
|
||||
"sdkver": "1.18.3",
|
||||
"value": "true"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
2
plugins/parsers/json_v2/testdata/benchmark/expected.out
vendored
Normal file
2
plugins/parsers/json_v2/testdata/benchmark/expected.out
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
benchmark count_sum=5,flagname="F5",host="1cbbb3796fc2",key="12345",name="impression",platform="Java",sdkver="4.9.1",timestamp=1653643420,value="false" 1697730835574029794
|
||||
benchmark count_sum=42,flagname="E42",host="klaus",key="67890",name="expression",platform="Golang",sdkver="1.18.3",timestamp=1653646789,value="true" 1697730835574029794
|
34
plugins/parsers/json_v2/testdata/benchmark/input.json
vendored
Normal file
34
plugins/parsers/json_v2/testdata/benchmark/input.json
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"metrics": [
|
||||
{
|
||||
"name": "impression",
|
||||
"timestamp": 1653643420,
|
||||
"fields": {
|
||||
"count_sum": 5
|
||||
},
|
||||
"tags": {
|
||||
"key": "12345",
|
||||
"flagname": "F5",
|
||||
"host": "1cbbb3796fc2",
|
||||
"platform": "Java",
|
||||
"sdkver": "4.9.1",
|
||||
"value": "false"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "expression",
|
||||
"timestamp": 1653646789,
|
||||
"fields": {
|
||||
"count_sum": 42
|
||||
},
|
||||
"tags": {
|
||||
"key": "67890",
|
||||
"flagname": "E42",
|
||||
"host": "klaus",
|
||||
"platform": "Golang",
|
||||
"sdkver": "1.18.3",
|
||||
"value": "true"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
9
plugins/parsers/json_v2/testdata/benchmark/telegraf.conf
vendored
Normal file
9
plugins/parsers/json_v2/testdata/benchmark/telegraf.conf
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
[[inputs.file]]
|
||||
files = ["./testdata/benchmark/input.json"]
|
||||
data_format = "json_v2"
|
||||
|
||||
[[inputs.file.json_v2]]
|
||||
measurement_name = "benchmark"
|
||||
[[inputs.file.json_v2.object]]
|
||||
path = 'metrics'
|
||||
disable_prepend_keys = true
|
Loading…
Add table
Add a link
Reference in a new issue