prometheusio_exporter-8.x-1.x-dev/modules/prometheusio_exporter_cache/prometheusio_exporter_cache.install
modules/prometheusio_exporter_cache/prometheusio_exporter_cache.install
<?php
/**
* @file
* This is the Prometheus Exporter module for exporting metrics.
*/
use Drupal\prometheusio_exporter_cache\Cache\CacheBackendWrapper;
use Drupal\prometheusio_exporter_cache\Cache\CacheMetricsCacheTagsInvalidator;
/**
* Implements hook_uninstall().
*
* Clean state in prometheus storage.
*/
function prometheusio_exporter_cache_uninstall($is_syncing) {
if ($is_syncing) {
return;
}
$promBridge = \Drupal::service('prometheusio_exporter.prometheus_bridge');
$promBridge->removeMetricsOfSource(CacheBackendWrapper::class);
$promBridge->removeMetricsOfSource(CacheMetricsCacheTagsInvalidator::class);
}
