INFLUXDB Installation Configuration Detailed

Source: Internet
Author: User
Tags influxdb

1: Introduction


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.


1, it has three major features:

1. Time series (timeseries): You can use time-related functions (such as Max, Min, sum, etc.)

2. Metrics (Metric): You can calculate large amounts of data in real time

3. Eevents (Event): It supports arbitrary event data


2. Features

Schemaless (unstructured), can be any number of columns

Scalable

Min, max, sum, count, mean, median a series of functions for convenient statistics

Native http API, built-in HTTP support, read and write using HTTP

Powerful Query Language similar to SQL

Built-in Explorer comes with management tools


3. API


InfluxDB supports two API modes

HTTP API

Protobuf API


2: Installation Deployment


Add Yum Source


Cat <<eof | sudo tee/etc/yum.repos.d/influxdb.repo

[Influxdb]

name = InfluxDB Repository-rhel \ $releasever

BaseURL = https://repos.influxdata.com/rhel/\ $releasever/\ $basearch/stable

Enabled = 1

Gpgcheck = 1

Gpgkey = Https://repos.influxdata.com/influxdb.key

Eof


3: Installation

Yum Install Influxdb-y


4: Start service, store boot

Service Influxdb Start

Systemctl Enable Influxdb

Service INFLUXDB Status





5: The service uses the port by default:

Networking By default, InfluxDB uses the following network ports:

TCP Port 8083 is used for InfluxDB ' s Admin panel

TCP Port 8086 is used for client-server communication over InfluxDB ' s HTTP API

TCP Ports 8088 and 8091 is required for clustered InfluxDB instances



6: Service Verification

Input

Influx

Enter the database

[Email protected] ~]# influx

Visit https://enterprise.influxdata.com to register for updates, InfluxDB Server management, and monitoring.

Connected to http://localhost:8086 version 0.11.0

InfluxDB Shell 0.11.0




1. Create a query user

CREATE USER "Ptquery" with PASSWORD ' Ptquery '


2. View Users:

> Show Users;

User admin

Ptquery false

PTDB1 Fals


3, you can also create query users on the page

CREATE USER "Ptquery" with PASSWORD ' Ptquery '


4. View service port

[Email protected] ~]# NETSTAT-TUNLP

Active Internet connections (only servers)

Proto recv-q send-q Local address Foreign address State Pid/program Name

TCP6 0 0::: 8083:::* LISTEN 22124/influxd

TCP6 0 0::: 8086:::* LISTEN 22124/influxd


4. Browser access to database management platform:

http://172.16.7.11:8083/


Reference information:

https://influxdata.com/downloads/


This article from "Kang Jianhua" blog, reproduced please contact the author!

INFLUXDB Installation Configuration Detailed

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.