title: Prometheus Alert Manager - inhibit_rule for specific maintenance window
body: <p>I want to pause alerts from the Prometheus alert manager from 8 PM to 8 AM for all Dev servers. These servers will be stopped during this window and I am getting a target missing alerts for all the exporters.</p>
  <p>I referred to some useful following links:</p>
  <ol>
  <li><a href="https://stackoverflow.com/questions/57305247/how-to-inhibit-alerts-outside-business-hours-with-prometheus-alertmanager">How to inhibit alerts outside business hours with Prometheus Alertmanager?</a></li>
  <li><a href="https://stackoverflow.com/questions/54806336/how-to-silence-prometheus-alertmanager-using-config-files">How to silence Prometheus Alertmanager using config files?</a></li>
  </ol>
  <p>But still, I couldn't get an idea of how to implement this for a specific node level.</p>
  <p>Here is my alert example:</p>
  <pre><code>[FIRING:6] PrometheusTargetMissing
  
  Summary: Prometheus target missing (instance 10.0.0.1:9117)
  Severity: critical     Env: stage     Region: ap-south-1
     
         A Prometheus target has disappeared. An exporter might be crashed.
   VALUE = 0
   LABELS = map[__name__:up env:stage instance:10.0.0.1:9117 job:apache_exporter region:ap-south-1]
         A Prometheus target has disappeared. An exporter might be crashed.
   VALUE = 0
   LABELS = map[__name__:up env:stage instance:10.0.0.2:9117 job:apache_exporter region:ap-south-1]
         A Prometheus target has disappeared. An exporter might be crashed.
   VALUE = 0
   LABELS = map[__name__:up env:staging instance:10.0.0.1:9100 job:node_exporter region:ap-south-1]
         A Prometheus target has disappeared. An exporter might be crashed.
   VALUE = 0
   LABELS = map[__name__:up env:staging instance:10.0.0.2:9100 job:node_exporter region:ap-south-1]
     
     Details:
  • alertname: PrometheusTargetMissing
          • env: stage
          • instance: 10.0.0.1:9117
          • job: apache_exporter
          • region: ap-south-1
          • severity: critical
  </code></pre>