Page MenuHomePhabricator

Grafana: singlestat / graph panels can not be edited
Closed, ResolvedPublic

Description

I gave a try to Grafana, when adding a Graph panel there is no empty graph being show which prevents me from configuring the graph. The panel is listed in the row editor, but it is not showing up.

Example is https://grafana.wikimedia.org/#/dashboard/db/releng-gerrit , it has a single row with a text span and a graph. The row editor shows both but the empty graph placeholder does not show up.

Event Timeline

hashar raised the priority of this task from to Needs Triage.
hashar updated the task description. (Show Details)
hashar added projects: acl*sre-team, Grafana.
hashar added subscribers: hashar, fgiunchedi.

Under Chromium, adding a panel graph throws a Javascript exception:

app.cff04fb1.js:9
TypeError: a.datasource.query is not a function
    at a.get_data (app.cff04fb1.js:25)
    at l.a.get_data (app.cff04fb1.js:20)
    at init (app.cff04fb1.js:20)
    at new <anonymous> (app.cff04fb1.js:25)
    at Object.e [as invoke] (app.cff04fb1.js:8)
    at l.instance (app.cff04fb1.js:9)
    at app.cff04fb1.js:9
    at f (app.cff04fb1.js:8)
    at v (app.cff04fb1.js:9)
    at h (app.cff04fb1.js:8)
    (anonymous function) @ app.cff04fb1.js:9
    (anonymous function) @ app.cff04fb1.js:9
    l.$apply @ app.cff04fb1.js:10
    (anonymous function) @ app.cff04fb1.js:15
    u.execCb @ app.cff04fb1.js:4
    t.check @ app.cff04fb1.js:4
    t.enable @ app.cff04fb1.js:4
    t.init @ app.cff04fb1.js:4
    (anonymous function) @ app.cff04fb1.js:4

Rather useless :-(

Looking at the dashboard Json, the graph has: "datasource": null,. Should probably be "graphite" instead, maybe we are missing a sensible default.

Change 233936 had a related patch set uploaded (by Hashar):
grafana: graphite is the default datasource

https://gerrit.wikimedia.org/r/233936

Making 'graphite' the default datasource in config.js might well solve the problem. We might want to live hack it on the Grafana server first to confirm it actually solves the issue.

Change 233936 merged by Filippo Giunchedi:
grafana: graphite is the default datasource

https://gerrit.wikimedia.org/r/233936

Thank you very much, I managed to add a graph panel :-}