stat_sinks: add OpenTelemetry stats sink (#26620)
Signed-off-by: ohadvano <ohadvano@gmail.com> Mirrored from https://github.com/envoyproxy/envoy @ a6d46b6ac4750720eec9a49abe701f0df9bf8e0apull/626/head
parent
daea3904e5
commit
b746e276b4
6 changed files with 84 additions and 0 deletions
@ -0,0 +1,12 @@ |
||||
# DO NOT EDIT. This file is generated by tools/proto_format/proto_sync.py. |
||||
|
||||
load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package") |
||||
|
||||
licenses(["notice"]) # Apache 2 |
||||
|
||||
api_proto_package( |
||||
deps = [ |
||||
"//envoy/config/core/v3:pkg", |
||||
"@com_github_cncf_udpa//udpa/annotations:pkg", |
||||
], |
||||
) |
@ -0,0 +1,47 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package envoy.extensions.stat_sinks.open_telemetry.v3; |
||||
|
||||
import "envoy/config/core/v3/grpc_service.proto"; |
||||
|
||||
import "google/protobuf/wrappers.proto"; |
||||
|
||||
import "udpa/annotations/status.proto"; |
||||
import "validate/validate.proto"; |
||||
|
||||
option java_package = "io.envoyproxy.envoy.extensions.stat_sinks.open_telemetry.v3"; |
||||
option java_outer_classname = "OpenTelemetryProto"; |
||||
option java_multiple_files = true; |
||||
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/stat_sinks/open_telemetry/v3;open_telemetryv3"; |
||||
option (udpa.annotations.file_status).package_version_status = ACTIVE; |
||||
|
||||
// [#protodoc-title: Open Telemetry Stats Sink] |
||||
// Stats configuration proto schema for ``envoy.stat_sinks.open_telemetry`` sink. |
||||
// [#extension: envoy.stat_sinks.open_telemetry] |
||||
|
||||
// [#next-free-field: 6] |
||||
message SinkConfig { |
||||
oneof protocol_specifier { |
||||
option (validate.required) = true; |
||||
|
||||
// The upstream gRPC cluster that implements the OTLP/gRPC collector. |
||||
config.core.v3.GrpcService grpc_service = 1 [(validate.rules).message = {required: true}]; |
||||
} |
||||
|
||||
// If set to true, counters will be emitted as deltas, and the OTLP message will have |
||||
// ``AGGREGATION_TEMPORALITY_DELTA`` set as AggregationTemporality. |
||||
bool report_counters_as_deltas = 2; |
||||
|
||||
// If set to true, histograms will be emitted as deltas, and the OTLP message will have |
||||
// ``AGGREGATION_TEMPORALITY_DELTA`` set as AggregationTemporality. |
||||
bool report_histograms_as_deltas = 3; |
||||
|
||||
// If set to true, metrics will have their tags emitted as OTLP attributes, which may |
||||
// contain values used by the tag extractor or additional tags added during stats creation. |
||||
// Otherwise, no attributes will be associated with the export message. Default value is true. |
||||
google.protobuf.BoolValue emit_tags_as_attributes = 4; |
||||
|
||||
// If set to true, metric names will be represented as the tag extracted name instead |
||||
// of the full metric name. Default value is true. |
||||
google.protobuf.BoolValue use_tag_extracted_name = 5; |
||||
} |
Loading…
Reference in new issue