Open skyrocknroll opened 2 years ago
# # Install speedtest cli from SpeedTest.net first # https://www.speedtest.net/apps/cli # # And then run speedtest once to accept the license # [[inputs.exec]] commands = ["/usr/local/bin/speedtest --accept-gdpr --accept-license -f json"] timeout = "1m" interval = "2m" data_format = "json_v2" [[inputs.exec.json_v2]] measurement_name = "speedtest" [[inputs.exec.json_v2.tag]] path = "server.id" rename = "server_id" [[inputs.exec.json_v2.tag]] path = "server.name" rename = "server_name" [[inputs.exec.json_v2.tag]] path = "server.location" rename = "server_location" [[inputs.exec.json_v2.tag]] path = "interface.externalIp" rename = "interface_externalIp" [[inputs.exec.json_v2.tag]] path = "server.name" rename = "server_name" [[inputs.exec.json_v2.tag]] path = "server.name" rename = "server_name" [[inputs.exec.json_v2.field]] path = "packetLoss" type = "int" [[inputs.exec.json_v2.field]] path = "ping.jitter" type = "float" rename = "jitter" [[inputs.exec.json_v2.field]] path = "ping.latency" type = "float" rename = "latency" [[inputs.exec.json_v2.field]] path = "ping.latency" type = "float" rename = "latency" [[inputs.exec.json_v2.field]] path = "download.bandwidth" type = "int" rename = "download_bandwidth_speed" [[inputs.exec.json_v2.field]] path = "download.elapsed" type = "int" rename = "download_time_elapsed" [[inputs.exec.json_v2.field]] path = "download.bytes" type = "int" rename = "download_used_bytes" [[inputs.exec.json_v2.field]] path = "upload.bandwidth" type = "int" rename = "upload_bandwidth_speed" [[inputs.exec.json_v2.field]] path = "upload.elapsed" type = "int" rename = "upload_time_elapsed" [[inputs.exec.json_v2.field]] path = "upload.bytes" type = "int" rename = "upload_used_bytes"