metrics.proto 836 B

123456789101112131415161718192021222324252627282930313233
  1. syntax = "proto3";
  2. package envoy.admin.v3;
  3. import "udpa/annotations/status.proto";
  4. import "udpa/annotations/versioning.proto";
  5. option java_package = "io.envoyproxy.envoy.admin.v3";
  6. option java_outer_classname = "MetricsProto";
  7. option java_multiple_files = true;
  8. option go_package = "github.com/envoyproxy/go-control-plane/envoy/admin/v3;adminv3";
  9. option (udpa.annotations.file_status).package_version_status = ACTIVE;
  10. // [#protodoc-title: Metrics]
  11. // Proto representation of an Envoy Counter or Gauge value.
  12. message SimpleMetric {
  13. option (udpa.annotations.versioning).previous_message_type = "envoy.admin.v2alpha.SimpleMetric";
  14. enum Type {
  15. COUNTER = 0;
  16. GAUGE = 1;
  17. }
  18. // Type of the metric represented.
  19. Type type = 1;
  20. // Current metric value.
  21. uint64 value = 2;
  22. // Name of the metric.
  23. string name = 3;
  24. }