extensions: Graphite stats sink (#16703)
Signed-off-by: Pavel Fomin <mail@vaccarium.ru> Mirrored from https://github.com/envoyproxy/envoy @ a6f397fdb0deea94c4fea9aecd921e774834d623pull/624/head
parent
fed79e5069
commit
ab9fdb0957
4 changed files with 58 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,44 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package envoy.extensions.stat_sinks.graphite_statsd.v3; |
||||
|
||||
import "envoy/config/core/v3/address.proto"; |
||||
|
||||
import "google/protobuf/wrappers.proto"; |
||||
|
||||
import "udpa/annotations/status.proto"; |
||||
import "validate/validate.proto"; |
||||
|
||||
option java_package = "io.envoyproxy.envoy.extensions.stat_sinks.graphite_statsd.v3"; |
||||
option java_outer_classname = "GraphiteStatsdProto"; |
||||
option java_multiple_files = true; |
||||
option (udpa.annotations.file_status).package_version_status = ACTIVE; |
||||
|
||||
// [#protodoc-title: Graphite+Statsd] |
||||
// Stats configuration proto schema for ``envoy.stat_sinks.graphite_statsd`` sink. |
||||
// The sink emits stats with `Graphite <https://graphite.readthedocs.io/en/latest/tags.html>`_ |
||||
// compatible tags. Tags are configurable via :ref:`StatsConfig |
||||
// <envoy_v3_api_msg_config.metrics.v3.StatsConfig>`. |
||||
// [#extension: envoy.stat_sinks.graphite_statsd] |
||||
|
||||
message GraphiteStatsdSink { |
||||
oneof statsd_specifier { |
||||
option (validate.required) = true; |
||||
|
||||
// The UDP address of a running Graphite-compliant listener. If specified, |
||||
// statistics will be flushed to this address. |
||||
config.core.v3.Address address = 1; |
||||
} |
||||
|
||||
// Optional custom metric name prefix. See :ref:`StatsdSink's prefix field |
||||
// <envoy_v3_api_field_config.metrics.v3.StatsdSink.prefix>` for more details. |
||||
string prefix = 3; |
||||
|
||||
// Optional max datagram size to use when sending UDP messages. By default Envoy |
||||
// will emit one metric per datagram. By specifying a max-size larger than a single |
||||
// metric, Envoy will emit multiple, new-line separated metrics. The max datagram |
||||
// size should not exceed your network's MTU. |
||||
// |
||||
// Note that this value may not be respected if smaller than a single metric. |
||||
google.protobuf.UInt64Value max_bytes_per_datagram = 4 [(validate.rules).uint64 = {gt: 0}]; |
||||
} |
Loading…
Reference in new issue