很长一段时间,第一次....只是在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
我想念什么?