title: How to restart prometheus?
body: <p>I have set-up prometheus in my Ubuntu machine and it is running at <code>localhost:9090</code> now. But, when I run the following command, I get a failed status.</p>
  
  <pre><code>systemctl status prometheus
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>● prometheus.service - Prometheus
  Loaded: loaded (/lib/systemd/system/prometheus.service; enabled; vendor preset: enabled)
  Active: failed (Result: exit-code) since Wed 2019-11-06 14:58:36 +0530; 8s ago
  Main PID: 7046 (code=exited, status=1/FAILURE)
  
  නෙවැ 06 14:58:36 ayesh systemd[1]: prometheus.service: Service hold-off time over, scheduling restart
  නෙවැ 06 14:58:36 ayesh systemd[1]: prometheus.service: Scheduled restart job, restart counter is at 5
  නෙවැ 06 14:58:36 ayesh systemd[1]: Stopped Prometheus.
  නෙවැ 06 14:58:36 ayesh systemd[1]: prometheus.service: Start request repeated too quickly.
  නෙවැ 06 14:58:36 ayesh systemd[1]: prometheus.service: Failed with result 'exit-code'.
  නෙවැ 06 14:58:36 ayesh systemd[1]: Failed to start Prometheus.
  </code></pre>
  
  <p>I tried to restart prometheus using;</p>
  
  <pre><code>killall -HUP prometheus
  sudo systemctl daemon-reload
  sudo systemctl restart prometheus
  </code></pre>
  
  <p>and using;</p>
  
  <pre><code>curl -X POST http://localhost:9090/-/reload
  </code></pre>
  
  <p>but they did not work for me. I have checked for syntax errors of prometheus.yml using 'promtool' and it passed successfully.</p>
  
  <p>Is there any other way to fix this problem?</p>