InfluxDB™ is a time series database designed to handle high write and query loads. It is an integral component of the TICK stack. InfluxDB is meant to be used as a backing store for any use case involving large amounts of timestamped data, including DevOps monitoring, application metrics, IoT sensor data, and real-time analytics.
$ go get github.com/influxdata/influxdb $ cd$GOPATH/src/github.com/influxdata/influxdb $ go clean ./... $ go get -t -v ./... $ go install -ldflags="-X main.version=1.8.2" ./... $ ll $GOPATH/bin
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 48120b502a48 influxdb:1.8.10 "/entrypoint.sh infl…" 32 seconds ago Up 32 seconds 0.0.0.0:8086->8086/tcp influxdb
使用
进入容器
1
$ docker exec -it influxdb bash
连接 InfluxDB 实例
1
$ influx
1 2
Connected to http://localhost:8086 version 1.8.10 InfluxDB shell version: 1.8.10
NAME: influxdb-1598258562 LASTDEPLOYED: Mon Aug 24 16:42:47 2020 NAMESPACE: default STATUS: deployed REVISION: 1 TESTSUITE: None NOTES: InfluxDBcan be accessed via port 8086 on the following DNS name from within your cluster:
http://influxdb-1598258562.default:8086
Youcan connect to the remote instance with the influx CLI. To forward the API port to localhost:8086, run the following:
Collectively, Telegraf, InfluxDB, Chronograf and Kapacitor are known as the TICK Stack.
The TICK Stack is a loosely coupled yet tightly integrated set of open source projects designed to handle massive amounts of time-stamped information to support your metrics analysis needs.