Network

Description

Collects ping value, whether or not the PC is online and interfaces available.

Parameters

ParameterDescriptionTypeDefault
ping_addressIP address to test the ping tostr"8.8.8.8"
ping_timeoutTime in ms before ping times out. Offline if superior to itint5000

Schema

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "title": "Network",
    "description": "Network accessibility and information",
    "properties": {
        "ping": {
            "description": "Time to ping the host in ms",
            "type": "integer",
            "minimum": -1
        },
        "online": {
            "description": "If the pc is online",
            "type": "boolean"
        },
        "interfaces": {
            "description": "List of network interfaces",
            "type": "array",
            "items": {
                "type": "string"
            }
        }
    },
    "type": "object"
}

Measurement configuration

...
network:
  plugin: "dc_measurements/Network"
  topic_output: "/dc/measurement/network"
  tags: ["flb_stdout"]
  ping_address: 192.168.0.1
  ping_timeout: 500