安装后Prometheus无法启动

问题描述

很长一段时间,第一次....只是在Debian 10上安装了Prometheus,当尝试从systemd开始时,显示以下错误:

 prometheus.service - Prometheus
   Loaded: loaded (/etc/systemd/system/prometheus.service; enabled; vendor prese
   Active: failed (Result: exit-code) since Thu 2020-08-20 11:57:01 CEST; 10s ag
     Docs: https://prometheus.io/docs/introduction/overview/
  Process: 19046 ExecStart=/usr/local/bin/prometheus (code=exited,status=2)
 Main PID: 19046 (code=exited,status=2)

Aug 20 11:57:01 web03 systemd[1]: prometheus.service: Service RestartSec=100ms e
Aug 20 11:57:01 web03 systemd[1]: prometheus.service: Scheduled restart job,res
Aug 20 11:57:01 web03 systemd[1]: Stopped Prometheus.
Aug 20 11:57:01 web03 systemd[1]: prometheus.service: Start request repeated too
Aug 20 11:57:01 web03 systemd[1]: prometheus.service: Failed with result 'exit-c
Aug 20 11:57:01 web03 systemd[1]: Failed to start Prometheus.

配置文件如下:

[Unit]
Description=Prometheus
Documentation=https://prometheus.io/docs/introduction/overview/
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
User=prometheus
Group=prometheus
ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/usr/local/bin/prometheus
   --config.file=/etc/prometheus/prometheus.yml
   --storage.tsdb.path=/var/lib/prometheus
   --web.console.templates=/etc/prometheus/consoles
   --web.console.libraries=/etc/prometheus/console_libraries
   --web.listen-address=0.0.0.0:9090
   --web.external-url=

SyslogIdentifier=prometheus
Restart=always

[Install]
WantedBy=multi-user.target

我想念什么?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...