grafana-source bogus config error

Bug #1897577 reported by David O Neill
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Grafana Charm
Fix Released
Medium
Alvaro Uria

Bug Description

On relating peometheus2 to grafana via:

juju add-relation grafana:grafana-source prometheus2:grafana-source

The data source generated by the relation is bogus.

Visit the datasource in grafana: http://10.0.8.235:3000/datasources/edit/1/

An unexpected error happened
Details
TypeError: Cannot read property 'timeInterval' of undefined

    in lt
    in Unknown
    in div
    in t
    in form
    in div
    in div
    in t
    in div
    in div
    in div
    in t
    in t
    in div
    in t
    in t
    in x
    in ConnectWithCleanUp(Connect(t))
    in r
    in Unknown
    in t
    in Unknown
    in h
    in Unknown
    in Unknown
    in t
    in t
    in l

Related branches

Revision history for this message
David O Neill (dmzoneill) wrote :
description: updated
Revision history for this message
David O Neill (dmzoneill) wrote :

What gets added when related to charm-prometheus-ceph-exporter
sqlite> .databases
main: /var/lib/grafana/grafana.db
sqlite> select * from data_source;
1|1|0|prometheus|prometheus - Juju generated source|proxy|http://10.0.8.89:9090||||0|||0||2020-09-28 15:47:10|2020-09-28 15:47:10|0|||799145714

Delete it
sqlite> delete from data_source;

Add the datasource manually
sqlite> select * from data_source;
2|1|2|prometheus|prometheus - Juju generated source|proxy|http://10.0.8.89:9090||||0|||1|{}|2020-09-29 09:59:39|2020-09-29 10:00:51|0|{}|0|a9bZtTFMz

clearly a difference

Revision history for this message
David O Neill (dmzoneill) wrote :
Alvaro Uria (aluria)
Changed in charm-grafana:
status: New → In Progress
assignee: nobody → Alvaro Uria (aluria)
milestone: 20.02 → 20.10
Alvaro Uria (aluria)
Changed in charm-grafana:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.