INFLUXDB Series (i)

Source: Internet
Author: User
Tags influxdb

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.