prometheus-juju-exporter snap collects machines' running status in all models under a Juju controller. It also provides an interface to expose the metrics to Prometheus for storage and further usage.
To get the latest stable version of the snap from Snapstore, run:
sudo snap install prometheus-juju-exporter
To get the latest development version of the snap, build from the source code and install with --dangerous
flag:
make build
sudo snap install --dangerous prometheus-juju-exporter.snap
By default, prometheus-juju-exporter uses the configuration specified in config_default.yaml. It's likely not fitting your need because the values provided are generic and for demonstration purposes only. To configure the snap for your own environment, create a config.yaml
file in $SNAP_DATA
(see Snap Environment Variables) directory with the desired entries.
The snap requires juju user's credentials to connect to a controller and all of its models. The credentials are set as juju.username
and juju.password
config values. Normally, superuser
privilege is expected for such a user for full access to the controller. However, in case it is not possible, the minimum privilege requirements are:
login
access to the controller instance andadmin
access to the model hosting the controlleradmin
access to any model that's expected to be monitored by this exporter