Failed to start prometheus.service: Unit prometheus.service is masked
Question
sudo systemctl restart prometheus
Failed to restart prometheus.service: Unit prometheus.service is masked.
Answer
systemctl status prometheus
● prometheus.service
Loaded: masked (Reason: Unit prometheus.service is masked.)
Active: inactive (dead)
ls -l /etc/systemd/system/prometheus.service
lrwxrwxrwx 1 root root 9 Jun 25 2022 /etc/systemd/system/prometheus.service -> /dev/null
sudo apt install -y prometheus