1
0
Fork 0

Adding upstream version 1.34.4.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-24 07:26:29 +02:00
parent e393c3af3f
commit 4978089aab
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
4963 changed files with 677545 additions and 0 deletions

View file

@ -0,0 +1,3 @@
devices ok=true,phases_0_load=34,phases_0_voltage=231,phases_1_load=35,phases_1_voltage=231,phases_2_load=36,phases_2_voltage=231,rpm=423,type="Motor"
devices flow=3.1414,hours=8762,ok=true,type="Pump"
devices ok=true,phases_0_load=341,phases_0_voltage=231,phases_1_load=352,phases_1_voltage=231,phases_2_load=363,phases_2_voltage=231,throughput=1026,type="Machine"

View file

@ -0,0 +1,10 @@
[[inputs.file]]
files = ["./testcases/name_expansion/test.json"]
data_format = "xpath_json"
xpath_native_types = true
[[inputs.file.xpath]]
metric_name = "'devices'"
metric_selection = "/devices/*"
field_selection = "descendant::*[not(*)]"
field_name_expansion = true

View file

@ -0,0 +1,48 @@
{
"devices": [
{
"type": "Motor",
"rpm": 423,
"phases": [
{
"load": 34,
"voltage": 231
},
{
"load": 35,
"voltage": 231
},
{
"load": 36,
"voltage": 231
}
],
"ok": true
},
{
"type": "Pump",
"hours": 8762,
"flow": 3.1414,
"ok": true
},
{
"type": "Machine",
"throughput": 1026,
"phases": [
{
"load": 341,
"voltage": 231
},
{
"load": 352,
"voltage": 231
},
{
"load": 363,
"voltage": 231
}
],
"ok": true
}
]
}