Platform:

Ubuntu
24.04 22.04
Channel Revision Published Runs on
latest/stable 75 Today
Ubuntu 24.04 Ubuntu 22.04
latest/stable 76 Today
Ubuntu 24.04 Ubuntu 22.04
latest/candidate 75 18 Sep 2026
Ubuntu 24.04 Ubuntu 22.04
latest/candidate 76 18 Sep 2026
Ubuntu 24.04 Ubuntu 22.04
latest/edge 76 17 Sep 2026
Ubuntu 24.04 Ubuntu 22.04
latest/edge 75 17 Sep 2026
Ubuntu 24.04 Ubuntu 22.04
juju deploy openstack-exporter

Learn about actions >

  • get-alert-rules

    Dump the alert rules currently in effect as a single Prometheus rules document (YAML), returned in the alert-rules result. Use this as a starting point for the alert_rules config option: dump the rules, edit them, then set the edited document as the alert_rules config.

    Because juju run wraps the result under the unit name, extract the raw document before saving. For example:

    juju run openstack-exporter/leader get-alert-rules --format=json
    | jq -r 'first(.[]).results."alert-rules"' > rules.yaml

    Edit rules.yaml, then apply it:

    juju config openstack-exporter alert_rules="$(cat rules.yaml)"