Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Dashboards

Grafana Dashboards can easily be exported and imported, either from the UI or from the HTTP API

  • If using UI, the converted dashboards can be imported to grafana in your environment by simply following instructions from Grafana found here.

  • If using command line (using the HTTP API), you will need an API key with admin privilege. You can create an API key by following these instructions. Also, you will need a folder to have been created to which the alerts will be With the API key generated, use following command to import the provided/converted grafana dashboard:

    • # the curl command to import dashboard
      curl -H 'Content-Type: application/json' \
           -H 'Authorization: Bearer <REDACTED>' \
           -X POST http://<grafana-url-colon-port>/grafana/api/dashboards/db -d @<converted-file-location.json>

Alerts

Note that following is intended to import to Grafana. If you are importing the alerts definition to Prometheus server directly, the input format (i.e., the converted file) is different. Please make sure to communicate with Kloudfuse team prior to conversion to ensure that you have the correct format of the converted files.

Please follow these steps to import the grafana alerts to your grafana instance.

  • Make sure to create a folder (namespace) for where the alerts need to be imported. Following command will use <NAMESPACE> as the placeholder for this.

  • # the curl command to import alerts.
    curl -H 'Content-Type: application/json' \
         -H 'Authorization: Bearer <REDACTED>' \
        -X POST http://<grafana-url-colon-port>/grafana/api/ruler/grafana/api/v1/rules/<NAMESPACE> -d @<converted-file-location.json>

  • No labels