Skip to content

Grafana Dashboard Import Tool

TrueWatch currently provides a node script to convert Grafana dashboard templates into TrueWatch dashboard templates.

Configuration

Prerequisites

You need to have nodejs and npm installed on your system, with the following version requirements:

  • node >= 12.7.0
  • npm >= 6.10.0

Usage

    1. Install the script
npm install -g @cloudcare/guance-front-tools
    1. View the script usage help
grafanaCovertToGuance

The specific script execution command is as follows: -d: The directory location of the Grafana JSON file, for example: ./grafana/json/grafana.json -o: The output location of the TrueWatch dashboard JSON file, for example: ./guance/json/guance.json

    1. Execute the conversion command
grafanaCovertToTrueWatch -d ./grafana/json/grafana.json -o ./guance/json/guance.json
    1. Import the converted json file in the TrueWatch console
    1. Complete