Setup

Install Python3.6 and the GridDB Python Module as per instructions here: https://github.com/griddb/python_client/blob/master/README.md The psutil python package is required with pip and start the logging agent on all systems that you wish to monitor:

$ cp /path/to/griddb_python.py /path/to/_griddb_python.so .
$ sudo pip3.6 install psutil
$ nohup ./psutil_logger.py &

To start the GridDB Grafana data source, simply:

 $ ./griddb_grafana_datasource.py 

If you wish to use Docker to run, follow the instructions here: https://docs.docker.com/install/linux/docker-ce/centos/#install-docker-ce Then on the GridDB host start the connector and grafana:

$ ./startgrafana.sh 

If you don't wish to use Docker, follow Grafana's instructions here; http://docs.grafana.org/installation/rpm/ Then install the SimpleJSON plugin and restart Grafana:

$ sudo grafana-cli plugins install grafana-simple-json-datasource
$ sudo systemctl restart grafana

Grafana will be running on http://localhost:3000, the connector on http://localhost:3003.