Merge ~rharding/charm-grafana:add-mysql-datasource into ~prometheus-charmers/charm-grafana:master
Status: | Superseded |
---|---|
Proposed branch: | ~rharding/charm-grafana:add-mysql-datasource |
Merge into: | ~prometheus-charmers/charm-grafana:master |
Diff against target: |
204 lines (+108/-35) 1 file modified
reactive/grafana.py (+108/-35) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jamon Camisso (community) | Needs Fixing | ||
Paul Collins | Needs Fixing | ||
Tom Haddon | Needs Fixing | ||
Review via email: mp+329855@code.launchpad.net |
This proposal has been superseded by a proposal from 2017-10-18.
Description of the change
This change adds support for a mysql based data source.
This is needed to allow building grafana dashboards on top of MySQL data that is generated as part of Juju KPIs.
In order to do this the current grafana-source endpoints needs to be made more generic. There's work around for issues in the current interface where it auto prefixes things with http:// and pulls the IP address of the relation unit vs getting it fed to the system.
The idea is that I've got a charm that pulls log data and stores it parsed into a mysql db.
mysql -> db relation -> my application charmed -> feeds the data source to grafana for dashboards.
Current test to make this work:
juju deploy mysql gypsy-danger- 1 grafana- source gypsy-danger
juju deploy cs:~rharding/
juju relate mysql:db gypsy-danger
juju deploy grafana (this updated charm)
juju relate grafana:
Log into grafana and see the data source. Hitting the verify it works button should show it works.
https:/ /usercontent. irccloud- cdn.com/ file/3KOzJdGO/ Selection_ 010.png