extensions: Graphite stats sink (#16703)

Signed-off-by: Pavel Fomin <mail@vaccarium.ru>

Mirrored from https://github.com/envoyproxy/envoy @ a6f397fdb0deea94c4fea9aecd921e774834d623
pull/624/head
data-plane-api(Azure Pipelines) 4 years ago
parent fed79e5069
commit ab9fdb0957
  1. 1
      BUILD
  2. 12
      envoy/extensions/stat_sinks/graphite_statsd/v3/BUILD
  3. 44
      envoy/extensions/stat_sinks/graphite_statsd/v3/graphite_statsd.proto
  4. 1
      versioning/BUILD

@ -267,6 +267,7 @@ proto_library(
"//envoy/extensions/retry/host/omit_host_metadata/v3:pkg",
"//envoy/extensions/retry/host/previous_hosts/v3:pkg",
"//envoy/extensions/retry/priority/previous_priorities/v3:pkg",
"//envoy/extensions/stat_sinks/graphite_statsd/v3:pkg",
"//envoy/extensions/stat_sinks/wasm/v3:pkg",
"//envoy/extensions/transport_sockets/alts/v3:pkg",
"//envoy/extensions/transport_sockets/proxy_protocol/v3:pkg",

@ -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}];
}

@ -151,6 +151,7 @@ proto_library(
"//envoy/extensions/retry/host/omit_host_metadata/v3:pkg",
"//envoy/extensions/retry/host/previous_hosts/v3:pkg",
"//envoy/extensions/retry/priority/previous_priorities/v3:pkg",
"//envoy/extensions/stat_sinks/graphite_statsd/v3:pkg",
"//envoy/extensions/stat_sinks/wasm/v3:pkg",
"//envoy/extensions/transport_sockets/alts/v3:pkg",
"//envoy/extensions/transport_sockets/proxy_protocol/v3:pkg",

Loading…
Cancel
Save