2022-11-22 03:56:02 +08:00
|
|
|
[[inputs.file]]
|
|
|
|
|
files = ["./testcases/protobuf_powerdns_hex/powerdns_message.bin"]
|
|
|
|
|
data_format = "xpath_protobuf"
|
|
|
|
|
|
|
|
|
|
xpath_native_types = true
|
2024-07-03 02:58:27 +08:00
|
|
|
xpath_protobuf_files = ["powerdns_message.proto"]
|
2022-11-22 03:56:02 +08:00
|
|
|
xpath_protobuf_type = "PBDNSMessage"
|
|
|
|
|
xpath_protobuf_import_paths = [".", "./testcases/protobuf_powerdns_hex"]
|
|
|
|
|
xpath_protobuf_skip_bytes = 2
|
|
|
|
|
|
|
|
|
|
[[inputs.file.xpath]]
|
|
|
|
|
metric_name = "'powerdns'"
|
|
|
|
|
fields_bytes_as_hex = ["from", "to", "messageId"]
|
|
|
|
|
field_selection = "descendant::*"
|