{
  "attributes": {
    "error.code": {
      "description": "Error code recorded during check",
      "enum": [
        "connection_refused",
        "connection_timeout",
        "invalid_endpoint",
        "network_unreachable",
        "unknown_error"
      ],
      "type": "string"
    },
    "tcpcheck.endpoint": {
      "description": "TCP endpoint",
      "type": "string"
    }
  },
  "description": "This receiver creates stats by connecting to a TCP server.",
  "display_name": "TCP Check Receiver",
  "distribution": "contrib",
  "ecosystem": "collector",
  "id": "contrib-tcpcheckreceiver",
  "metrics": {
    "tcpcheck.duration": {
      "attributes": [
        "tcpcheck.endpoint"
      ],
      "description": "Measures the duration of TCP connection.",
      "enabled": true,
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "ms"
    },
    "tcpcheck.error": {
      "attributes": [
        "error.code",
        "tcpcheck.endpoint"
      ],
      "description": "Records errors occurring during TCP check.",
      "enabled": true,
      "stability": "development",
      "sum": {
        "aggregation_temporality": "cumulative",
        "monotonic": true,
        "value_type": "int"
      },
      "unit": "{errors}"
    },
    "tcpcheck.status": {
      "attributes": [
        "tcpcheck.endpoint"
      ],
      "description": "1 if the TCP client successfully connected, otherwise 0.",
      "enabled": true,
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "1"
    }
  },
  "name": "tcpcheckreceiver",
  "repository": "opentelemetry-collector-contrib",
  "status": {
    "class": "receiver",
    "codeowners": {
      "active": [
        "atoulme",
        "michael-burt",
        "chengchuanpeng",
        "yanfeng1992"
      ]
    },
    "distributions": [
      "contrib"
    ],
    "stability": {
      "alpha": [
        "metrics"
      ]
    }
  },
  "type": "receiver"
}