Tcpcheck Receiver
contrib
Maintainers: @atoulme, @michael-burt, @chengchuanpeng, @yanfeng1992
Source: opentelemetry-collector-contrib
Supported Telemetry
Overview
Configuration
The following settings are required: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-04-13