set measurement in influxdb code example

Example 1: influxdb add measurement

INSERT xyz,name=serverA value=10,count=10

This will create a measurement name xyz where
tag keys : name
field keys : value & count

Example 2: influx db add measurement

create database <data base name of your choice>

create user "<username>" with password '<password>'

To see the all databases:  SHOW DATABASES

Enter the Database: use <database name>

To see all tables inside the database: SHOW MEASUREMENTS

grant all on <data base name> to <username>

insert data (Here Motionsense is a Measurement which is similar to the table 
name of SQL): INSERT MotionSense,SensorType=Gyro roll=1.2,yaw=5,pitch=3

See the data of the Measurements: SELECT * FROM "MotionSense"

Tags:

Misc Example