Setting environment variable in Hassio?

The built-in Prometheus integration adds _created metrics which I believe are unnecessary. I believe this can be disabled by setting the PROMETHEUS_DISABLE_CREATED_SERIES=True environment variable as described here:

Is it possible to set environment variables in Hassio? (Home Assistant OS)

The environment variable has to be set in your database config, not in the integration.

This is possible for the influxdb addon, not sure about the Prometheus addon. It does not look like it from the docs:

https://github.com/hassio-addons/addon-prometheus/blob/c112b76edaa2ad5137a9fbfb6ed29dcf1c9307f0/prometheus/DOCS.md

Compare with influxdb that does have the envvars,option:

https://github.com/hassio-addons/addon-influxdb/blob/6372a635135e5b7154d8b6d43aee39133860568b/influxdb/DOCS.md#option-envvars

1 Like