dashboards from relations require that charm-prometheus2 be deployed as "prometheus"
Bug #1891943 reported by
Drew Freiberger
on 2020-08-17
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Grafana Charm |
High
|
Unassigned |
Bug Description
To reproduce,
juju deploy ubuntu
juju deploy telegraf
juju deploy prometheus2
juju deploy grafana
juju add-relation ubuntu telegraf
juju add-relation prometheus2:
juju add-relation telegraf prometheus2:target
juju add-relation telegraf:dashboards grafana
Go to grafana unit ip:3000 and click on the juju-telegraf Telegraf Host Metrics dashboard and notice that the warning says:
"Template variables could not be initialized: Datasource named prometheus - Juju generated source was not found"
To resolve, re-deploy prometheus2 with name "prometheus".
juju deploy cs:prometheus2 prometheus
David O Neill (dmzoneill)
on 2020-10-05
Changed in charm-grafana: | |
importance: | Undecided → High |
assignee: | nobody → David O Neill (dmzoneill) |
David O Neill (dmzoneill) wrote : | #1 |
Download full text (5.2 KiB)
Changed in charm-grafana: | |
assignee: | David O Neill (dmzoneill) → nobody |
Jose Guedez (jfguedez)
on 2021-02-15
Changed in charm-grafana: | |
status: | New → Triaged |
To post a comment you must log in.
Work on this is currently blocked by promehtus2 build error
unit-prometheus2-5: 09:53:21 DEBUG juju.worker. uniter. runner starting jujuc server {unix @/var/lib/ juju/agents/ unit-prometheus 2-5/agent. socket <nil>} 2/5.juju- log Reactive main running for hook install 2/5.juju- log Hook error: juju/agents/ unit-prometheus 2-5/.venv/ lib/python3. 6/site- packages/ charms/ reactive/ __init_ _.py", line 71, in main juju/agents/ unit-prometheus 2-5/.venv/ lib/python3. 6/site- packages/ charms/ reactive/ bus.py" , line 426, in discover handlers_ from_file( search_ path, filepath) juju/agents/ unit-prometheus 2-5/.venv/ lib/python3. 6/site- packages/ charms/ reactive/ bus.py" , line 466, in _register_ handlers_ from_file module( root, filepath) juju/agents/ unit-prometheus 2-5/.venv/ lib/python3. 6/site- packages/ charms/ reactive/ bus.py" , line 444, in _load_module import_ module( package + module) juju/agents/ unit-prometheus 2-5/.venv/ lib/python3. 6/importlib/ __init_ _.py", line 126, in import_module _gcd_import( name[level: ], package, level) _bootstrap> ", line 994, in _gcd_import _bootstrap> ", line 971, in _find_and_load _bootstrap> ", line 955, in _find_and_ load_unlocked _bootstrap> ", line 665, in _load_unlocked _bootstrap_ external> ", line 678, in exec_module _bootstrap> ", line 219, in _call_with_ frames_ removed juju/agents/ unit-prometheus 2-5/charm/ hooks/relations /prometheus/ operator. py", line 53, in <module> rror: No module named 'ops'
unit-prometheus2-5: 09:53:22 DEBUG jujuc running hook tool "juju-log"
unit-prometheus2-5: 09:53:22 INFO unit.prometheus
unit-prometheus2-5: 09:53:22 DEBUG jujuc running hook tool "juju-log"
unit-prometheus2-5: 09:53:22 ERROR unit.prometheus
Traceback (most recent call last):
File "/var/lib/
bus.discover()
File "/var/lib/
_register_
File "/var/lib/
_load_
File "/var/lib/
return importlib.
File "/var/lib/
return _bootstrap.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "/var/lib/
from ops.framework import EventBase, ObjectEvents, EventSource, Object, StoredState
ModuleNotFoundE
unit-prometheus2-5: 09:53:22 DEBUG unit.prometheus 2/5.install Traceback (most recent call last): 2/5.install File "/var/lib/ juju/agents/ unit-prometheus 2-5/charm/ hooks/install" , line 22, in <module> 2/5.install main() 2/5.install File "/var/lib/ juju/agents/ unit-prometheus 2-5/.venv/ lib/python3. 6/site- packages/ charms/ reactive/ __init_ _.py", line 71, in main 2/5.install bus.discover() 2/5.install File "/var/lib/ juju/agents/ unit-prometheus 2-5/.venv/ lib/python3. 6/site- packages/ charms/ reactive/ bus.py" , line 426, in discover 2/5.install _register_ handlers_ from_file( search_ path, filepath) 2/5.install File "/var/lib/ juju/agents/ unit-prometheus 2-5/.venv/ lib/python3. 6/site- packages/ charms/ reactive/ bus.py" , l...
unit-prometheus2-5: 09:53:22 DEBUG unit.prometheus
unit-prometheus2-5: 09:53:22 DEBUG unit.prometheus
unit-prometheus2-5: 09:53:22 DEBUG unit.prometheus
unit-prometheus2-5: 09:53:22 DEBUG unit.prometheus
unit-prometheus2-5: 09:53:22 DEBUG unit.prometheus
unit-prometheus2-5: 09:53:22 DEBUG unit.prometheus
unit-prometheus2-5: 09:53:22 DEBUG unit.prometheus