# importing dashboard Template in Grafana 

## prerequisite 

InfluxDB is deployed and running. 

The cubesatsim database should be created in InfluxDB.  When the "ModuleCubesatSim" application is executed,  the cubesatsim database is  is created automaticaly in influxDB.

## Configure the database 

As admin, in grafana, configure the data base 

![database](Image/Datasourcesetup.jpg)

## Import Dasboard Template

Download template : [Cubesat%20Simulator.json](https://code.electrolab.fr/xtof/josast/blob/master/ModuleCubesatSim/GrafanaDashboard/Cubesat%20Simulator.json)  


**Select Import capability in Grafana**

![database](Image/ImportMenu.jpg)


**Load the Json File**

![database](Image/ImportJson.jpg)

**the Dasboard is loaded and connected to the InfluxDB database**

