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
1
plugins/parsers/xpath/testcases/string_join/expected.out
Normal file
1
plugins/parsers/xpath/testcases/string_join/expected.out
Normal file
|
@ -0,0 +1 @@
|
|||
foo cpus="cpu1;cpu2;cpu3" 1690218699000000000
|
13
plugins/parsers/xpath/testcases/string_join/telegraf.conf
Normal file
13
plugins/parsers/xpath/testcases/string_join/telegraf.conf
Normal file
|
@ -0,0 +1,13 @@
|
|||
[[inputs.file]]
|
||||
files = ["./testcases/string_join/test.json"]
|
||||
data_format = "xpath_json"
|
||||
|
||||
xpath_native_types = true
|
||||
|
||||
[[inputs.file.xpath]]
|
||||
metric_name = "'foo'"
|
||||
timestamp = "//timestamp"
|
||||
timestamp_format = "unix"
|
||||
|
||||
[inputs.file.xpath.fields]
|
||||
cpus = "string-join(//cpus/*, ';')"
|
20
plugins/parsers/xpath/testcases/string_join/test.json
Normal file
20
plugins/parsers/xpath/testcases/string_join/test.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"name": "PC1",
|
||||
"cpus": [
|
||||
"cpu1",
|
||||
"cpu2",
|
||||
"cpu3"
|
||||
],
|
||||
"disks": {
|
||||
"sata": [
|
||||
"disk1",
|
||||
"disk2"
|
||||
],
|
||||
"nvme": [
|
||||
"disk3",
|
||||
"disk4",
|
||||
"disk5"
|
||||
]
|
||||
},
|
||||
"timestamp": 1690218699
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue