Skip to content

Metrics & Telemetry

Superglue exposes organization-scoped runtime metrics via a Prometheus text exposition endpoint. Use these to build dashboards, SLOs, and alerts for your Superglue usage.

GET /v1/metrics

https://api.superglue.cloud/v1/metrics

Auth: Authorization: Bearer <SUPERGLUE_API_KEY>
Format: Prometheus text exposition (text/plain; version=0.0.4)

Section titled “Option A: Using authorization (recommended)”
scrape_configs:
- job_name: superglue
scheme: https
metrics_path: /v1/metrics
static_configs:
- targets: ["api.superglue.cloud"]
authorization:
type: Bearer
credentials: "<SUPERGLUE_API_KEY>"
scrape_configs:
- job_name: superglue
scheme: https
metrics_path: /v1/metrics
static_configs:
- targets: ["api.superglue.cloud"]
bearer_token: "<SUPERGLUE_API_KEY>"
# or: bearer_token_file: /etc/secrets/superglue_api_key
# HELP superglue_runs_total Total number of finished runs (org-scoped).
# TYPE superglue_runs_total counter
superglue_runs_total{status="success",source="api"} 12
superglue_runs_total{status="failed",source="scheduler"} 3
# HELP superglue_run_duration_seconds_p95 p95 run duration over a trailing window (org-scoped).
# TYPE superglue_run_duration_seconds_p95 gauge
superglue_run_duration_seconds_p95{source="frontend",window="300s"} 1.23

superglue_runs_total

Type: Counter

Total number of finished runs in your org, grouped by outcome and source.

Label Values
status success, failed, aborted
source api, frontend, scheduler, mcp, tool-chain, webhook

PromQL Examples

Total throughput (5m):

sum(increase(superglue_runs_total[5m]))

Error rate (5m):

sum(increase(superglue_runs_total{status=~"failed|aborted"}[5m]))
/
clamp_min(sum(increase(superglue_runs_total[5m])), 1)

Breakdown by source:

sum by (source) (increase(superglue_runs_total[5m]))
superglue_run_duration_seconds_p95

Type: Gauge

p95 runtime (seconds) for finished runs over a trailing 5-minute window.

Label Values
source api, frontend, scheduler, mcp, tool-chain, webhook
window 300s

PromQL Examples

Alert when API runs get slow:

superglue_run_duration_seconds_p95{source="api"} > 10

Dashboard all sources:

superglue_run_duration_seconds_p95

  1. Monitor Scheduled Jobs

    Track superglue_runs_total filtered by source="scheduler" to see successful vs failed runs over time.

    sum by (status) (increase(superglue_runs_total{source="scheduler"}[1h]))
  2. Alert on Failures

    Set up alerts when scheduled runs fail — catch issues before they pile up.

    increase(superglue_runs_total{source="scheduler",status="failed"}[15m]) > 0
  3. Investigate in Superglue

    When an alert fires, jump into the Superglue dashboard or query the REST API to fetch the latest runs and inspect stack traces.

    Terminal window
    curl -H "Authorization: Bearer $SUPERGLUE_API_KEY" \
    "https://api.superglue.cloud/v1/runs?status=failed&limit=10"