From 5323cf6ef5a00e38ea428165002f966740361d52 Mon Sep 17 00:00:00 2001 From: Hannes Lenke Date: Tue, 27 Oct 2026 00:22:50 -0400 Subject: [PATCH] docs: replace invented Prometheus exporter, fix bash snippet (DOC-163) Co-Authored-By: Claude Opus 5.5 --- .../heartbeat-monitors/other.mdx | 39 ++----------------- 1 file changed, 4 insertions(+), 35 deletions(-) diff --git a/detect/uptime-monitoring/heartbeat-monitors/other.mdx b/detect/uptime-monitoring/heartbeat-monitors/other.mdx index 8c3a3449..8207435f 100644 --- a/detect/uptime-monitoring/heartbeat-monitors/other.mdx +++ b/detect/uptime-monitoring/heartbeat-monitors/other.mdx @@ -179,41 +179,9 @@ services: Integrate heartbeat monitoring with your existing monitoring stack for unified observability. -### Prometheus Integration +### Prometheus and Grafana -```yaml -# prometheus.yml -scrape_configs: - - job_name: 'heartbeat-monitors' - static_configs: - - targets: ['checkly-exporter:8080'] - metrics_path: '/metrics' - scrape_interval: 30s -``` - -### Grafana Dashboard - -Create custom dashboards to visualize heartbeat monitor status alongside other metrics: - -```json -{ - "dashboard": { - "title": "Heartbeat Monitors Overview", - "panels": [ - { - "title": "Heartbeat Status", - "type": "stat", - "targets": [ - { - "expr": "heartbeat_monitor_status", - "legendFormat": "{{monitor_name}}" - } - ] - } - ] - } -} -``` +Checkly exposes check and heartbeat status as Prometheus metrics, such as `checkly_check_status`, from a Checkly-hosted endpoint. See the [Prometheus v2 integration](/integrations/observability/prometheus-v2) to set up scraping and use the metrics in Grafana. ## With Development Tools @@ -281,7 +249,8 @@ export HEARTBEAT_URL_STAGING="https://ping.checklyhq.com/staging-backup-id" export HEARTBEAT_URL_DEV="https://ping.checklyhq.com/dev-backup-id" # Use appropriate URL based on environment -HEARTBEAT_URL="${HEARTBEAT_URL_${ENVIRONMENT^^}}" +HEARTBEAT_URL_VAR="HEARTBEAT_URL_$(echo "$ENVIRONMENT" | tr '[:lower:]' '[:upper:]')" +HEARTBEAT_URL="${!HEARTBEAT_URL_VAR}" ``` ### Error Handling