Dynamic Modules Stats Sink (proto)
This extension has the qualified name envoy.stat_sinks.dynamic_modules
Note
This extension is functional but has not had substantial production burn time, use only with this caveat.
This extension is not hardened and should only be used in deployments where both the downstream and upstream are trusted.
Tip
This extension extends and can be used with the following extension category:
This extension must be configured with one of the following type URLs:
extensions.stat_sinks.dynamic_modules.v3.DynamicModuleStatsSink
[extensions.stat_sinks.dynamic_modules.v3.DynamicModuleStatsSink proto]
Configuration for the Dynamic Modules Stats Sink. This sink allows loading shared object
files via dlopen to implement custom stats sink behavior.
A module can be loaded by multiple stat sinks. It is loaded only once and shared across multiple sink instances.
The stats sink receives periodic metric snapshots of counters, gauges, and text readouts, and is also called synchronously when histogram observations are recorded.
{
"dynamic_module_config": {...},
"sink_name": ...,
"sink_config": {...}
}
- dynamic_module_config
(extensions.dynamic_modules.v3.DynamicModuleConfig, REQUIRED) Specifies the shared-object level configuration. This field is required.
- sink_name
(string) The name for this sink configuration. If not specified, defaults to an empty string.
This can be used to distinguish between different sink implementations inside a dynamic module. When Envoy receives this configuration, it passes the
sink_nameto the dynamic module’s sink config init function together with thesink_config.
- sink_config
(Any) The configuration for the sink chosen by
sink_name. If not specified, an empty configuration is passed to the module.google.protobuf.Structis serialized as JSON before passing it to the module.google.protobuf.BytesValueandgoogle.protobuf.StringValueare passed directly without the wrapper.# Passing a JSON struct configuration sink_config: "@type": "type.googleapis.com/google.protobuf.Struct" value: endpoint: "metrics.example.com:9125" prefix: "envoy" # Passing a simple string configuration sink_config: "@type": "type.googleapis.com/google.protobuf.StringValue" value: "metrics.example.com:9125"