系统变量System Variable telemetry.metrics_enabled范围Scope 全球Global 动态Dynamic 否No SET_VAR提示适用SET_VARHint Applies否No 类型Type 布尔Boolean 默认值Default Value ONON控制是否收集遥测指标。Controls whether telemetry metrics are collected or not.
telemetry.otel_exporter_otlp_metrics_protocol系统变量System Variable telemetry.otel_exporter_otlp_metrics_protocol范围Scope 全球Global 动态Dynamic 否No SET_VAR提示适用SET_VARHint Applies否No 类型Type 枚举Enumeration 默认值Default Value http/protobuf有效值Valid Values http/protobufhttp/jsonOLTP 传输协议。The OLTP transport protocol.
NoteMySQL 不支持
gprc协议。MySQL does not support thegprcprotocol.telemetry.otel_exporter_otlp_metrics_endpoint系统变量System Variable telemetry.otel_exporter_otlp_metrics_endpoint范围Scope 全球Global 动态Dynamic 否No SET_VAR提示适用SET_VARHint Applies否No 类型Type 字符串String 默认值Default Value http://localhost:4318/v1/metrics端点指标信号发送至此。Endpoint metric signals are sent to.
telemetry.otel_exporter_otlp_metrics_certificates系统变量System Variable telemetry.otel_exporter_otlp_metrics_certificates范围Scope 全球Global 动态Dynamic 否No SET_VAR提示适用SET_VARHint Applies否No 类型Type 字符串String 默认值Default Value [none][none]验证服务器的 TLS 凭证时使用的受信任证书。The trusted certificate to use when verifying a server's TLS credentials.
telemetry.otel_exporter_otlp_metrics_client_key系统变量System Variable telemetry.otel_exporter_otlp_metrics_client_key范围Scope 全球Global 动态Dynamic 否No SET_VAR提示适用SET_VARHint Applies否No 类型Type 字符串String 默认值Default Value [none][none]客户端的 PEM 格式私钥。Client's private key in PEM format.
telemetry.otel_exporter_otlp_metrics_client_certificates系统变量System Variable telemetry.otel_exporter_otlp_metrics_client_certificates范围Scope 全球Global 动态Dynamic 否No SET_VAR提示适用SET_VARHint Applies否No 类型Type 字符串String 默认值Default Value [none][none]用于客户端私钥的客户端证书/证书链信任,格式为 PEM。Client certificate/chain trust for clients private key in PEM format.
telemetry.otel_exporter_otlp_metrics_min_tls系统变量System Variable telemetry.otel_exporter_otlp_metrics_min_tls范围Scope 全球Global 动态Dynamic 否No SET_VAR提示适用SET_VARHint Applies否No 类型Type 枚举Enumeration 默认值Default Value [none][none]有效值Valid Values [none][none]1.21.3用于指标的最小 TLS 版本。Minimum TLS version to use for metrics.
telemetry.otel_exporter_otlp_metrics_max_tls系统变量System Variable telemetry.otel_exporter_otlp_metrics_max_tls范围Scope 全球Global 动态Dynamic 否No SET_VAR提示适用SET_VARHint Applies否No 类型Type 枚举Enumeration 默认值Default Value [none][none]有效值Valid Values [none][none]1.21.3用于指标的最大 TLS 版本。Maximum TLS version to use for metrics.
telemetry.otel_exporter_otlp_metrics_cipher系统变量System Variable telemetry.otel_exporter_otlp_metrics_cipher范围Scope 全球Global 动态Dynamic 否No SET_VAR提示适用SET_VARHint Applies否No 类型Type 字符串String 默认值Default Value [none][none]用于指标的 TLS 密码套件(TLS 1.2)。TLS cipher to use for metrics (TLS 1.2).
telemetry.otel_exporter_otlp_metrics_cipher_suite系统变量System Variable telemetry.otel_exporter_otlp_metrics_cipher_suite范围Scope 全球Global 动态Dynamic 否No SET_VAR提示适用SET_VARHint Applies否No 类型Type 字符串String 默认值Default Value [none][none]用于指标的 TLS 密码套件(TLS 1.3)。TLS cipher to use for metrics (TLS 1.3).
telemetry.otel_exporter_otlp_metrics_headers系统变量System Variable telemetry.otel_exporter_otlp_metrics_headers范围Scope 全球Global 动态Dynamic 否No SET_VAR提示适用SET_VARHint Applies否No 类型Type 字符串String 默认值Default Value [none][none]用于作为与 HTTP 请求相关的头的键值对。Key-value pairs to be used as headers associated with HTTP requests.
telemetry.otel_exporter_otlp_metrics_compression系统变量System Variable telemetry.otel_exporter_otlp_metrics_compression范围Scope 全球Global 动态Dynamic 否No SET_VAR提示适用SET_VARHint Applies否No 类型Type 字符串String 默认值Default Value none (no compression)none (no compression)有效值Valid Values none (no compression)none (no compression)gzip导出器使用的压缩方式Compression used by exporter
telemetry.otel_exporter_otlp_metrics_timeout系统变量System Variable telemetry.otel_exporter_otlp_metrics_timeout范围Scope 全球Global 动态Dynamic 否No SET_VAR提示适用SET_VARHint Applies否No 类型Type 整数Integer 默认值Default Value 10000单位Unit 毫秒milliseconds OLTP 导出器等待每批导出的时间(毫秒)。Time in milliseconds the OLTP exporter waits for each batch export.
telemetry.metrics_reader_frequency_1系统变量System Variable telemetry.metrics_reader_frequency_1范围Scope 全球Global 动态Dynamic 否No SET_VAR提示适用SET_VARHint Applies否No 类型Type 整数Integer 默认值Default Value 10单位Unit 秒seconds 必填。定义对于频率小于或等于间隔 f1 的计量器,其评估间隔的秒数。例如:Mandatory. Defines the interval in seconds (f1) between meter evaluations for meters with a frequency less than or equal to the interval, f1. For example:
SELECT * from performance_schema.setup_meters WHERE FREQUENCY <= telemetry.metrics_reader_frequency_1telemetry.metrics_reader_frequency_2系统变量System Variable telemetry.metrics_reader_frequency_2范围Scope 全球Global 动态Dynamic 否No SET_VAR提示适用SET_VARHint Applies否No 类型Type 整数Integer 默认值Default Value 10单位Unit 秒seconds 可选。定义对于频率大于间隔 f1 的计量器,其评估间隔的秒数 (f2)。例如,如果定义了 f1 和 f2:Optional. Defines the interval in seconds (f2) between meter evaluations for meters with a frequency greater than the interval, f1. For example, if f1 and f2 are defined:
SELECT * from performance_schema.setup_meters WHERE FREQUENCY <= telemetry.metrics_reader_frequency_1并且,每隔 f2 秒:and, every f2 seconds:
SELECT * from performance_schema.setup_meters WHERE FREQUENCY > telemetry.metrics_reader_frequency_1 AND FREQUENCY <= metrics_reader_frequency_2;telemetry.metrics_reader_frequency_3系统变量System Variable telemetry.metrics_reader_frequency_3范围Scope 全球Global 动态Dynamic 否No SET_VAR提示适用SET_VARHint Applies否No 类型Type 整数Integer 默认值Default Value 10单位Unit 秒seconds 可选。定义频率大于区间 f2 的米,计量间隔(秒数)为单位。例如,如果定义了 f1、f2 和 f3Optional. Defines the interval in seconds (f3) between meter evaluations for meters with a frequency greater than the interval, f2. For example, if f1, f2, and f3 are defined:
SELECT * from performance_schema.setup_meters WHERE FREQUENCY <= telemetry.metrics_reader_frequency_1并且,每隔 f2 秒:and, every f2 seconds:
SELECT * from performance_schema.setup_meters WHERE FREQUENCY > telemetry.metrics_reader_frequency_1 AND FREQUENCY <= metrics_reader_frequency_2;and,每 f3 秒:and, every f3 seconds:
SELECT * from performance_schema.setup_meters WHERE FREQUENCY > telemetry.metrics_reader_frequency_2;