Documentation Index
Fetch the complete documentation index at: https://otel.fyi/llms.txt
Use this file to discover all available pages before exploring further.
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-20