MaxScale Telemetry
Reference list of the metrics MariaDB MaxScale exports over OpenTelemetry.
Overview
MaxScale exports metrics and logs via OpenTelemetry. To enable it, add telemetry=true under the [maxscale] section. To configure where metrics are sent, use telemetry_url. For more information, refer to the telemetry settings in the MaxScale configuration guide.
Metrics
Server Metrics
maxscale.server.operationsType: Gauge
Description: Number of active query operations
Added in: MaxScale 25.10
maxscale.server.connectionsType: Gauge
Description: Number of open connections
Added in: MaxScale 25.10
maxscale.server.response_durType: Histogram
Description: Response duration in seconds
Added in: MaxScale 25.10
maxscale.server.read_packetsType: Gauge (running total)
Description: Number of routed reads
Added in: MaxScale 25.10
maxscale.server.write_packetsType: Gauge (running total)
Description: Number of routed writes
Added in: MaxScale 25.10
maxscale.server.statusType: Gauge
Description: Server status:
0= Read,1= Write,2= Up,3= DownAdded in: MaxScale 25.10
maxscale.server.errorsType: Gauge (running total)
Description: Number of error responses
Added in: MaxScale 26.10
maxscale.server.transactionsType: Gauge (running total)
Description: Number of completed transactions
Added in: MaxScale 26.10
maxscale.server.pool_sizeType: Gauge
Description: Connection pool size
Added in: MaxScale 26.10
maxscale.server.pool_foundType: Gauge (running total)
Description: Times connection was found in the pool
Added in: MaxScale 26.10
maxscale.server.pool_emptyType: Gauge (running total)
Description: Times connection pool was empty
Added in: MaxScale 26.10
maxscale.server.replication_lagType: Gauge
Description: Replication lag in seconds
Added in: MaxScale 26.10
maxscale.server.transaction_lagType: Gauge
Description: Number of transactions the server is behind
Added in: MaxScale 26.10
Service Metrics
maxscale.service.operationsType: Gauge
Description: Number of active query operations
Added in: MaxScale 26.10
maxscale.service.connectionsType: Gauge
Description: Number of open connections
Added in: MaxScale 26.10
maxscale.service.read_packetsType: Gauge (running total)
Description: Number of routed reads
Added in: MaxScale 26.10
maxscale.service.write_packetsType: Gauge (running total)
Description: Number of routed writes
Added in: MaxScale 26.10
maxscale.service.errorsType: Gauge (running total)
Description: Number of error responses
Added in: MaxScale 26.10
maxscale.service.transactionsType: Gauge (running total)
Description: Number of completed transactions
Added in: MaxScale 26.10
Query Classifier Cache Metrics
maxscale.query_cache.sizeType: Gauge
Description: Query cache size in bytes
Added in: MaxScale 25.10
maxscale.query_cache.hitsType: Gauge (running total)
Description: Query cache hits
Added in: MaxScale 25.10
maxscale.query_cache.missesType: Gauge (running total)
Description: Query cache misses
Added in: MaxScale 25.10
Query Metrics
maxscale.query.latencyType: Gauge
Description: Query latency per SQL statement, broken down by the 50th, 75th, 95th and 99th percentile. Each data point has a
percentileattribute (p50,p75,p95orp99) and ansqlattribute holding the canonical form of the statement. Only the most frequently executed statements are exported, up totelemetry_sql_count(default 50); usetelemetry_sql_matchandtelemetry_sql_excludeto filter them.Added in: MaxScale 26.10
General Metrics
maxscale.qpsType: Gauge
Description: Queries per second
Added in: MaxScale 25.10
maxscale.uptimeType: Gauge
Description: MaxScale uptime in seconds
Added in: MaxScale 25.10
maxscale.versionType: Gauge
Description: MaxScale version
Added in: MaxScale 25.10
maxscale.process.timeType: Gauge
Description: MaxScale CPU usage
Added in: MaxScale 25.10
Last updated
Was this helpful?

