influxdb-1.7.6_windows_amd64.zip 解压到文件夹中:
influx.exe 表示客户端
influxd.exe 表示服务端
influx_inspect.exe 表示查看工具
influx_stress.exe 表示压力测试工具
influx_tsm 表示数据库转换工具(将数据库从 b1 或 bz1 格式转换为 tsm1 格式)
influxdb.conf 是配置文件
修改 influxdb.conf 配置文件,主要是修改三个文件夹路径:
[meta]
# Where the metadata/raft database is stored
dir = "xxxx/meta"
[data]
# The directory where the TSM storage engine stores TSM files.
dir = "xxxx/data"
# The directory where the TSM storage engine stores WAL files.
wal-dir = "xxxx/wal"
路径后面的/meta、/data、/wal 不要动。
4.Grafana
直接安装 grafana-7.3.6.windows-amd64.msi 即可。
5.使用
InfluxDB启动
进入安装目录,直接打开 influxd.exe 服务端;可以同时打开 influx.exe 客户端,进行交互式操作。
Telegraf启动
进入 Telegraf 安装目录,打开CMD执行: