问题描述
我使用官方文档在 debian 10 上安装 prometheus。我使用 prometheus 和 grafana 监控 ubuntu 服务器 18.04。一切正常。
一周后,我重新启动服务器,prometheus 不再工作。当我重新启动 prometheus 服务时,我没有错误。当我询问 prometheus 服务的状态时,出现此错误:
root@srv-pg:/# systemctl status prometheus
● prometheus.service - Monitoring system and time series database
Loaded: loaded (/lib/systemd/system/prometheus.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2021-02-17 16:38:19 GMT; 6min ago
Docs: https://prometheus.io/docs/introduction/overview/
Process: 2278 ExecStart=/usr/bin/prometheus $ARGS (code=exited,status=1/FAILURE)
Main PID: 2278 (code=exited,status=1/FAILURE)
Feb 17 16:38:19 srv-pg systemd[1]: prometheus.service: Service RestartSec=100ms expired,scheduling restart.
Feb 17 16:38:19 srv-pg systemd[1]: prometheus.service: Scheduled restart job,restart counter is at 5.
Feb 17 16:38:19 srv-pg systemd[1]: Stopped Monitoring system and time series database.
Feb 17 16:38:19 srv-pg systemd[1]: prometheus.service: Start request repeated too quickly.
Feb 17 16:38:19 srv-pg systemd[1]: prometheus.service: Failed with result 'exit-code'.
Feb 17 16:38:19 srv-pg systemd[1]: Failed to start Monitoring system and time series database.
root@srv-pg:/#
这是我的 prometheus.yml 配置文件:
# Sample config for Prometheus.
global:
scrape_interval: 5s
evaluation_interval: 5s
rules_files:
scrape_configs:
- job_name: prometheus
static_configs:
- targets: ['localhost:9090']
- job_name: node_exporter
static_configs:
- targets: ['192.168.62.4:9100']
- job_name: nginx_exporter
static_configs:
- targets: ['192.168.62.4:9113']
我查找了错误,但没有看到。请帮帮我。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)