Dashboard - Provisioning(5.0) example

hello…

any body work or test on Dashboard provisioning? can you give me reference link otherwise give me the example of the dashboard provisioning ??

Thanks!!!..

Hi,

See http://docs.grafana.org/administration/provisioning/#dashboards

Marcus

Hello Marcus,
do you have an example for OpenTSDB, too?

My test doesn’t work, it doesn’t fill openTSDB version and resolution correctly:

apiVersion: 1
datasources:

  • name: “OpenTSDB chlxxxxxxxx”
    type: opentsdb
    access: proxy
    orgId: 4
    url: http://chlxxxxxxxx:4242/
    jsonData:
    tsdbVersion: “==2.2”
    tsdbResolution: “second”
    version: 1.0
    editable: true

Hi,

We are planning to update docs for each data source to make this more clearer, but in general you can use the chrome dev tools and inspect the json payload of the request when you save a data source from the ui. I just did that and got the following:

{
  "name": "opentsdb",
  "type": "opentsdb",
  "url": "http://localhost:4242",
  "access": "proxy",
  "jsonData": { 
    "keepCookies": [], 
    "tsdbVersion": 2, 
    "tsdbResolution": 1 },
  "secureJsonFields": {}
}

The naming and properties in yaml should map 1-1 to json properties.

Marcus

Hello Marcus,

thank you very much. That works now.
It is a little bit tricky from the GUI to find the right parameter and values for the yaml file, but to inspect with Chrome dev tool is a very good hint.

Some suggestions:

  • currently any error/typo in a yaml file is preventing the grafana-server from starting. I suggest to log errors in the grafana.log file and ignore the yaml file and continue to start grafana-server.
  • when a yaml file is not readable (permission errors), the grafana-server is not starting. I suggest to log errors in the grafana.log file and ignore the yaml file and continue to start grafana-server.
  • the provisioning function is currently very case sensitive (e.g. GUI entry “Type OpenTSDB” has to be yaml file entry “type: opentsdb”). I suggest, where possible, to ignore cases.

Nevertheless I like this new provisioning function. If there would be a version to provision organisations and users/teams as well, that would be perfect :slight_smile:
Thanks for the work.
Ralf

We already know that there are some rough edges around the provisioning story, but we really aiming to make this better. We’ll consider this moving forward.

Thanks for the feedback.

@mefraimsson can you send me the example of cratedb??

how to add schema in cratedb configuration using direct???

Thanks In …Advance !!

Hi,

I just wrote the solution above of how to know what properties/values to use, i.e.

Marcus