Blip Docs
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

var.global

The var.global domain includes global MySQL system variables (“sysvars”). These aren’t metrics, but values are often needed for calculating or graphing limits.

Usage

The domain can collect numeric values from MySQL globals sysvars. For example, it’s common to report a percentage of maximum connection used: Max_used_connections / Max_connections * 100.

Since sysvars change infrequently, it is recommend to collect them infrequently: 1 hour or more. However, some graphing solutions have problems handling sparse data points. (For example, a 15 minute graph window might not look back 45 minutes for the last sysvar collected.) In this case, increase the collection frequency to 15, 10, or 5 minutes.

These pseudo metrics are reported as gauges.

Derived Metrics

None.

Options

all

ValueDefaultDescription
yesCollect all 600+ metrics (NOT RECOMMENDED)
noCollect only sysvars listed in the plan

source

ValueDefaultDescription
autoAuto-determine best source
pfsperformance_schema.global_variables
select@@GLOBAL.metric_name
showSHOW GLOBAL VARIABLES

Group Keys

None.

Meta

None.

Error Policies

None.

MySQL Config

None.

Changelog

Blip VersionChange
v1.0.0Domain added