private function getOrRegisterGaugeForVariable($variable)
{
try {
$gauge = $this->collectorRegistry->getGauge($this->namespace, $variable);
} catch (MetricNotFoundException $e) {
$gauge = $this->collectorRegistry->registerGauge($this->namespace, $variable, '', array_keys($this->tags));
}
return $gauge;
}