Monitors
Set up monitors to track the health of your services, endpoints, certificates, and pipelines.
Monitors periodically check your infrastructure and report status. Incidion supports six monitor types to cover different scenarios.
Monitor statuses
Every monitor has a status that updates when checks run:
| Status | Meaning |
|---|---|
| Up | The check succeeded |
| Down | The check failed, confirmed by the monitor’s confirmation checks |
| Degraded | The check succeeded but slowly (above the degraded threshold), or a certificate expires soon |
| Pending | No checks completed yet or monitor just created |
| Maintenance | Monitor is in a maintenance window (no pages) |
When a monitor goes down, it opens an incident and pages people through the project’s escalation policy; no alert rule is needed. Alert rules add notifications on top.
HTTP / HTTPS monitors
Monitor the availability and performance of HTTP endpoints.
Configuration
| Field | Description |
|---|---|
| URL | Full HTTPS/HTTP URL to monitor (e.g., https://api.example.com/health); private and internal addresses are refused |
| Method | GET, HEAD, POST, PUT, PATCH, DELETE or OPTIONS (default: GET) |
| Headers | Optional custom headers (JSON object, up to 50); shown masked to members below admin |
| Body | Optional request body (sent with POST, PUT and PATCH) |
| Expected status codes | List of acceptable status codes (default: 200, 201, 202, 204) |
| Keyword | Optional text that response must contain or not contain (case-insensitive) |
| Keyword should contain | If true, response must include keyword; if false, must not include |
| Follow redirects | Follow up to 10 redirects (default: on) |
| Degraded threshold | degraded_threshold_ms: slower responses count as degraded (default 5000 ms) |
| Assertions | Optional checks on the response, see below |
Example
{
"url": "https://api.example.com/health",
"method": "GET",
"expected_status_codes": [200],
"keyword": "\"status\":\"ok\"",
"keyword_should_contain": true,
"timeout": 30,
"interval": 60
}
Incidion checks the endpoint every 60 seconds, expects HTTP 200, and verifies the response contains "status":"ok".
Assertions
assertions is a list of up to 20 checks; the check is down as soon as one fails, and its error names the failing assertion. A status_code assertion replaces the expected status codes.
[
{"type": "status_code", "op": "in", "value": [200, 204]},
{"type": "response_time_ms", "op": "lt", "value": 800},
{"type": "header", "name": "content-type", "op": "contains", "value": "json"},
{"type": "body_contains", "value": "ok"},
{"type": "body_regex", "value": "\"status\":\\s*\"ok\""},
{"type": "json_path", "path": "data.items[0].status", "op": "eq", "value": "ok"}
]
Operators: eq, neq, lt, lte, gt, gte (or ==, !=, <, …), in, not_in (status codes), contains, not_contains, matches, exists, not_exists (headers and JSON paths). The body is read up to 1 MB.
What a check records
Each check stores its status, response time (milliseconds), the status code and, when it failed, the error (timeout, connection refused, unexpected status code, failing assertion and so on).
TCP port monitors
Check if a port is open and accepting connections.
Configuration
| Field | Description |
|---|---|
| Host | Hostname or IP address (e.g., db.example.com) |
| Port | Port number (e.g., 5432); optional |
| Timeout | How long to wait for connection (seconds) |
| Interval | How often to check (seconds) |
Example
{
"host": "db.example.com",
"port": 5432,
"timeout": 10,
"interval": 60
}
TCP monitors open a connection to the port and close it again; they send no payload. A connection slower than the degraded threshold (default 5000 ms) is degraded. Without a port, the monitor checks that the host is reachable.
SSL certificate monitors
Track SSL certificate expiry and validity.
Configuration
| Field | Description |
|---|---|
| URL | HTTPS URL to check certificate (e.g., https://example.com) |
| Timeout | How long to wait (seconds) |
| Interval | How often to check (seconds) |
| Expiry threshold | Alert if certificate expires within N days (default: 30) |
Captured information
When a check runs, Incidion captures:
- Issuer and common name
- Valid from / Valid to dates
- Days until expiry
- Subject alternate names (SANs)
- Serial number and signature algorithm
- Resolved IP address
- Hostname validity (does the certificate match the domain?)
- Trust status (is the certificate in a trusted CA store?)
Status calculation
- Up: Certificate is valid and doesn’t expire within the threshold
- Degraded: Certificate is valid but expires within the threshold (e.g., expires in 7 days)
- Down: Certificate is invalid, expired, untrusted, or does not match the host name
The monitor’s ssl_certificate field has the latest certificate (expires_at, days_left, issuer, hostname_valid, trusted). Members who turned on Certificate expiry warnings get an email 30, 14, 7, 3 and 1 day before expiry.
DNS monitors
Check DNS resolution and optionally validate the response.
Configuration
| Field | Description |
|---|---|
| Host | Domain to resolve (e.g., example.com) |
| Record type | A, AAAA, CNAME, MX, TXT, NS |
| Expected value | Optional: expected resolved value (e.g., 1.2.3.4 for A record) |
| Nameserver | Optional public nameserver IP to ask (default: the system resolver) |
| Timeout | How long to wait for DNS response (seconds) |
| Interval | How often to check (seconds) |
Example
Monitor A record resolution:
{
"host": "example.com",
"dns_record_type": "A",
"dns_expected_value": "1.2.3.4",
"timeout": 10,
"interval": 60
}
If dns_expected_value is empty, any successful resolution is marked up. If specified, one of the resolved values must contain it (case-insensitive).
Status
- Up: DNS resolves and matches expected value (if specified)
- Down: DNS fails to resolve, times out, or doesn’t match expected value
- Degraded: the answer took longer than the degraded threshold (default 500 ms)
Heartbeat monitors
Monitors that you ping from your own code when work completes. Useful for cron jobs or scheduled tasks that don’t expose an HTTP endpoint.
How heartbeats work
- Create a heartbeat monitor
- Copy its ping URL, which contains a secret token
- Call the ping URL when your task completes
- If Incidion doesn’t receive a ping within the interval plus the grace period, the monitor goes down
Configuration
| Field | Description |
|---|---|
| Name | Descriptive name (e.g., “Nightly backup”) |
| Interval | Expected frequency of pings (seconds, at least 30) |
| Grace period | Extra time after the interval before a missed ping counts (default: the interval, at most 1 hour; up to 7 days) |
Example
# After your cron job finishes
curl https://api.incidion.dev/api/v1/heartbeat/<token>/
# When the job starts (the next ping records how long it ran)
curl https://api.incidion.dev/api/v1/heartbeat/<token>/start/
# When the job fails: the monitor goes down at once
curl -X POST https://api.incidion.dev/api/v1/heartbeat/<token>/fail/ \
-H "Content-Type: application/json" \
-d '{"message": "backup: disk full"}'
The token URL needs no API key: the token is the secret. If no ping arrives within the interval plus the grace period, the monitor goes down; the next ping brings it back up. See Heartbeats for more examples, the request body and rotating a leaked token.
Pipeline monitors
Track CI/CD pipeline runs (GitHub Actions, GitLab CI, Bitbucket Pipelines).
Configuration
| Field | Description |
|---|---|
| Provider | GitHub Actions, GitLab CI, or Bitbucket Pipelines |
| Repository | Repo in format owner/repo |
| Workflow | GitHub: workflow file or name (e.g., ci.yml); GitLab: pipeline name; Bitbucket: build status name or key. Optional, empty monitors all |
| Branch | Branch to monitor (e.g., main) - optional |
| Webhook secret | Generated by Incidion; authenticates the webhook (read it from the monitor’s webhook info) |
Webhook setup
- Create a pipeline monitor in Incidion
- Copy the webhook URL and secret
- Add a webhook in your repository settings pointing to the URL, with the secret (GitHub: Workflow runs; GitLab: Pipeline events; Bitbucket: Build status created and updated)
- Pipeline runs now post results to Incidion
See Pipelines for detailed setup.
Status
- Up: Last pipeline run succeeded
- Down: Last pipeline run failed
- Pending: No runs yet or waiting for next run
Check intervals
How often HTTP, TCP, SSL and DNS monitors check depends on your plan:
| Plan | Minimum interval |
|---|---|
| Free | 5 minutes (300 seconds) |
| Pro | 1 minute (60 seconds) |
| Business, Enterprise | 30 seconds |
Without an interval a monitor checks every minute, or at the plan minimum if that is longer. A shorter interval than the plan allows is refused with 403 PlanLimitExceeded (plan_limit.code is min_interval).
Timeouts
timeout is how long a check may take before it fails: 1 to 120 seconds (default 30), and never longer than the interval. Heartbeat and pipeline monitors have no timeout.
Check history
The monitor’s detail shows its recent checks and its uptime over 24 hours, 7, 30 and 90 days. Each check has:
- Timestamp
- Status (up/down/degraded)
- Response time
- Status code (HTTP)
- Error message (if failed)
Raw checks are kept as long as your plan’s log retention; daily uptime is kept for 400 days. With the API:
# The latest 100 checks (limit 1 to 500)
curl "https://api.incidion.dev/api/v1/projects/$PROJECT_ID/monitors/$MONITOR_ID/checks/?period=raw&limit=100" \
-H "Authorization: Bearer $ACCESS_TOKEN"
period is 24h (default, five-minute buckets), 7d, 30d, 90d (one bucket per day) or raw.
Pause and resume
Pause a monitor to temporarily stop checks without deleting it:
- Open the monitor
- Choose Pause: checks stop, no incidents are created
- Choose Resume to restart
Paused monitors still count toward your plan’s monitor limit when you create a new one. API: POST .../monitors/{id}/pause/ and .../resume/.
Check now
Manually trigger a check without waiting for the next scheduled interval:
- Open the monitor
- Choose Check now
- A check runs immediately and the status updates
Not available for heartbeat and pipeline monitors. API: POST .../monitors/{id}/check-now/.
External dependencies
Monitors can track the status of services you rely on (Stripe, AWS, GitHub and so on) from a catalog. See External Dependencies.
Create a monitor with the API
curl -X POST https://api.incidion.dev/api/v1/projects/$PROJECT_ID/monitors/ \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "API Health Check",
"monitor_type": "http",
"url": "https://api.example.com/health",
"interval": 60,
"timeout": 30,
"expected_status_codes": [200],
"confirmation_checks": 2
}'
monitor_type is http, tcp, ssl, dns, heartbeat or pipeline. Over the plan’s monitor limit the API answers 403 PlanLimitExceeded (plan_limit.code is max_monitors).
Incidents and alerts
A confirmed failure opens one incident for the monitor and pages the people in the project’s escalation policy. The person on call (Business plan) or the project’s default assignee becomes its assignee. Alert rules can add notifications on top, for example to Slack or PagerDuty.
Confirmation and recovery checks
Brief blips should not wake anyone up. Two settings on every monitor decide when its status changes:
- Confirmation checks (
confirmation_checks): failed checks in a row before the monitor is down and an incident opens. 1 to 10, default 2; 1 opens the incident on the first failure. After a first failure the next check runs about 20 seconds later instead of waiting for the interval. - Recovery checks (
recovery_checks): good checks in a row before the monitor is up again and its incident resolves. 1 to 10, default 1.
Heartbeat and pipeline monitors are not re-checked: a missed heartbeat or a failed pipeline run counts at once.
Auto-resolve
When the monitor is up again (after its recovery checks), its incident resolves by itself and the people who were paged get an update. You can resolve incidents by hand at any time.