Stats Config

MetricConfig

Metric instance configuration overrides. The metric value and the metric type are optional and permit changing the reported value for an existing metric. The standard metrics are optimized and reported through a “fast-path”. The customizations allow full configurability, at the cost of a “slower” path.

FieldTypeDescriptionRequired
dimensionsmap<string, string>

(Optional) Collection of tag names and tag expressions to include in the metric. Conflicts are resolved by the tag name by overriding previously supplied values.

No
namestring

(Optional) Metric name to restrict the override to a metric. If not specified, applies to all.

No
tags_to_removestring[]

(Optional) A list of tags to remove.

No
matchstring

NOT IMPLEMENTED. (Optional) Conditional enabling the override.

No

MetricDefinition

FieldTypeDescriptionRequired
namestring

Metric name.

No
valuestring

Metric value expression.

No
typeMetricType

NOT IMPLEMENTED (Optional) Metric type.

No

PluginConfig

FieldTypeDescriptionRequired
debugbool

next id: 7 The following settings should be rarely used. Enable debug for this filter. DEPRECATED.

No
max_peer_cache_sizeint32

maximum size of the peer metadata cache. A long lived proxy that connects with many transient peers can build up a large cache. To turn off the cache, set this field to a negative value. DEPRECATED.

No
stat_prefixstring

prefix to add to stats emitted by the plugin. DEPRECATED.

No
field_separatorstring

Stats api squashes dimensions in a single string. The squashed string is parsed at prometheus scrape time to recover dimensions. The following 2 fields set the field and value separators {key: value} –> key{valueseparator}value{fieldseparator}

No
value_separatorstring

default: “==”

No
disable_host_header_fallbackbool

Optional: Disable using host header as a fallback if destination service is not available from the controlplane. Disable the fallback if the host header originates outsides the mesh, like at ingress.

No
tcp_reporting_durationDuration

Optional. Allows configuration of the time between calls out to for TCP metrics reporting. The default duration is 15s.

No
metricsMetricConfig[]

Metric overrides.

No
definitionsMetricDefinition[]

Metric definitions.

No

MetricType

NameDescription
COUNTER
GAUGE
HISTOGRAM
这些信息有用吗?
Do you have any suggestions for improvement?

Thanks for your feedback!