Prometheus FAQ使用中所遇到的常见问题

问题A:Prometheus UI 的显示时区非本地时区

解决办法一:

使用grfana工具调用,就不会出现该问题

解决办法二:

Prometheus 2.16后的版本引入了新UI,进入新UI 后勾选本地时区即可(local timezone)

问题B:重启prometheus 遇到 too many open files ,打开文件数过多的解决办法

问题现象 :

当你有比较多的targets文件时,你在启动或者reload prometheus时可能会遇到 "too many open files"的问题,然后你的数据只能调出一部分

分析问题第一步:查看linux系统当前最大打开文件数(发现没有问题)

[root@Prometheus ~]# ulimit -n
65535

分析问题第二步:查看Prometheus进程打开文件的最大数

解决问题第三步:解决办法:在systemd启动时进行参数的指定

重启生效

systemctl restart prometheus.service

参考文章:http://smilejay.com/2016/06/centos-7-systemd-conf-limits/
参考文章:https://vitzhou.top/20180709_prometheus_many_file/

声明:本文为原创,作者为 辣条①号,转载时请保留本声明及附带文章链接:https://boke.wsfnk.com/archives/364.html
谢谢你请我吃辣条谢谢你请我吃辣条

如果文章对你有帮助,欢迎点击上方按钮打赏作者

最后编辑于:2022/12/12作者: 辣条①号

目标:网络规划设计师、系统工程师、ceph存储工程师、云计算工程师。 不负遇见,不谈亏欠!

暂无评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

arrow grin ! ? cool roll eek evil razz mrgreen smile oops lol mad twisted wink idea cry shock neutral sad ???

文章目录