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
3
plugins/parsers/json_v2/testdata/object_timestamp/expected.out
vendored
Normal file
3
plugins/parsers/json_v2/testdata/object_timestamp/expected.out
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
metric,id=100 value=100.123 1609459199000000000
|
||||
metric,id=101 value=200.001 1276605000000000000
|
||||
metric,id=102 value=999.999 946684800000000000
|
19
plugins/parsers/json_v2/testdata/object_timestamp/input.json
vendored
Normal file
19
plugins/parsers/json_v2/testdata/object_timestamp/input.json
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"events": [
|
||||
{
|
||||
"id": 100,
|
||||
"value": 100.123,
|
||||
"time": "2020-12-31T23:59:59Z"
|
||||
},
|
||||
{
|
||||
"id": 101,
|
||||
"value": 200.001,
|
||||
"time": "2010-06-15T12:30:00Z"
|
||||
},
|
||||
{
|
||||
"id": 102,
|
||||
"value": 999.999,
|
||||
"time": "2000-01-01T00:00:00Z"
|
||||
}
|
||||
]
|
||||
}
|
12
plugins/parsers/json_v2/testdata/object_timestamp/telegraf.conf
vendored
Normal file
12
plugins/parsers/json_v2/testdata/object_timestamp/telegraf.conf
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
[[inputs.file]]
|
||||
files = ["./testdata/object_timestamp/input.json"]
|
||||
data_format = "json_v2"
|
||||
|
||||
[[inputs.file.json_v2]]
|
||||
measurement_name = "metric"
|
||||
|
||||
[[inputs.file.json_v2.object]]
|
||||
path = "events"
|
||||
tags = ["id"]
|
||||
timestamp_key = "time"
|
||||
timestamp_format = "2006-01-02T15:04:05Z"
|
Loading…
Add table
Add a link
Reference in a new issue