Integrate MON and Grafana 56/13556/27
authorPatricia Reinoso <patricia.reinoso@canonical.com>
Tue, 20 Jun 2023 15:23:47 +0000 (15:23 +0000)
committerbeierlm <mark.beierl@canonical.com>
Fri, 28 Jul 2023 14:06:36 +0000 (16:06 +0200)
commit87b620ace4933f30db8c4834862a57d56f9a07a6
tree8f634eacd3c12687b52e85152a2665e76f990075
parent38f5d5834d610e011b3608fe8cc34b927775204a
Integrate MON and Grafana

Add actions for datasources in mon charm

create, list and delete prometheus datasources

requests are done using grafana API calls

grafana-url, grafana-admin, grafana-password does
not have default value. If they are not present in
config the charm is blocked.

Change-Id: Ia0138b8d3088654f65ea9d23a664619a4475d3d8
Signed-off-by: Patricia Reinoso <patricia.reinoso@canonical.com>
installers/charm/osm-mon/actions.yaml
installers/charm/osm-mon/config.yaml
installers/charm/osm-mon/requirements.txt
installers/charm/osm-mon/src/charm.py
installers/charm/osm-mon/src/grafana_datasource_handler.py [new file with mode: 0644]
installers/charm/osm-mon/tests/integration/test_charm.py
installers/charm/osm-mon/tests/integration/test_datasource_actions.py [new file with mode: 0644]
installers/charm/osm-mon/tests/unit/test_charm.py