<p>Is there any way we can run pod based on the alert fired from Prometheus? We have a scenario where we need to execute a pod based on the disk pressure threshold.
I am able to create alert but I need to execute a pod. How can I achieve that?</p>
<pre><code>groups:
  - name: node_memory_MemAvailable_percent
    rules:
    - alert: node_memory_MemAvailable_percent_alert
      annotations:
        description: Memory on node {{ $labels.instance }} currently at {{ $value }}% 
          is under pressure
        summary: Memory usage is under pressure, system may become unstable.
      expr: |
        100 - ((node_memory_MemAvailable_bytes{job=&quot;node-exporter&quot;} * 100) / node_memory_MemTotal_bytes{job=&quot;node-exporter&quot;}) &gt; 80
      for: 2m
      labels:
        severity: warning
</code></pre>

<p>I think the Alertmanager can help you, using the <code>webhook</code> receiver (<a href="https://prometheus.io/docs/alerting/latest/configuration/#webhook_config" rel="nofollow noreferrer">documentation</a>).</p>
<p>In this way, when the alert is triggered, Prometheus sends it to the Alertmanager, then the Alertmanager does a POST to a custom webhook.</p>
<p>Of course, you need to implement a service that handles the alert and runs your action.</p>
