Ad Widget

Collapse

Grafana api - export dashboards

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jefte
    Senior Member
    • Oct 2015
    • 207

    #1

    Grafana api - export dashboards

    Does anyone use GRAFANA API to perform backups / exports of automatic dashboards?

    Making a manual export of the dashboard, the json format comes with some differences ... such as:

    {
    "__inputs": [
    {
    "name": "DS_ZABBIX_DB",
    "label": "Zabbix DB",
    "description": "",
    "type": "datasource",
    "pluginId": "alexanderzobnin-zabbix-datasource",
    "pluginName": "Zabbix"
    }

    --------------------------------------------------------------

    -------------------------------------------------- ------------

    Using curl to access api via shell script:
    Curl -X GET -k -H "Authorization: Bearer eyJrIjoi123123123iS3434234UG13UTdFcFdEYVh6UWMiLCJu IjoiM123123OjF9" http: // localhost: 3000 / api / dashboards / db / zimbraDASH

    I get the output in json, but without this header, so this json when I try to import does not display anything on the screen, as if it was not compatible ...
Working...