Prometheusのシステム化されたサービスの作成

Prometheusのシステム化されたサービスの作成

Oracle Linux 8

systemdでprometheusを起動しようとしてstatus=203/EXECエラーが発生します。コマンドをコピー/貼り付けすると、/etc/systemd/system/prometheus.serviceエラーなしで実行されます。 prometheusユーザー(ログインしていない)とグループが存在します。これは私のものです。プロメテウス、サービス:

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

[Service]
Type=simple
Environment="GOMAXPROCS=1"
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

ベストアンサー1

おすすめ記事