TCP Health

Description

Collects status of a TCP server.

Parameters

ParameterDescriptionTypeDefault
nameAlias to give to the TCP ServerstrN/A (Mandatory)
hostName of the target host or IP address to checkstr"127.0.0.1" (Optional)
portTCP port where to perform the connection check.int(>0 <65536)80 (Optional)

Schema

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "title": "TCP Health",
    "description": "Status of a TCP server",
    "properties": {
        "host": {
            "description": "Server hostname",
            "type": "string"
        },
        "port": {
            "description": "Port number",
            "type": "integer",
            "minimum": 1,
            "maximum": 65536
        },
        "server_name": {
            "description": "Time the system has been up",
            "type": "string"
        }
    },
    "type": "object"
}

Measurement configuration

...
tcp_health:
  plugin: "dc_measurements/TCPHealth"
  topic_output: "/dc/measurement/minio_health"
  group_key: "minio_health"
  tags: ["flb_stdout"]
  host: "127.0.0.1"
  port: 9000
  name: "minio_api"