Skip to main content

Crate mz_prometheus_protobuf

Crate mz_prometheus_protobuf 

Source
Expand description

Decode helper for the Prometheus protobuf scrape format.

We encapsulate this in its own crate since we’ve banned direct use of the protobuf crate due to it being unmaintained. However, we use it out of convenience since prometheus::proto::MetricFamily is already generated by protobuf.

Modules§

proto
Protocol buffers format of metrics. Generated file from proto_model.proto

Functions§

decode_length_delimited
Decodes the wire format produced by prometheus::ProtobufEncoder (and what callers receive from a Prometheus /metrics endpoint with Accept: application/vnd.google.protobuf).