openstack-exporter docs - how to enable cache

Enable the cache mechanism

By default, cache mechanism is disabled in the charm. Users can enable the cache and adjust the cache_ttl configuration based on the size of the OpenStack cluster and the duration of the exporter’s collection jobs.

The cache can be enabled using the cache option:

juju config openstack-exporter cache=true

The Cache time-to-live option can be changed using the cache_ttl option:

juju config openstack-exporter cache_ttl=600s

The cache can be enabled/disabled any time. The openstack-exporter service will be restarted with new config options.

For more details on how the cache works in the exporter, please check: Explanation - Metrics caching

1 Like