- IoTDB-Grafana
- Grafana installation
- Install Grafana
- Install data source plugin
- Start Grafana
- IoTDB installation
- IoTDB-Grafana installation
- Start IoTDB-Grafana
- Explore in Grafana
- Add data source
- Design in dashboard
- Grafana installation
IoTDB-Grafana
Grafana installation
Install Grafana
- Download url:
- version >= 4.4.1
Install data source plugin
- plugin name: simple-json-datasource
After downloading this plugin, you can use the grafana-cli tool to install SimpleJson from the commandline:
Alternatively, you can manually download the .zip file and unpack it into your grafana plugins directory.
- (Windows)
/var/lib/grafana/plugins
(Linux)/usr/local/var/lib/grafana/plugins
(Mac)
Start Grafana
If you use Unix, Grafana will auto start after installing, or you can run sudo service grafana-server start
command. See more information here.
If you use Mac and homebrew
to install Grafana, you can use homebrew
to start Grafana. First make sure homebrew/services is installed by running brew tap homebrew/services
, then start Grafana using: brew services start grafana
. See more information .
If you use Windows, start Grafana by executing grafana-server.exe, located in the bin directory, preferably from the command line. See more information here.
See
IoTDB-Grafana installation
git clone https://github.com/apache/incubator-iotdb.git
Start IoTDB-Grafana
Option one
Option two
In /grafana/target/
directory
If you see the following output, iotdb-grafana connector is successfully activated.
$ java -jar iotdb-grafana-{version}.war
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
...
If you need to configure properties, move the grafana/src/main/resources/application.properties
to the same directory as the war package (grafana/target
)
The default port of Grafana is 3000, see http://localhost:3000
Username and password are both “admin” by default.
Add data source
Select Data Sources
and then Add data source
, select SimpleJson
in Type
and URL
is http://localhost:8888
Design in dashboard
Add diagrams in dashboard and customize your query. See http://docs.grafana.org/guides/getting\_started/
config grafana
The specific configuration information of interval is as follows
<1h: no sampling
1h~1d : intervals = 1m
1d~30d:intervals = 1h
After configuration, please re-run war package