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
4
plugins/parsers/json_v2/testdata/timestamp/expected.out
vendored
Normal file
4
plugins/parsers/json_v2/testdata/timestamp/expected.out
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
file,name=temperature,units=℃ value=23.4 1555745371450794118
|
||||
file,name=moisture,units=% value=5 1555745371450794118
|
||||
file,name=light,units=lux value=10118 1555745371450794118
|
||||
file,name=fertility,units=us/cm value=0 1555745371450794118
|
25
plugins/parsers/json_v2/testdata/timestamp/input.json
vendored
Normal file
25
plugins/parsers/json_v2/testdata/timestamp/input.json
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"time": 1555745371410,
|
||||
"measurements": [
|
||||
{
|
||||
"name": "temperature",
|
||||
"value": 23.4,
|
||||
"units": "℃"
|
||||
},
|
||||
{
|
||||
"name": "moisture",
|
||||
"value": 5,
|
||||
"units": "%"
|
||||
},
|
||||
{
|
||||
"name": "light",
|
||||
"value": 10118,
|
||||
"units": "lux"
|
||||
},
|
||||
{
|
||||
"name": "fertility",
|
||||
"value": 0,
|
||||
"units": "us/cm"
|
||||
}
|
||||
]
|
||||
}
|
11
plugins/parsers/json_v2/testdata/timestamp/telegraf.conf
vendored
Normal file
11
plugins/parsers/json_v2/testdata/timestamp/telegraf.conf
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Example taken from: https://github.com/influxdata/telegraf/issues/5940
|
||||
|
||||
[[inputs.file]]
|
||||
files = ["./testdata/timestamp/input.json"]
|
||||
data_format = "json_v2"
|
||||
[[inputs.file.json_v2]]
|
||||
timestamp_path = "time"
|
||||
timestamp_format = "unix_ms"
|
||||
[[inputs.file.json_v2.object]]
|
||||
path = "measurements"
|
||||
tags = ["name", "units"]
|
Loading…
Add table
Add a link
Reference in a new issue