Skip to content

Commit

Permalink
Add metrics.proto to other protobuf code (prometheus#8996)
Browse files Browse the repository at this point in the history
We cannot just use prometheus/client_model directly because we want to
stay consistent with the use of gogo-protobuf. So this converts
metrics.proto to proto3 and edits it lightly so that it fits into
the framework how prometheus/prometheus handles protobuf.

Note that metrics.proto couldn't be merged into the prompb package
because prompb already has an Exemplar type, which is different from
the Exemplar type in metrics.proto. The directory structure seems to
play a role in the protobuf world, so I better kept it.

Signed-off-by: beorn7 <beorn@grafana.com>
  • Loading branch information
beorn7 authored Jun 28, 2021
1 parent 3707619 commit df3b674
Show file tree
Hide file tree
Showing 3 changed files with 3,930 additions and 2 deletions.
Loading

0 comments on commit df3b674

Please sign in to comment.