Uptime monitoring metrics for Prometheus
Yes, OnlineOrNot works with Prometheus. OnlineOrNot exports the state, result counts and response times of your checks, and the pings and schedule of your heartbeats, in the Prometheus text format. Scrape it with Prometheus, Grafana Cloud, the Datadog Agent or any other Prometheus-compatible system, and chart OnlineOrNot data beside your own metrics.
How to connect OnlineOrNot to Prometheus
- Sign up for OnlineOrNot and create your checks and heartbeats. Prometheus export is available on paid plans and during the free trial.
- Go to Settings > Integrations > Prometheus, choose the projects to export and whether to split results by region.
- Click Create Prometheus token. OnlineOrNot creates a read-only API token and a scrape configuration you can paste into
prometheus.yml. - Import the starter Grafana dashboard and the example alert rules if you want them.
What OnlineOrNot exports
oon_monitor_status: the current state of every check and heartbeat, such asUP,DOWNorPAUSED.oon_check_results_totalandoon_check_duration_seconds: passing and failing results and a response-time histogram, optionally split by region.oon_heartbeat_pings_total,oon_heartbeat_next_due_timestamp_secondsandoon_heartbeat_overduefor heartbeats.monitor_id,check_typeandnamelabels on every monitor metric, andoon_monitor_infowith each monitor's project, so you can filter and group in PromQL.
Frequently asked questions
Does OnlineOrNot work with Prometheus?
Yes. OnlineOrNot has a Prometheus endpoint at https://api.onlineornot.com/v1/metrics/prometheus that exports uptime, API, browser, DNS and TCP checks and heartbeats.
Does it work with Grafana Cloud and Datadog?
Yes. Add a Metrics Endpoint connection in Grafana Cloud, or use the Datadog Agent OpenMetrics check. OnlineOrNot also has a starter Grafana dashboard to import.
Can I alert from Prometheus instead of OnlineOrNot?
Yes. Use oon_monitor_status{state="DOWN"} == 1, or the example alert rules. Prometheus alerts arrive a minute or two later than OnlineOrNot alerts, because of the export delay and your scrape interval.
How many series does it create?
Each check produces 32 series, or 11 plus 21 for each region when results are split by region. Each heartbeat produces up to 15. The Prometheus page in the dashboard estimates the total before you start.