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
8
plugins/serializers/csv/testcases/basic.conf
Normal file
8
plugins/serializers/csv/testcases/basic.conf
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Example for outputting CSV
|
||||
#
|
||||
# Output File:
|
||||
# testcases/basic.csv
|
||||
#
|
||||
# Input:
|
||||
# impression,flagname=F5,host=1cbbb3796fc2,key=12345,platform=Java,sdkver=4.9.1,value=false count_sum=5i 1653643420000000000
|
||||
# expression,flagname=E42,host=klaus,key=67890,platform=Golang,sdkver=1.18.3,value=true count_sum=42i 1653646789000000000
|
2
plugins/serializers/csv/testcases/basic.csv
Normal file
2
plugins/serializers/csv/testcases/basic.csv
Normal file
|
@ -0,0 +1,2 @@
|
|||
1653643420,impression,F5,1cbbb3796fc2,12345,Java,4.9.1,false,5
|
||||
1653646789,expression,E42,klaus,67890,Golang,1.18.3,true,42
|
|
10
plugins/serializers/csv/testcases/header.conf
Normal file
10
plugins/serializers/csv/testcases/header.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Example for outputting CSV in non-batch mode.
|
||||
#
|
||||
# Output File:
|
||||
# testcases/header.csv
|
||||
#
|
||||
# Input:
|
||||
# impression,flagname=F5,host=1cbbb3796fc2,key=12345,platform=Java,sdkver=4.9.1,value=false count_sum=5i 1653643420000000000
|
||||
# expression,flagname=E42,host=klaus,key=67890,platform=Golang,sdkver=1.18.3,value=true count_sum=42i 1653646789000000000
|
||||
|
||||
csv_header = true
|
3
plugins/serializers/csv/testcases/header.csv
Normal file
3
plugins/serializers/csv/testcases/header.csv
Normal file
|
@ -0,0 +1,3 @@
|
|||
timestamp,measurement,flagname,host,key,platform,sdkver,value,count_sum
|
||||
1653643420,impression,F5,1cbbb3796fc2,12345,Java,4.9.1,false,5
|
||||
1653646789,expression,E42,klaus,67890,Golang,1.18.3,true,42
|
|
10
plugins/serializers/csv/testcases/nanoseconds.conf
Normal file
10
plugins/serializers/csv/testcases/nanoseconds.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Example for outputting CSV
|
||||
#
|
||||
# Output File:
|
||||
# testcases/nanoseconds.csv
|
||||
#
|
||||
# Input:
|
||||
# impression,flagname=F5,host=1cbbb3796fc2,key=12345,platform=Java,sdkver=4.9.1,value=false count_sum=5i 1653643420123456
|
||||
# expression,flagname=E42,host=klaus,key=67890,platform=Golang,sdkver=1.18.3,value=true count_sum=42i 1653646789789012
|
||||
|
||||
csv_timestamp_format = "unix_ns"
|
2
plugins/serializers/csv/testcases/nanoseconds.csv
Normal file
2
plugins/serializers/csv/testcases/nanoseconds.csv
Normal file
|
@ -0,0 +1,2 @@
|
|||
1653643420123456,impression,F5,1cbbb3796fc2,12345,Java,4.9.1,false,5
|
||||
1653646789789012,expression,E42,klaus,67890,Golang,1.18.3,true,42
|
|
11
plugins/serializers/csv/testcases/ordered.conf
Normal file
11
plugins/serializers/csv/testcases/ordered.conf
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Example for outputting CSV with a specified column order
|
||||
#
|
||||
# Output File:
|
||||
# testcases/ordered.csv
|
||||
#
|
||||
# Input:
|
||||
# mymetric,machine=A1,host=1cbbb3796fc2 pressure=987.5,temperature=23.7,hours=15i 1653643420000000000
|
||||
# mymetric,machine=X9,host=83d2e491ca01 pressure=1022.6,temperature=39.9,hours=231i 1653646789000000000
|
||||
|
||||
csv_timestamp_format = "unix_ns"
|
||||
csv_columns = ["timestamp", "field.temperature", "field.pressure", "tag.machine"]
|
2
plugins/serializers/csv/testcases/ordered.csv
Normal file
2
plugins/serializers/csv/testcases/ordered.csv
Normal file
|
@ -0,0 +1,2 @@
|
|||
1653643420000000000,23.7,987.5,A1
|
||||
1653646789000000000,39.9,1022.6,X9
|
|
12
plugins/serializers/csv/testcases/ordered_not_exist.conf
Normal file
12
plugins/serializers/csv/testcases/ordered_not_exist.conf
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Example for outputting CSV with a specified column order
|
||||
#
|
||||
# Output File:
|
||||
# testcases/ordered_not_exist.csv
|
||||
#
|
||||
# Input:
|
||||
# mymetric,machine=A1,host=1cbbb3796fc2 pressure=987.5,temperature=23.7,hours=15i 1653643420000000000
|
||||
# mymetric,machine=X9,host=83d2e491ca01 status="healthy",pressure=1022.6,temperature=39.9,hours=231i 1653646789000000000
|
||||
|
||||
csv_timestamp_format = "unix_ns"
|
||||
csv_header = true
|
||||
csv_columns = ["timestamp", "field.temperature", "field.pressure", "field.status", "tag.location", "tag.machine"]
|
3
plugins/serializers/csv/testcases/ordered_not_exist.csv
Normal file
3
plugins/serializers/csv/testcases/ordered_not_exist.csv
Normal file
|
@ -0,0 +1,3 @@
|
|||
timestamp,temperature,pressure,status,location,machine
|
||||
1653643420000000000,23.7,987.5,,,A1
|
||||
1653646789000000000,39.9,1022.6,healthy,,X9
|
|
12
plugins/serializers/csv/testcases/ordered_with_header.conf
Normal file
12
plugins/serializers/csv/testcases/ordered_with_header.conf
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Example for outputting CSV with a specified column order
|
||||
#
|
||||
# Output File:
|
||||
# testcases/ordered_with_header.csv
|
||||
#
|
||||
# Input:
|
||||
# mymetric,machine=A1,host=1cbbb3796fc2 pressure=987.5,temperature=23.7,hours=15i 1653643420000000000
|
||||
# mymetric,machine=X9,host=83d2e491ca01 pressure=1022.6,temperature=39.9,hours=231i 1653646789000000000
|
||||
|
||||
csv_timestamp_format = "unix_ns"
|
||||
csv_header = true
|
||||
csv_columns = ["timestamp", "field.temperature", "field.pressure", "tag.machine"]
|
|
@ -0,0 +1,3 @@
|
|||
timestamp,temperature,pressure,machine
|
||||
1653643420000000000,23.7,987.5,A1
|
||||
1653646789000000000,39.9,1022.6,X9
|
|
|
@ -0,0 +1,13 @@
|
|||
# Example for outputting CSV with a specified column order
|
||||
#
|
||||
# Output File:
|
||||
# testcases/ordered_with_header_prefix.csv
|
||||
#
|
||||
# Input:
|
||||
# mymetric,machine=A1,host=1cbbb3796fc2 pressure=987.5,temperature=23.7,hours=15i 1653643420000000000
|
||||
# mymetric,machine=X9,host=83d2e491ca01 pressure=1022.6,temperature=39.9,hours=231i 1653646789000000000
|
||||
|
||||
csv_timestamp_format = "unix_ns"
|
||||
csv_header = true
|
||||
csv_column_prefix = true
|
||||
csv_columns = ["timestamp", "field.temperature", "field.pressure", "tag.machine"]
|
|
@ -0,0 +1,3 @@
|
|||
timestamp,field_temperature,field_pressure,tag_machine
|
||||
1653643420000000000,23.7,987.5,A1
|
||||
1653646789000000000,39.9,1022.6,X9
|
|
11
plugins/serializers/csv/testcases/prefix.conf
Normal file
11
plugins/serializers/csv/testcases/prefix.conf
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Example for outputting CSV in non-batch mode.
|
||||
#
|
||||
# Output File:
|
||||
# testcases/prefix.csv
|
||||
#
|
||||
# Input:
|
||||
# impression,flagname=F5,host=1cbbb3796fc2,key=12345,platform=Java,sdkver=4.9.1,value=false count_sum=5i 1653643420000000000
|
||||
# expression,flagname=E42,host=klaus,key=67890,platform=Golang,sdkver=1.18.3,value=true count_sum=42i 1653646789000000000
|
||||
|
||||
csv_header = true
|
||||
csv_column_prefix = true
|
3
plugins/serializers/csv/testcases/prefix.csv
Normal file
3
plugins/serializers/csv/testcases/prefix.csv
Normal file
|
@ -0,0 +1,3 @@
|
|||
timestamp,measurement,tag_flagname,tag_host,tag_key,tag_platform,tag_sdkver,tag_value,field_count_sum
|
||||
1653643420,impression,F5,1cbbb3796fc2,12345,Java,4.9.1,false,5
|
||||
1653646789,expression,E42,klaus,67890,Golang,1.18.3,true,42
|
|
11
plugins/serializers/csv/testcases/rfc3339.conf
Normal file
11
plugins/serializers/csv/testcases/rfc3339.conf
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Example for outputting CSV in non-batch mode.
|
||||
#
|
||||
# Output File:
|
||||
# testcases/rfc3339.csv
|
||||
#
|
||||
# Input:
|
||||
# impression,flagname=F5,host=1cbbb3796fc2,key=12345,platform=Java,sdkver=4.9.1,value=false count_sum=5i 1653643420000000000
|
||||
# expression,flagname=E42,host=klaus,key=67890,platform=Golang,sdkver=1.18.3,value=true count_sum=42i 1653646789000000000
|
||||
|
||||
csv_timestamp_format = "2006-01-02T15:04:05Z07:00"
|
||||
csv_header = true
|
3
plugins/serializers/csv/testcases/rfc3339.csv
Normal file
3
plugins/serializers/csv/testcases/rfc3339.csv
Normal file
|
@ -0,0 +1,3 @@
|
|||
timestamp,measurement,flagname,host,key,platform,sdkver,value,count_sum
|
||||
2022-05-27T09:23:40Z,impression,F5,1cbbb3796fc2,12345,Java,4.9.1,false,5
|
||||
2022-05-27T10:19:49Z,expression,E42,klaus,67890,Golang,1.18.3,true,42
|
|
11
plugins/serializers/csv/testcases/semicolon.conf
Normal file
11
plugins/serializers/csv/testcases/semicolon.conf
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Example for outputting CSV in non-batch mode.
|
||||
#
|
||||
# Output File:
|
||||
# testcases/semicolon.csv
|
||||
#
|
||||
# Input:
|
||||
# impression,flagname=F5,host=1cbbb3796fc2,key=12345,platform=Java,sdkver=4.9.1,value=false count_sum=5i 1653643420000000000
|
||||
# expression,flagname=E42,host=klaus,key=67890,platform=Golang,sdkver=1.18.3,value=true count_sum=42i 1653646789000000000
|
||||
|
||||
csv_separator = ";"
|
||||
csv_header = true
|
3
plugins/serializers/csv/testcases/semicolon.csv
Normal file
3
plugins/serializers/csv/testcases/semicolon.csv
Normal file
|
@ -0,0 +1,3 @@
|
|||
timestamp;measurement;flagname;host;key;platform;sdkver;value;count_sum
|
||||
1653643420;impression;F5;1cbbb3796fc2;12345;Java;4.9.1;false;5
|
||||
1653646789;expression;E42;klaus;67890;Golang;1.18.3;true;42
|
|
Loading…
Add table
Add a link
Reference in a new issue