首页 技术 正文
技术 2022年11月14日
0 收藏 374 点赞 2,155 浏览 1059 个字

一、文件准备

1.1 文件名称

telegraf-1.2.1_windows_amd64.zip

influxdb-1.2.2_windows_amd64.zip

grafana-4.2.0.windows-x64.zip

1.2 下载地址

https://portal.influxdata.com/downloads

【注意、注意、注意】下载时可能需要FanQiang

Influxdb1.2.2安装_Windows

Influxdb1.2.2安装_Windows

https://grafana.com/grafana/download?platform=windows

Influxdb1.2.2安装_Windows

二、安装

分别解压下载下来的文件到指定目录,比如:d:\Program Files

三、配置

3.1 Telegraf

修改influxdb.conf,设置日志文件目录:

  ## Specify the log file name. The empty string means to log to stdout.
logfile = "D:/Program Files/Telegraf/telegraf.log"

3.2 InfluxDb

修改influxdb.conf,打开Web控制台:

[admin]
# Determines whether the admin service is enabled.
enabled = true

# The default bind address used by the admin service.
bind-address = “:8083”

3.3 Grafana

使用默认配置

四、启动

4.1 Influxdb

通过cmd命令窗口,切换到influxdb安装目录,执行如下命令:

influxd -config influxdb.conf

4.2 Telegraf

通过cmd命令窗口,切换到Telegraf安装目录,执行如下命令:

telegraf -config telegraf.conf

4.3 Grafana

切换到Grafana安装目录中的bin目录下,双击grafana-server.exe启动程序

五、使用

访问http://localhost:3000,使用admin/admin登录本机Grafana,新建influxdb数据源:

Influxdb1.2.2安装_Windows

【注意】Telegraf启动后,向InfluxDb中上报数据时,会默认创建一个telegraf数据库,所以上面我们配置DataBase是telegraf

查看http://localhost:8083,可以发现telegraf库中,默认有4个Measurements(表):

Influxdb1.2.2安装_Windows

配置Grafana中的面板,这样一个简易的本机监控系统就搭建完了:

Influxdb1.2.2安装_Windows

【注意】CPU是按核数维度统计的,磁盘队列是按盘符统计的

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,087
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,562
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,412
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,185
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,821
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,905