canonical / prometheus-juju-exporter

GNU General Public License v3.0
2 stars 8 forks source link

Add `debug` as a config option instead of reading from cli #30

Closed agileshaw closed 1 year ago

agileshaw commented 1 year ago

Since the snap is running as a deamon process, it is not possible to run exporter with --debug flag in its CLI command without re-packing the snap.

To allow users easily turn debug mode on and off, we should add a debug config option and let the user the charm configure its value there.

Relates to: https://github.com/canonical/charm-prometheus-juju-exporter/issues/12