Preliminary use of Influxdb

Source: Internet
Author: User
Tags influxdb

Influxdb is an open source database for storing and analyzing time series data, and here's a brief summary of the issues I encountered during deployment and use.

In the introduction of its official website: https://influxdb.com/docs/v0.9/introduction/installation.html know influxdb can in Ubuntu,debian,redhat,os X and other systems, I tried the deployment on OS X first. With homebrew installed on OS X, deployment is easy. You only need to enter it under the terminal:

Brew Updatebrew Install Influxdb

we can. After the installation of the direct input influxdb can be started, but I started to find an error: Failed to connect to http://localhost:8086, is not interested to check what is the reason, so prepare to try on an Ubuntu virtual machine. It should be noted that, as described in the previous page, INFLUXDB should preferably be deployed on a 64-bit host. On Ubuntu 64-bit desktop, enter it successively:

wget Http://influxdb.s3.amazonaws.com/influxdb_0.9.2_amd64.debsudo dpkg-i INFLUXDB_0.9.2_AMD64.DEBSUDO/ETC/INIT.D /influxdb start

Then you can start the normal influxdb, after the start of the http://localhost:8083/can see the INFLUXDB query interface. After that, follow here: https://influxdb.com/docs/v0.9/introduction/getting_started.html introduction, you should be able to enter the influx directly under the terminal, You can connect to influxdb CLI (command line interface), but I will report "Command not found" error when I enter it under Ubuntu.

To further try Influxdb's functionality, you can only test it with its HTTP API: Https://influxdb.com/docs/v0.9/guides/writing_ Data.html, it is important to note that the example in this page has been summed up well, but if we are going to enter the constructed data ourselves, the value in the following statement cannot be changed:

Curl-i-xpost ' http://localhost:8086/write?db=mydb '--data-binary ' cpu_load_short,host=server01,region=us-west value=0.64 1434055562000000000 '

And the middle of the space can not be arbitrarily changed.

With so much to record today, you need to be able to help all the beginner's friends.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Preliminary use of Influxdb

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.