@@ -71,7 +71,6 @@ message MetricDefinition {
71
71
}
72
72
73
73
message PluginConfig {
74
- // next id: 7
75
74
// The following settings should be rarely used.
76
75
// Enable debug for this filter.
77
76
// DEPRECATED.
@@ -85,14 +84,14 @@ message PluginConfig {
85
84
86
85
// prefix to add to stats emitted by the plugin.
87
86
// DEPRECATED.
88
- string stat_prefix = 3 ; // default: "istio_"
87
+ string stat_prefix = 3 ; // default: "istio_"
89
88
90
89
// Stats api squashes dimensions in a single string.
91
90
// The squashed string is parsed at prometheus scrape time to recover
92
91
// dimensions. The following 2 fields set the field and value separators {key:
93
92
// 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: "=="
96
95
97
96
// Optional: Disable using host header as a fallback if destination service is
98
97
// not available from the controlplane. Disable the fallback if the host
@@ -108,4 +107,28 @@ message PluginConfig {
108
107
109
108
// Metric definitions.
110
109
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
111
134
}
0 commit comments