How to deploy a file based metrics cfg? (solved)

Hi,

I want to configure the new metric services with a file based configuration.

Currently all my service configurations are in the folder ‘service’ with a suffix *.cfg like influxdb.cfg or addons.cfg

How is it for the metrics service?

My first guess was metrics.cfg but this does not work. I also tried MetricsRestController.cfg or io/metrics/MetricsRestController.cfg but non of that options works.

has anyone an idea?

I found the anser by myself.

instead of a seperate file I putted the config values inside the runtime.cfg and prefixed all values with ‘org.openhab.io.metrics.MetricsRestController:’

like

org.openhab.io.metrics.MetricsRestController:influxMetricsEnabled=true
org.openhab.io.metrics.MetricsRestController:influxURL=http://influxdb:8086
org.openhab.io.metrics.MetricsRestController:influxDB=openhab_metrics
org.openhab.io.metrics.MetricsRestController:influxUsername=****
org.openhab.io.metrics.MetricsRestController:influxPassword=****
org.openhab.io.metrics.MetricsRestController:influxUpdateIntervalInSeconds=300

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.