Skip to content

Commit 2e548bf

Browse files
authored
Merge pull request #5 from solo-io/api-pr
telemetry: update istio-api config
2 parents 21802ff + 53e11c2 commit 2e548bf

File tree

2 files changed

+128
-32
lines changed

2 files changed

+128
-32
lines changed

envoy/extensions/stats/config.pb.go

Lines changed: 101 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

envoy/extensions/stats/config.proto

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ message MetricDefinition {
7171
}
7272

7373
message PluginConfig {
74-
// next id: 7
7574
// The following settings should be rarely used.
7675
// Enable debug for this filter.
7776
// DEPRECATED.
@@ -85,14 +84,14 @@ message PluginConfig {
8584

8685
// prefix to add to stats emitted by the plugin.
8786
// DEPRECATED.
88-
string stat_prefix = 3; // default: "istio_"
87+
string stat_prefix = 3; // default: "istio_"
8988

9089
// Stats api squashes dimensions in a single string.
9190
// The squashed string is parsed at prometheus scrape time to recover
9291
// dimensions. The following 2 fields set the field and value separators {key:
9392
// value} --> key{value_separator}value{field_separator}
94-
string field_separator = 4; // default: ";;"
95-
string value_separator = 5; // default: "=="
93+
string field_separator = 4; // default: ";;"
94+
string value_separator = 5; // default: "=="
9695

9796
// Optional: Disable using host header as a fallback if destination service is
9897
// not available from the controlplane. Disable the fallback if the host
@@ -108,4 +107,28 @@ message PluginConfig {
108107

109108
// Metric definitions.
110109
repeated MetricDefinition definitions = 9;
110+
111+
enum MetadataMode {
112+
// Sidecar mode instructs the stats filter to pull local node information
113+
// from the Envoy node metadata alone. This will be combined with peer
114+
// metadata from Envoy filter state to build Istio service metrics.
115+
SIDECAR_METADATA_MODE = 0;
116+
117+
// Ambient PEP mode instructs the stats filter to pull local node
118+
// information host metadata provided by the control plane. This will be
119+
// combined with peer metadata from Envoy filter state to build Istio
120+
// service metrics.
121+
AMBIENT_PEP_METADATA_MODE = 1;
122+
123+
// Potential other modes:
124+
// - AMBIENT_UPROXY_METADATA_MODE
125+
126+
// next id: 2
127+
}
128+
129+
// This will control how the stats filter discovers metadata for the workloads
130+
// involved in a request / connection.
131+
MetadataMode metadata_mode = 10;
132+
133+
// next id: 11
111134
}

0 commit comments

Comments
 (0)