Ratebeacon for Atlassian Cloud 0.1
Rate-limit monitoring for your own Jira Cloud, Confluence Cloud and JSM integrations. It runs entirely inside your network: the SDKs record the rate-limit headers Atlassian returns on every call, a small collector stores them, alerts on thresholds and exposes Prometheus metrics, and a CLI writes post-incident reports. Nothing is sent to Atesen Software: no telemetry, and the licence check is an offline signed key.
What you get:
| Need | Ratebeacon 0.1 |
|---|---|
| See remaining burst and hourly quota before a 429 | X-RateLimit-Limit/Remaining, X-RateLimit-NearLimit, RateLimit / RateLimit-Policy (and Beta- forms), per integration and endpoint group |
| Know why a 429 happened | RateLimit-Reason, Retry-After, X-RateLimit-Reset (Atlassian only sends these on a 429) |
| Do not make it worse | Safe retries: honours Retry-After plus jitter, otherwise exponential backoff with full jitter; retries only 429, capped attempts and total wait |
| Get told early | Slack, Microsoft Teams, any webhook and SMTP e-mail; rules in YAML (NearLimit, 429 count, 429 %, burst headroom, hourly quota); one message per rule and cooldown, plus a "resolved" message |
| Dashboards | Prometheus /metrics and a ready Grafana dashboard (deploy/grafana/dashboards/ratebeacon.json) |
| After an incident | ratebeacon report: requests, 429s and NearLimit per integration and hour, with reason and most affected endpoint group, as CSV and HTML |
| Forge apps you own | Preview poller for Atlassian's Forge metrics API (API calls by status bucket) |
Install in 10 minutes
You need Python 3.9+ on the collector host, and Node 18+ and/or Python where your integrations run.
1. Collector (2 minutes)
pip install https://ratebeacon.atesensoftware.com/download/ratebeacon-0.1.0-py3-none-any.whl
ratebeacon init ratebeacon.yaml # writes the example config with 5 ready rules
export SLACK_WEBHOOK_URL=https://hooks.slack.com/services/... # Windows: set SLACK_WEBHOOK_URL=...
ratebeacon check -c ratebeacon.yaml # validates rules and channels
ratebeacon test-alert -c ratebeacon.yaml --channel slack # sends one test message
ratebeacon serve -c ratebeacon.yaml # listens on :9464 (/ingest, /metrics, /healthz)
Or with Docker (collector + Prometheus + Grafana): download and unzip the kit
(https://ratebeacon.atesensoftware.com/download/ratebeacon-0.1.0-kit.zip: this guide, deploy/, config/, demo/
and the SDK sources), edit deploy/ratebeacon.yaml, put GRAFANA_ADMIN_PASSWORD and your secrets in deploy/.env,
then cd deploy && docker compose up -d --build. Grafana opens on http://localhost:3000 with the Ratebeacon dashboard.
2. Wrap your integrations (5 minutes)
Give every integration a name; that name is what alerts, metrics and reports are grouped by.
Node (fetch)
npm install https://ratebeacon.atesensoftware.com/download/ratebeacon-0.1.0.tgz
const { createMonitor } = require('ratebeacon');
const rb = createMonitor({ integration: 'hr-sync', collectorUrl: 'http://ratebeacon.internal:9464' });
const res = await rb.fetch('https://acme.atlassian.net/rest/api/3/search/jql', {
method: 'POST', headers: { Authorization: auth, 'Content-Type': 'application/json' }, body: JSON.stringify(query),
});
Node (axios): rb.attachAxios(axios.create({ baseURL: 'https://acme.atlassian.net' })) - retries go through the
same instance, so your interceptors and auth still apply.
Python (requests)
pip install "ratebeacon[requests] @ https://ratebeacon.atesensoftware.com/download/ratebeacon-0.1.0-py3-none-any.whl"
from ratebeacon import CollectorSink, monitored_session
session = monitored_session("jira-cleanup", sink=CollectorSink("http://ratebeacon.internal:9464"))
session.auth = (email, api_token)
r = session.get("https://acme.atlassian.net/rest/api/3/myself")
Environment variables work instead of code options: RATEBEACON_COLLECTOR_URL, RATEBEACON_INTEGRATION,
RATEBEACON_INGEST_TOKEN, RATEBEACON_SPOOL (a local JSON-lines file used when the collector is unreachable; import
it later with ratebeacon import or list it under collector.spool_files).
3. Prometheus and Grafana (3 minutes)
scrape_configs:
- job_name: ratebeacon
static_configs: [ { targets: ["ratebeacon.internal:9464"] } ]
Grafana: Dashboards > New > Import > upload deploy/grafana/dashboards/ratebeacon.json from the kit (or
https://ratebeacon.atesensoftware.com/download/grafana-dashboard.json) and pick your Prometheus data source. Tested with Grafana OSS 11.3.1 and Prometheus 2.55.1.
Alert rules
ratebeacon.yaml holds the channels and rules (see config/ratebeacon.example.yaml). Each rule:
- name: throttling-storm
metric: rate_429_pct # see the table
op: ">" # > >= < <=
threshold: 5
min_requests: 50 # ignore tiny samples
window: 10m
group_by: integration # or [integration, group], site, product
severity: critical # info | warning | critical
cooldown: 30m # same rule + key is not sent again sooner (a storm = one message)
channels: [slack, email]
| metric | meaning | applies to |
|---|---|---|
near_limit_count |
responses with X-RateLimit-NearLimit: true |
all traffic that gets the header |
count_429, rate_429_pct |
throttled responses, count or % | all |
burst_remaining_pct_min |
lowest X-RateLimit-Remaining / X-RateLimit-Limit (per-second burst) |
all |
quota_remaining_pct_min |
lowest r/q of an hourly *-quota policy |
Forge, Connect, OAuth 2.0 apps; Atlassian sends it only above ~80% use; API-token traffic has no points quota |
retries, errors, count_5xx, requests |
SDK retries, network errors, 5xx, volume | all |
forge_4xx_count, forge_4xx_pct |
Forge app API calls in the 4xx bucket | Forge poller (preview) |
Secrets are never written in the file: use webhook_url_env, username_env, password_env.
Post-incident report
ratebeacon report -c ratebeacon.yaml --from 2026-11-26T08:00 --to 2026-11-26T12:00 --out ./reports
ratebeacon report --db ./ratebeacon.db --from -24h --integration hr-sync --format csv # relative times work too
Times are UTC. The CSV has one row per integration and hour: requests, 429s, 429 %, NearLimit, retries, network
errors, 5xx, lowest burst and quota headroom, top RateLimit-Reason and most affected endpoint group. The HTML file is
self-contained and adds a summary and a reason x endpoint-group table.
Try it without touching Atlassian
From the unzipped kit:
pip install PyYAML requests
python demo/run_demo.py
Starts a fake Atlassian site, a fake Slack webhook and a fake SMTP server on 127.0.0.1, runs three integrations
(Python jira-sync and user-audit, Node confluence-export) into a 429 storm, prints the alerts that fired (one
per rule and integration) and writes demo/out/incident-report.csv / .html. --keep leaves the collector on :9464
for Prometheus/Grafana.
What is recorded, and what is not
Recorded per call: time, integration name, Atlassian site host, product, templated endpoint group (ids, issue keys, account ids and UUIDs replaced, query string dropped), method, status, duration, attempt, and the rate-limit header values. Never recorded: Authorization or any other request header, query strings, request or response bodies. The SDKs never throw into your code: the event buffer is bounded and sent in the background with a 2 s timeout.
Limits (by Atlassian's design, not ours)
- Only calls that go through the SDKs are seen: Node.js or Python REST clients (API token, OAuth 2.0 or Connect JWT
auth). Calls made inside Forge apps (
@forge/api/@forge/bridge) are not wrapped; for your own Forge apps the preview poller reads Atlassian's Forge metrics instead. Other vendors' Marketplace apps and scripts you do not wrap are invisible: Atlassian has no tenant-wide API for other apps' consumption (open request AX-1883), and 429s are not in the admin audit log. - API-token traffic is exempt from the hourly points quota and only shows the per-second burst policy (seen live on
26 Nov 2026, see
evidence/). Confluence v2 returned no rate-limit headers on the calls we tried. - Forge metrics API (preview): experimental Atlassian API, app owner's credentials, status in 2xx/3xx/4xx/5xx buckets only (no 429 split, no points usage), 15-minute windows, 5 calls/minute. Verified to answer for our own apps; live data points not yet seen (our apps had no traffic in the tested windows). Full verification is planned for 0.2.
Licence
Annual organisation licence, 490 USD per year, unlimited integrations and collectors inside one organisation.
Without a key the collector runs as a full 30-day trial; afterwards alert notifications pause while ingest, metrics,
dashboards and reports keep working. Put the key in license_file or RATEBEACON_LICENSE_KEY; check it with
ratebeacon license -c ratebeacon.yaml (offline, Ed25519 signature). Licences: support@atesensoftware.com.