安装influxdb (rpm)
wget https://dl.influxdata.com/influxdb/releases/influxdb-1.7.7.arm64.rpm
启动服务
systemctl enable influxdb
systemctl start influxdb
配置文件/etc/influxdb/influxdb.conf
本地连接数据库
influx -precision rfc3339
创建数据库和用户:
create database prometheus
create user “prometheus” with password ‘123456’ with all privileges
show databases;
name: databases
name
prometheus
_internal
use prometheus
Using database prometheus
show measurements;
- 修改Prometheus配置文件
在配置文件中增加influxdb远端存储的配置,修改prometheus.yaml,加入以下配置部分:
remote_write