Brief introduction of Docker installation of influxDB distributed time series database and related operations

  • 2021-07-03 01:04:29
  • OfStack

Introduction to influxDB

influxDB is a distributed time series database. cAdvisor only displays real-time information, but does not store monitoring data. Therefore, we need to provide a time series database to store the monitoring information provided by cAdvisor components, so as to display time series data except real-time information.

influxDB Installation

Pull mirror image

docker pull tutum/influxdb

Startup container


#18083=>8083 WEB Port   8086=>8086  Data port 
docker run --name is_influx_db -p 18083:8083 -p 8086:8086 --expose 8090 --expose 8099 -di c061e5808198

Access test

http://192.168.44.113:18083/

Create a database

CREATE DATABASE "cadvisor"

View the database

SHOW DATABASES

Create a user


CREATE USER "hf" WITH PASSWORD 'hf_123456' WITH ALL PRIVILEGES

View Users

User authorization


# Grant read and write permissions to the database 
grant all privileges on cadvisor to cadvisor 
grant WRITE on cadvisor to cadvisor 
grant READ on cadvisor to cadvisor

View data information

SHOW MEASUREMENTS

Summarize


Related articles: