prometheus doesn't restart when adding a new relation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Prometheus libvirt exporter charm |
New
|
Undecided
|
Unassigned |
Bug Description
When adding the prometheus-
$ service snap.prometheus
● snap.prometheus
Loaded: loaded (/etc/systemd/
Active: active (running) since Mon 2020-09-28 19:02:18 UTC; 8 months 29 days ago
$ ls -al /var/snap/
-r--r----- 1 root root 8025 Jun 28 15:59 /var/snap/
Charm info:
prometheus:
charm: cs:prometheus2-19
series: bionic
os: ubuntu
charm-origin: jujucharms
charm-name: prometheus2
charm-rev: 19
charm-version: ae30894
can-upgrade-to: cs:prometheus2-22
exposed: false
application
current: active
message: Ready
since: 28 Jun 2021 15:59:41Z
relations:
grafana-
- grafana
juju-info:
- canonical-livepatch
- filebeat
- landscape-client
- logrotate
- ntp
- telegraf-prometheus
nrpe-
- nrpe-host
target:
- prometheus-
- prometheus-
- prometheus-
- telegraf
- telegraf-maas-infra
- telegraf-prometheus
$ juju config keystone openstack-origin
cloud:bionic-ussuri
As a workaround, restarting the prometheus snap worked:
$ sudo service snap.prometheus
Note, here were the commands used to deploy and relate the charm:
juju deploy prometheus- libvirt- exporter libvirt- exporter nova-compute-kvm libvirt- exporter: scrape prometheus:target libvirt- exporter: dashboards grafana:dashboards libvirt- exporter: nrpe-external- master nrpe-host: nrpe-external- master
juju relate prometheus-
juju relate prometheus-
juju relate prometheus-
juju relate prometheus-