26 lines
940 B
Text
26 lines
940 B
Text
|
[[ inputs.file ]]
|
||
|
files = ["./testcases/benchmark/message.json"]
|
||
|
data_format = "avro"
|
||
|
|
||
|
avro_format = "json"
|
||
|
avro_measurement = "benchmark"
|
||
|
avro_tags = ["tags_platform", "tags_sdkver", "source"]
|
||
|
avro_fields = ["value"]
|
||
|
avro_timestamp = "timestamp"
|
||
|
avro_timestamp_format = "unix"
|
||
|
avro_schema = '''
|
||
|
{
|
||
|
"namespace": "com.benchmark",
|
||
|
"name": "benchmark",
|
||
|
"type": "record",
|
||
|
"version": "1",
|
||
|
"fields": [
|
||
|
{"name": "value", "type": "float", "doc": ""},
|
||
|
{"name": "timestamp", "type": "long", "doc": ""},
|
||
|
{"name": "tags_platform", "type": "string", "doc": ""},
|
||
|
{"name": "tags_sdkver", "type": "string", "default": "", "doc": ""},
|
||
|
{"name": "source", "type": "string", "default": "", "doc": ""}
|
||
|
]
|
||
|
}
|
||
|
'''
|