Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
---
category: Reference
title: TCP Monitor Reference
description: Complete technical specification for TCP service monitoring.
---
A TCP monitor establishes a connection to a specified TCP endpoint (IP address and port) to verify its reachability and responsiveness. This is fundamental for monitoring the availability of services that communicate over TCP, such as databases, mail servers, and custom network services.
**Use cases:**
- Database server availability checks (e.g., PostgreSQL, MySQL).
- Mail server (SMTP, IMAP, POP3) reachability.
- Custom application service port monitoring.
- Validating network connectivity to specific endpoints.
## Configuration
### URI
**Type:** String (required)
**Format:** Hostname or IP address with port (e.g., `example.com:8080`, `192.168.1.1:22`)
The endpoint of the TCP service you want to monitor. This includes the hostname or IP address and the port number.
**Examples:**
- `openstat.us:443`
- `db.internal:5432`
- `10.0.0.5:3306`
### Regions
**Type:** Array of strings (optional)
**Default:** a plan-based selection (4 regions on the free plan, 6 on paid plans)
**Format:** Region identifiers (e.g., `iad`, `jnb`)
The geographical regions from which the TCP connection attempt will be initiated. This allows for verification of service availability and network latency across different global locations. See the [Location Reference](/docs/reference/location) for the full list of regions and the IPs to allowlist.
### Frequency
**Type:** String (required)
**Format:** Duration string (e.g., `30s`, `1m`, `1h`)
The interval at which the TCP monitor will attempt to connect to the target URI. Supported frequencies:
- `30 seconds`
- `1 minute`
- `5 minutes`
- `10 minutes`
- `30 minutes`
- `1 hour`
<Aside>
Which frequencies you can select depends on your plan: **Hobby** offers `10m`, `30m` and `1h`;
**Starter** adds `1m` and `5m`; `30s` is **Pro** and **Scale** only. See
[pricing](https://www.openstatus.dev/pricing) for the full breakdown.
</Aside>
### Response time thresholds
#### Timeout
**Type:** Duration (optional)
**Default:** `45 seconds`
The maximum duration to wait for a successful TCP connection. If the connection cannot be established within this time, the check is considered a failure.
#### Degraded
**Type:** Duration (optional)
The duration after which a TCP connection attempt is considered to be in a degraded performance state. This allows for early warning of network latency or service slowdowns.
### Retry
**Type:** Integer (optional)
**Default:** `3`
The total number of connection attempts made for each check, including the first one. With `3`, a failing connection is tried up to three times in the same region before the check is reported as failed. `0` is treated as the default (`3`); there is no setting that disables retries, so `1` means a single attempt.
### OpenTelemetry
Configures the export of monitoring metrics to an OpenTelemetry-compatible observability platform.
#### OTLP endpoint
**Type:** String (optional)
**Protocol:** HTTP only
The OTLP (OpenTelemetry Protocol) endpoint URL where collected metrics should be exported. Only HTTP endpoints are supported for metric export.
#### OTLP headers
**Type:** Key-value pairs (optional)
Custom headers to include when sending metrics to your OTLP endpoint. Commonly used for authentication or tenant identification.
**Common example:**
```
Authorization: Bearer <your_token>
```
## Related resources
- **[Create your first monitor](/docs/tutorial/create-your-first-monitor)** — step-by-step tutorial on setting up a monitor.
- **[CLI reference](/docs/reference/cli-reference)** — manage monitors programmatically from the command line.