junh-ki / dias_kuksa

Pieces of connectivity implementation with Eclipse KUKSA for DIAS.
https://dias-kuksa-doc.readthedocs.io/en/latest/
GNU General Public License v3.0
4 stars 3 forks source link

InfluxDB CLI commands & Grafana #12

Open junh-ki opened 4 years ago

junh-ki commented 4 years ago

InfluxDB

$ sudo service influxdb start $ sudo service influxdb restart $ sudo service influxdb stop

CREATE DATABASE dias_kuksa_tut DROP DATABASE dias_kuksa_tut

SHOW DATABASES USE dias_kuksa_tut

INSERT x_coordinate,host=tscr_good value=0.0 INSERT x_coordinate,host=tscr_good value=0.0 1603705624629520572 SELECT FROM x_coordinate SELECT FROM total_sampling_time WHERE "host"='total_sampling' SHOW MEASUREMENTS DROP MEASUREMENT x_coordinate

exit

$ docker exec -it be472f45029e /bin/bash # be472f45029e here is the container id of influxdb

Grafana

$ sudo apt install net-tools $ sudo netstat -anp tcp | grep 3000 $ sudo kill 13886

$ sudo service grafana-server start $ sudo service grafana-server status $ sudo service grafana-server stop