Schedules, synthetic monitoring and notifications
A schedule runs a test regularly, a synthetic monitor checks the live system with a few VUs every few minutes, and notification channels take the result to Slack, Teams, e-mail, SMS, a phone call, a webhook or your issue tracker. Set up a notification channel first; for a test on every deploy, see CI/CD.
How to create a scheduled run
A schedule runs the test on behalf of its creator, with that user's current permissions.
- Open the test and press Schedule.
- Enter a Name (e.g. "Nightly load test").
- Under When pick a preset or Custom (cron) (e.g.
30 1 * * 1-5is weekdays at 01:30). - Pick the Time zone (e.g.
Europe/Istanbul) and the number of Runners. - Optionally set an environment and Share of the test's load under Environment and scale.
- Check the Next runs list.
- If the test changes data, tick If this test changes data, I allow that for the scheduled runs too.
- Press Save.
Check: press Run now on the list; the run starts.
Schedule rules
- At most every 5 minutes.
- A firing is skipped while the previous run is going, while the concurrent-run limit is full, or in peak hours.
- A run that cannot start is did not start and is reported through
schedule.failed. - If the test's target does not answer, the run is recorded as failed and
schedule.failedis sent (Target reach check). - So a nightly test does not wear the target down, turn on the guard in the test's Thresholds and guard tab (Guard).
Peak hours
A window in which scheduled runs do not start (installation admin):
- On the Scheduled runs page open the Peak hours card.
- Pick the days, hours and time zone (e.g. weekdays 09:00-18:00).
- Save.
A firing in the window is skipped and not caught up. Run now, CI, runs started by hand and synthetic monitors are not held back.
Managing scheduled runs
Load Testing → Scheduling → Scheduled runs lists every schedule with Next, Last status and Owner. Each row has Run now, Pause / Resume, Edit, Delete (the runs stay) and run →.
Scheduled comparative runs
- In the schedule dialog tick Start a comparative run (version A/B).
- Pick the environments for Side A (baseline) and Side B (candidate).
- On a single environment turn on Sequential comparison (the sides take turns); the version endpoint is then required.
A "worse" or "invalid" result goes out as run.compared. Details: Version comparison.
How to create a synthetic monitor
At every check each VU runs every scenario once (at most 60 s); no run record is made.
- Open the test of the flow to watch and press Run as synthetic monitor.
- Pick a Name and an Interval (1, 5, 15 or 60 minutes).
- Enter VUs (1-10, default 1).
- Pick Locations; each location runs its own check.
- Pick the Environment (The test's own values uses the test's values).
- Under Alerts set Bad checks in a row to 2 or 3.
- Optionally enter Check duration threshold (ms) and Step duration threshold (ms).
- Press Save.
Check: press Check now on the list; the first result comes within a minute.
Write protection
A test with a step that changes data needs I allow these steps to change data at every check ticked in a monitor; otherwise it is not saved. If the test gains a write step later, the monitor is turned off.
If you can, write a read-only test for monitoring. At a 1-minute interval a write step runs 1440 times a day against the live system.
How checks work
Checks run with the creator's permissions and never overlap. With no idle runner a check is skipped; set aside a runner or location for monitoring (Runners).
How to read the monitoring dashboard
Load Testing → Synthetic monitoring lists the monitors with state, interval, locations and last check.
| State | Meaning |
|---|---|
| up | The latest checks passed |
| slow | A check or step duration threshold was exceeded |
| down | The bad-checks-in-a-row count was reached |
| unknown | No check yet, or all were skipped |
Click a monitor's name for Uptime, the Step durations trend and Latest failures. The Always-on watch card on the main Dashboard rolls up all monitors.
Living baseline: drift without thresholds
The Living baseline card compares the last 24 hours with the 7 days before (p95, p50, error rate, per step); no threshold needed. monitor.drift reports a drift once, when it starts.
| Status | When |
|---|---|
| Slower than normal | p95 at least 20% and 20 ms above the baseline |
| Failing more than normal | Error rate at least 2 points higher, with at least 2 failed checks |
| Learning | Fewer than 20 successful checks in the baseline, or fewer than 5 in the last 24 hours |
SLO and error budget
SLO target (30 days) is how much of the checks should be good (99.9% by default). The bad checks the target allows are the error budget. The card shows the budget left and the Burn rate; monitor.budget goes out when the budget falls to a quarter and when it runs out.
Close watch after a deploy
When you announce a deploy, the monitors it touches check every minute for 30 minutes and compare with the 24 hours before; the result is on the Deploys card.
- Get an API token (user menu → API tokens).
- Add this to the end of your deploy step:
curl -fsS -X POST https://spitfire.example.com/api/v1/deploys \
-H "Authorization: Bearer $SPITFIRE_TOKEN" -H "Content-Type: application/json" \
-d '{"environment":"prod","version":"'"$GIT_SHA"'","note":"checkout service"}'In GitHub Actions:
- uses: usespitfire/spitfire-action@v1
with:
url: https://spitfire.example.com
token: ${{ secrets.SPITFIRE_TOKEN }}
deploy: true
environment: prodIn GitLab CI the template's .spitfire-deploy job runs in the .post stage:
include:
- remote: https://raw.githubusercontent.com/usespitfire/spitfire-examples/main/ci/gitlab/spitfire.gitlab-ci.yml
announce-deploy:
extends: .spitfire-deploy
variables:
SPITFIRE_URL: https://spitfire.example.com
SPITFIRE_ENVIRONMENT: prod
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCHPlanned maintenance
- On the monitor page's Planned maintenance card pick a duration (30 minutes–8 hours).
- Press Start maintenance. To end early, End maintenance now.
During maintenance checks are skipped, no notices go out and nothing counts in the uptime or SLO. From CI (minutes 1-1440, 0 ends it):
curl -fsS -X POST https://spitfire.example.com/api/v1/maintenance \
-H "Authorization: Bearer $SPITFIRE_TOKEN" -H "Content-Type: application/json" \
-d '{"environment":"prod","minutes":30,"note":"database upgrade"}'
# … the maintenance …
curl -fsS -X POST https://spitfire.example.com/api/v1/maintenance \
-H "Authorization: Bearer $SPITFIRE_TOKEN" -H "Content-Type: application/json" \
-d '{"environment":"prod","minutes":0}'With the pipeline templates: Planned maintenance from a pipeline.
Status page
- On the Synthetic monitoring page press New status page on the Status pages card (workspace admin).
- Pick a title, a language and the monitors.
- Press Publish; the link looks like
https://spitfire.example.com/s/sfs_….
The page shows the overall state, daily uptime and recent incidents; test names, error messages and addresses are not published. New link invalidates the old one. For a badge add /badge.svg:
[](https://spitfire.example.com/s/sfs_…)Weekly watch summary
Groups with monitor.weekly get last week's summary from Monday 09:00. To send it now: Send the weekly summary now (last week) on the channel row.
Monthly SLA report
The Monthly SLA card on the Synthetic monitoring page gives each monitor's SLA per calendar month; the PDF and CSV download there. Groups with monitor.monthly get the report on the 1st.
| Column | What it means |
|---|---|
| SLA | Good checks / checks that ran; checks skipped for maintenance do not count |
| Result | SLA ≥ target Met, below Breached, no check No data (not 100%) |
| Outage (min) | From the first bad check to the next good one |
| Allowed (min) | (1 − target) × the month's minutes: 99.9% and 31 days → 44.6 min |
Incident history
Incident history shows the last 30 days' incidents, the total time and the mean time to recover (MTTR). N bad checks in a row open an incident and the first good check closes it.
Alert rule: any location or majority
With 2+ locations the Alert rule decides when a round is bad: When any location is bad (default) or When most locations are bad (a tie counts as good). With three or more locations we recommend majority.
| Locations | Bad | Any location | Majority |
|---|---|---|---|
| fra, ist, ams | fra failed | bad (alert) | good, partial problem: fra |
| fra, ist, ams | fra failed, ist slow | bad | bad |
| fra, ist | fra failed | bad | good (tie) |
Notification channels
Channels are on Settings → Integrations → All integrations; free and unlimited on every edition.
All integrations: channels and Settings
First, in Settings → General, save Spitfire's public address and the Notification language; links in messages use this address (Ports and network).
Adding a channel (common steps)
- Press Add integration and pick the channel kind.
- Give it a Name and fill in the target (below).
- Press Test. Check: a green Success and "Spitfire notification test" at the target.
- Press Save.
A channel is only a connection; who hears which event is set by notification groups and notification rules.
| Event | When |
|---|---|
run.started, run.finished |
A run started, finished |
run.regressed, run.compared |
A run worse than its baseline; a comparative run finished |
run.switch_needed |
A sequential comparison waits for a version switch |
schedule.failed |
A scheduled run did not start or was missed |
monitor.down, monitor.recovered |
A monitor is down or slow; it recovered |
monitor.drift, monitor.budget |
Drift, error budget |
monitor.weekly, monitor.monthly |
Weekly summary, monthly SLA |
apm.* |
APM regressions, error groups, alerts and anomalies (APM alerts) |
Notification groups
- On Alerts & anomalies → Notification groups press Add notification group and give it a Name (e.g.
On-call team). - Tick the channels under Channels.
- Under People pick a registered user or add a person by hand (an e-mail address for an e-mail channel, an E.164 phone for SMS/IVR, e.g.
+905321234567). - Press Save.
A passive group gets no notices but stays picked. A person gets a notice once.
Notification rules
- Open Alerts & anomalies → Notification rules.
- On the event's row press + group and pick a group.
- To hear only problems, tick Only problems.
- To narrow to certain tests, fill in Tests (for other groups, Add a separate rule for other tests).
- Press Save.
APM alerts, anomalies, policies, connection health and report schedules pick groups in their own forms. Older channel picks keep working as Channels picked directly (older setting).
Slack
- In Slack create a webhook with Apps → Incoming WebHooks.
- Paste its address (
https://hooks.slack.com/services/…) into Target.
Microsoft Teams
- In the channel create the Workflows → "Post to a channel when a webhook request is received" flow.
- Paste its address into Target.
Google Chat
- In the space take the address from Apps & integrations → Webhooks → Add webhook.
- Paste it into Webhook URL.
Cisco Webex
- On developer.webex.com create a bot with My Webex Apps → Create a New App → Create a Bot and copy the Bot access token.
- Add the bot (
…@webex.bot) to the space. - In API Reference → Rooms → List Rooms press Run with the bot token and take the space's
id. - Put the token in Bot access token and the id in Room ID.
PagerDuty
- On the service's Integrations tab add Add an integration → Events API V2.
- Paste the Integration Key into Integration key (routing key).
- If your account is on
…eu.pagerduty.com, set Region to EU.
A problem opens an incident; recovery resolves it.
Opsgenie
Atlassian is retiring Opsgenie (end of support 5 April 2027). Use PagerDuty for new setups.
- Under the team's Integrations → Add integration → API save with Create and Update Access on.
- Paste the API Key into API key (GenieKey).
Alertmanager
- Try the address from the Spitfire server; you should see a JSON answer:
curl -s http://alertmanager:9093/api/v2/status- Enter the Alertmanager address; when protected, the Basic auth user and its password, or the Password or bearer token.
Alerts carry the labels alertname (SpitfireMonitor, SpitfireLoadTest, SpitfireAPMAlert), severity, service, source="spitfire".
- In Settings → E-mail (SMTP) save Server, Port, Security, Username, Password and Sender.
- Press Send a test e-mail. Check: "Sent.".
The recipients are the e-mail addresses of the notification groups.
SMS (HTTP)
You describe the request your provider expects; there are no presets.
- Enter the Request URL (GET or POST).
- Fill in Body type and Body template; placeholders
{phone},{phones},{message},{secret}…. Put the key in Secret value ({secret}). - If errors come back with 200, fill in Response must contain (optional) / Response must not contain (optional).
- Save and press Send a test SMS.
# Form POST, one request per recipient
POST https://sms-gateway.example.com/api/send
Body type: form-urlencoded
Body: to={phone}&text={message}&sender=SPITFIRE&apikey={secret}
Response must contain: "status":"queued"
# JSON POST with an Authorization header, one request for all recipients
POST https://sms.example.com/v1/messages
Header: Authorization: Bearer {secret}
Body type: JSON
Body: {"recipients": "{phones}", "text": "{message}", "link": "{run_url}"}IVR (voice call)
Rings the phone and reads the event out. The request is described as for SMS.
- Pick a Preset: Generic HTTP voice API (JSON) or Twilio Voice style (Calls.json, TwiML).
- For Twilio replace
<AccountSid>andFrom, and put the base64 ofAccountSid:AuthTokeninto Secret value ({secret}). - Press Make a test call. Check: the phone says "Spitfire test call. This channel works."
To try without a call, use Twilio IVR (test double) in Mock services.
Issue tracking channels (opening issues)
Jira, ServiceNow, Azure DevOps, GitLab, GitHub, YouTrack, Redmine and Linear are the issue tracking add-on module (Add-on modules and their trial). The first problem opens an issue, later ones become comments.
- Pick the channel's Product and version.
- Fill in the credentials and project fields as in the table below.
- Use Test to check the sign-in and project (it opens no issue).
Setting up
| Tracker | Oldest | Credentials | Project field |
|---|---|---|---|
| Jira | Cloud; DC/Server 8.0 | Cloud and 8.0-8.13: e-mail/user + API token or password; 8.14+: Personal access token (Jira Data Center) | Project key (PERF), Issue type (Task, must exist in the project) |
| ServiceNow | Tokyo | An Integration user that can create and update records | Table (incident); correlation_id = spitfire:<subject> |
| Azure DevOps | Server 2019 | Personal access token: Work Items (Read & write), Project and Team (Read) | https://dev.azure.com/<organization> or the collection, Project |
| GitLab | 13.0 | Token with the api scope, at least Reporter |
group/project or ID |
| GitHub | GHES 3.0 | Token with Issues: read and write | owner/repo (Spitfire adds /api/v3) |
| YouTrack | 2020.1 | Permanent token | Project ID (PERF) |
| Redmine | 4.0 | API key; Enable REST web service on; Add issues, Add notes | Project identifier (/projects/shop → shop); version not checked |
| Linear | cloud | API key, its member in the team | Team key (ENG) |
Webhook (JSON)
The body follows the spitfire.run-event/v1 schema (Sample payload). With a Secret (signature) the signature comes in the X-Spitfire-Signature: sha256=<hex> header. Add your own key with Extra headers.
Live metrics with OTLP and Prometheus
Spitfire's own metrics; for your systems' data see APM.
- Send Spitfire metrics out (OTLP): enter the Endpoint and the Interval (s).
- Expose Spitfire metrics to Prometheus: Prometheus scrapes
/metricswith a personal API token (spitfire_runs_active,spitfire_monitor_up,spitfire_monitor_error_budget_remaining_ratio…).
A ready Grafana dashboard: spitfire-examples/grafana.
Common problems
| Symptom | Cause | Fix |
|---|---|---|
| missed | The controller was down at that time | Not made up; use Run now. Why: System events |
| skipped | Previous run still going, concurrent-run limit or peak hours | Read the note on the row; shorten the test or widen the interval |
| did not start | No idle runner, license, write confirmation or the owner's access | Read the error on the row; if the owner is disabled, recreate the schedule as another user |
| "Invalid cron expression." | Cron is not 5 fields | Fix it while watching Next runs |
| Monitor always unknown | No idle runner | Set aside a runner for monitoring |
| "The license makes this monitor check less often." | The plan does not allow this interval | Lengthen the interval (License) |
| The monitor turned itself off | The test started writing, or its owner lost access | Save it again with the write confirmation |
| No notification arrives | No group in the event's notification rule, the group is passive, Only problems or the test filter | Press Test, look at Deliveries |
Slack/Teams 4xx |
The webhook was deleted | Update Target with a new webhook |
| E-mail does not go out | Port and security type do not match | 587 STARTTLS, 465 TLS |
| SMS "succeeded" but nothing arrived | The provider returns the error with 200 | Add a response content rule |
Schedules and monitors above the limit are not deleted; they wait as Paused (license) (License).
Details
| Topic | Detail |
|---|---|
| Cron | 5 fields (minute hour day month weekday); @daily works too |
| Schedules | Missed times are not made up; a run more than 10 min late is missed; a schedule stops if its user loses access |
| Peak hours API | GET/PUT /api/v1/settings/peak-hours (enabled, days 0 Sunday … 6 Saturday, from, to as HH:MM, timezone); To before From crosses midnight |
| Comparison | The sides run at the same time with half the load each; the license needs compare_ci (Growth yearly, Scale yearly, Enterprise) |
| Monitor without runners | If every runner is in a load test at night the monitor stays unknown |
| Monitors | Free edition: every 15 min at most, 7 days kept, one of 2+ runners reserved; otherwise 30 days |
| Deploys card | Slower, Failing more, Watching, Clean or Too few checks |
| Alert frequency | monitor.down once per problem, monitor.recovered once on recovery |
| SLO | 99%, 99.5%, 99.9%, 99.95%, 99.99%; Learning under 50 checks; burn rate 1× spends it in 30 days |
| Deploy announce | monitors, environment, version (≤ 100), note (≤ 500); GET /api/v1/deploys?monitor=<id>; GitLab SPITFIRE_DEPLOY_VERSION, _NOTE, _MONITORS |
| Status page | 20 pages per workspace, 50 monitors per page; noindex; ?format=json, ?show=uptime, `?lang=tr |
| SLA | Daily totals kept 400 days; `GET /api/v1/monitors/sla?month=2026-10&format=json |
| Incident API | GET /api/v1/monitors/<id>/incidents?days=30; kind Outage or Slowdown |
| Deliveries | Retried after 2 s, 15 s, 1 min; Deliveries shows each attempt; secret fields stored encrypted |
| PagerDuty severity | down critical; slow, drift, budget warning; failed run error |
| Opsgenie priority | critical → P1, error → P2, warning → P3, info → P5; closes by the same alias |
| Alertmanager | An alert whose recovery never comes resolves after 24 hours |
| SMS | At most 20 per hour; Turkish letters drop a part to 70 characters, GSM-7 characters only keeps 160 |
| IVR | At most 5 calls per hour; a new channel calls only on a failed run and monitor.down |
| Issue tracking | While an issue is open, new problems and the recovery are comments; Spitfire never closes issues. After an issue is closed (Jira Done, Linear Done/Canceled) a new one opens; Do not verify the TLS certificate only for a self-signed server |
| Webhook | X-Spitfire-Event, X-Spitfire-Delivery headers |





