Docker Run Influxdb

Source: Internet
Author: User
Tags docker run influxdb

This article assumes that the user has installed and configured Docker's operating environment, and Docker Daemon is already running. If you want to install Docker on SuSE, refer to the Article Docker Learning Series 1-suse installing Docker to set up the Docker runtime environment. For other Linux systems, please refer to the Docker official documentation for installation configuration.

# Docker Pull Tutum/influxdb

After the command executes successfully, use the Docker Images command to view the downloaded image

#docker Images

REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE

Tutum/influxdb 0.8.8 8ef6d98dafde weeks ago 279.9 MB

By this, influxdb installation is complete, is it very simple?

3. Running the INFLUXDB in a Docker environment:

#docker run-d-P 8083:8083-p8086:8086--expose 8090--expose 8099--name influxsrv tutum/influxdb

The meaning of each parameter:

-D: Container runs in the background

-P: Map the in-container port to the host port, in the form of host port: Container port, 8083 is INFLUXDB Web management tool port, 8086 is influxdb HTTP API Port

--expose: Allows the container to accept external incoming data

--name: Container Name

Finally, the mirror name is +tag, and the mirror image is the value of Tutum/influxdb,tag 0.8.8 Specifies the version to run, which is latest by default.

4. Getting Started with Influxdb

Step 3 After you start Influxdb, Influxdb launches an internal HTTP Server administration tool that allows users to manipulate influxdb by accessing the Web server. Of course, Influxdb can also be accessed through the CLI, which is the command line. Open the browser, enter http://127.0.0.1:8083, and access the admin Tools home page:

Enter user name root, password root, click Connect

After connecting to the INFLUXDB, you can create a new database, which has been created with a new one named Cadvisor, and click Explore Data:

In the Data interface interface, users can query data from INFLUXDB, or write data to influxdb. Write the data first, enter the Test,values field in the Time Series name field, enter {"Testduration": 22}, and return the 200OK description to write the data successfully. Modifies 22 to a different value, performing multiple writes.

You can query all Series:list series contained in the database

Query data from a series named Test: SELECT * from Test. The query results list all the data points in test and present them to the user as a time series chart.

Influxdb is introduced here, Influxdb's own web management tool is very limited, the next article will introduce a special and influxdb combination, display the powerful front-end tool of the chart, please look forward to!

Docker Run 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.