Tcpcheck Receiver
contrib
Maintainers: @atoulme, @michael-burt, @chengchuanpeng, @yanfeng1992
Source: opentelemetry-collector-contrib
Supported Telemetry
Overview
Configuration
Note: This receiver was renamed fromThe following settings are required:tcpchecktotcp_checkto match the snake_case naming convention. The deprecated component typetcpcheckis still accepted as an alias and will log a deprecation warning.
endpoint
collection_interval(default =60s): This receiver collects metrics on an interval. Valid time units arens,us(orµs),ms,s,m,h.
Example Configuration
Targets areMetrics
Details about the metrics produced by this receiver can be found in metadata.yamlMetrics
| Metric Name | Description | Unit | Type | Attributes |
|---|---|---|---|---|
✅ tcpcheck.duration | Measures the duration of TCP connection. | ms | Gauge | tcpcheck.endpoint |
✅ tcpcheck.error | Records errors occurring during TCP check. | {errors} | Counter | tcpcheck.endpoint, error.code |
✅ tcpcheck.status | 1 if the TCP client successfully connected, otherwise 0. | 1 | Gauge | tcpcheck.endpoint |
Attributes
| Attribute Name | Description | Type | Values |
|---|---|---|---|
error.code | Error code recorded during check | string | connection_refused, connection_timeout, invalid_endpoint, network_unreachable, unknown_error |
tcpcheck.endpoint | TCP endpoint | string |
Configuration
Example Configuration
Last generated: 2026-06-01