network-analytics / mdt-dialout-collector

Model-Driven Telemetry - Collecting <multi-vendor> metrics via gRPC dialout
MIT License
28 stars 8 forks source link

Custom json serialization for cisco's gpbkv format #4

Closed ahassany closed 2 years ago

ahassany commented 2 years ago

The default protobuf serialization for Cisco gpbkv is very verbose. We move the keys from values to proper json keys and only serialize the values that are useful. The behavior of everything but Cisco's gppkv is kept as it.

A small addition to serialize json to string with indentation="" this saves space in transport.