TCP Check Receiver
OpenTelemetry Collector receiver · contrib distribution
This receiver creates stats by connecting to a TCP server.
- Component ID:
contrib-tcpcheckreceiver - Name:
tcpcheckreceiver - Type: receiver
- Distribution: contrib
- Repository:
opentelemetry-collector-contrib
Stability
| Level | Signals |
|---|---|
| alpha | metrics |
Metrics
| Metric | Type | Value type | Unit | Stability | Enabled | Attributes | Description |
|---|---|---|---|---|---|---|---|
tcpcheck.duration | gauge | int | ms | development | yes | tcpcheck.endpoint (string) | Measures the duration of TCP connection. |
tcpcheck.error | sum (monotonic) | int | {errors} | development | yes | error.code (string), tcpcheck.endpoint (string) | Records errors occurring during TCP check. |
tcpcheck.status | gauge | int | 1 | development | yes | tcpcheck.endpoint (string) | 1 if the TCP client successfully connected, otherwise 0. |
Attributes
| Attribute | Type | Description |
|---|---|---|
error.code | string | Error code recorded during check |
tcpcheck.endpoint | string | TCP endpoint |