This is a man on GitHub. Summary of the INFLUXDB manual, also good: https://xtutu.gitbooks.io/influxdb-handbook/content/zeng.html
1. What is INFLUXDB?
InfluxDB is an open source distributed timing, event, and metrics database .
Written in the Go language without external dependencies. Its design goal is to achieve distributed and horizontal scaling expansion.
2. How do I use Influxdb?
Analogy Method of learning! ---NFLUXDB provides class SQL syntax, so familiarity with SQL syntax makes it possible to learn by analogy.
Inserting data into a table (not called a table in influx, called measurement – measures/measurements)
Insert posts,userid=2,cid=3 content= "helloworld3", internal= "hah", external= "Zzzzzzhehhe" 1480000000000000000
The meaning of the statement that inserts the data: syntax
Insert posts here posts equivalent to the table name.
, userid=2,cid=3 this part is equivalent to the index (show tag keys from posts, you can see the index of this posts table has two CID and UserID)
content= "helloworld3", internal= "hah", external= "Zzzzzzzhehe" 1480000000000000000 Front separated by a space, Represents the beginning of inserting records into this table and can have any number of "fields"
Like our statement there are 3 fields, the last yellow part is the timestamp (can not write, will be inserted automatically, if there is write, will insert our own defined timestamp).
Let me show you how to create a new database, build a table, and insert data from the beginning.
1. Create a database
2. Build a table
The number of fields can be arbitrary
This statement adds a tag key------SchoolID
Delete
Delete entire database
INFLUXDB Series (i)