Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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:

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

...

  • 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.

  • 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.

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

...