# From a Categraf CPU metric to an on-call alert in Flashduty

December 4, 2026 ·

<!-- -->

2 min read

Eric Qin

A monitoring stack can show healthy dashboards while its route to the on-call engineer is broken. You can check that route with one test host, a short-lived Nightingale rule, and a Flashduty channel reserved for testing.

## Start with one host[​](#start-with-one-host "Direct link to Start with one host")

Categraf collects the CPU idle metric and writes it over Prometheus Remote Write. In Nightingale, query `cpu_usage_idle{cpu="cpu-total"}` for one host. The `ident` label is how you keep the test scoped to that host. The [Categraf quick start](https://n9e.io/docs/get-started/choose-your-path/categraf.md) walks through data arrival and the Linux integration.

## Watch the same incident open and close[​](#watch-the-same-incident-open-and-close "Direct link to Watch the same incident open and close")

Use Nightingale's built-in Flashduty media type, with the full push URL from a Flashduty test integration. Attach the notification rule to one CPU test rule and enable recovery notifications. The [Flashduty setup guide](https://n9e.io/docs/notifications/flashduty.md?from=blog#categraf-example) has a PromQL example that matches for five minutes and then clears on its own, so you can watch recovery without editing the rule halfway through.

| Check                                    | Where to look                                                            |
| ---------------------------------------- | ------------------------------------------------------------------------ |
| Categraf produced a sample               | Query the test host's CPU metric in Nightingale.                         |
| Nightingale fired and delivered an event | Open the event and its notification record in Nightingale.               |
| The responder can act on it              | Find the incident in the Flashduty test channel and acknowledge it.      |
| Recovery reached the same destination    | Confirm the same Flashduty incident resolves after the test window ends. |

If you see a Nightingale event but no incident in Flashduty, check the notification record's response body, then check the integration's latest event time and default route. Once the test is complete, disable the CPU test rule. You can repeat the same checks for the alert your team actually relies on.

**Tags:**

* [Prometheus](https://n9e.io/blog/tags/prometheus.md "Prometheus metrics, rules and operations.")
* [Alerting](https://n9e.io/blog/tags/alerting.md "Designing alert rules that page for the right reasons.")

[Edit this page](https://github.com/n9e/n9e.github.io/edit/main/blog/2026-12-04-categraf-nightingale-flashduty/index.md)[Report a problem](https://github.com/n9e/n9e.github.io/issues/new?title=Docs%20feedback%3A%20%2Fblog%2Fcategraf-nightingale-flashduty\&body=Page%3A%20https%3A%2F%2Fn9e.io%2Fblog%2Fcategraf-nightingale-flashduty%0A%0A)

[Older post](https://n9e.io/blog/grafana-alerting-vs-alertmanager.md)

[Grafana Alerting vs Alertmanager: rules, routing and coexistence](https://n9e.io/blog/grafana-alerting-vs-alertmanager.md)
