# Source: firehose-exporter
---

- type: replace
  path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/custom_rules?/-
  value:
    name: AuctioneerLockHeldOnce
    rules:
      - alert: AuctioneerLockHeldOnce_Critical
        expr: "sum(firehose_value_metric_auctioneer_lock_held) != 1"
        labels:
          severity: critical
          notify: email
        annotations:
          summary: there is not exactly one auctioneer holding the lock.


Migrate auctioneer lock held exactly once to Prometheus
Migrate auctioneer lock held exactly once to Prometheus

Original DataDog monitor:

```
min(last_5m):sum:cf.auctioneer.LockHeld{deployment:prod}.fill(last, 60) < 1
max(last_5m):sum:cf.auctioneer.LockHeld{deployment:prod}.fill(last, 60) > 1
```

I think the instantaneous `!= 1` behaviour should be the same as the old
datadog behaviour.
