启动node_exporter 失败,日志信息展示:TLS is disabled and it cannot be enabled on the fly

启动node_exporter 失败,日志信息展示:TLS is disabled and it cannot be enabled on the fly
执行命令:

./node_exporter 

输出日志:


level=info ts=2020-07-18T04:38:46.494Z caller=node_exporter.go:112 collector=uname
level=info ts=2020-07-18T04:38:46.494Z caller=node_exporter.go:112 collector=vmstat
level=info ts=2020-07-18T04:38:46.494Z caller=node_exporter.go:112 collector=xfs
level=info ts=2020-07-18T04:38:46.494Z caller=node_exporter.go:112 collector=zfs
level=info ts=2020-07-18T04:38:46.494Z caller=node_exporter.go:191 msg="Listening on" address=:9100
level=info ts=2020-07-18T04:38:46.494Z caller=tls_config.go:170 msg="TLS is disabled and it cannot be enabled on the fly." http2=false

监控平台中的node_exploter 是down状态:

配置文件信息:

[root@localhost home]# cat prometheus.yml 
global:
 scrape_interval:     15s
 evaluation_interval: 15s
scrape_configs:
 - job_name: 'prometheus'
   static_configs:
   - targets: ['localhost:9090']
 - job_name: 'node_exporter'
   static_configs:
    - targets: ['localhost:9100']
[root@localhost home]# 

环境:
node_exporter版本:1.0.1
系统:centos7
请老师指点一下啦

看下这个文章,node_exporter版本升到1.0.0之后,因为安全性考虑支持了TLS
可以考虑按照文章中进行设置 以安全的方式访问数据
或者是下载一个低一点的版本 就不用考虑这些内容了

好的哦 ,老师太厉害了。老师那里有低一点的版本吗? 方便发一个给我不,我这边下载不下来

可以参考这个文章,下载证书进行配置

好的 ,辛苦

感谢老师的帮助,老师提供的方法是对我有帮助的