26 lines
1.2 KiB
Text
26 lines
1.2 KiB
Text
[[ inputs.file ]]
|
|
files = ["./testcases/union/message.json"]
|
|
data_format = "avro"
|
|
|
|
avro_format = "json"
|
|
avro_measurement = "Switch"
|
|
avro_tags = ["switch_wwn"]
|
|
avro_fields = ["up_time", "cpu_utilization", "memory_utilization", "statistics_collection_time"]
|
|
avro_timestamp = "statistics_collection_time"
|
|
avro_timestamp_format = "unix_ms"
|
|
avro_field_separator = "_"
|
|
avro_schema = '''
|
|
{
|
|
"namespace": "com.brocade.streaming",
|
|
"name": "fibrechannel_switch_statistics",
|
|
"type": "record",
|
|
"version": "1",
|
|
"fields": [
|
|
{"name": "switch_wwn", "type": "string", "doc": "WWN of the Physical Switch."},
|
|
{"name": "statistics_collection_time", "type": "long", "doc": "Epoch time when statistics is collected."},
|
|
{"name": "up_time", "type": "long", "doc": "Switch Up Time (in hundredths of a second)"},
|
|
{"name": "cpu_utilization", "type": ["null", "float"], "default": null, "doc": "CPU Utilization in %"},
|
|
{"name": "memory_utilization", "type": ["null", "float"], "default": null, "doc": "Memory Utilization in %"}
|
|
]
|
|
}
|
|
'''
|