prometheus 配置项
/opt/prometheus/prometheus-2.28.1/prometheus --config.file=/opt/prometheus/prometheus-2.28.1/prometheus.yml --storage.tsdb.path=/beta/prometheus/data --web.listen-address=:9090
[root@BETAWS32 beta]# cat /etc/systemd/system
system/ system.conf
[root@BETAWS32 beta]# cat /etc/systemd/system/prometheus.service
[Unit]
Description=Prometheus Monitoring System
Documentation=Prometheus Monitoring System
[Service]
ExecStart=/opt/prometheus/prometheus-2.28.1/prometheus \
--config.file=/opt/prometheus/prometheus-2.28.1/prometheus.yml \
--storage.tsdb.path=/beta/prometheus/data \
--web.listen-address=:9090
TimeoutStopSec=10
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target

浙公网安备 33010602011771号