Derek-K / telegraf-speedtest

Using official SpeedTest.net cli for telegraf
GNU General Public License v3.0
32 stars 10 forks source link

High bandwidth speed #4

Closed bluemanos closed 4 years ago

bluemanos commented 4 years ago

Does anybody have an issue with unnormal high bandwidth speed when using -f json-pretty option? image My ISP speed is ~350 Mbit and when i run speedtest-cli normally in a console then the speed is showing correctly. Somehow when the same speedtest is run by a telegraf then the speed is unnormal high :/

szymon@pihole:~$ /usr/bin/speedtest -f json-pretty --accept-license --accept-gdpr
{
    "type": "result",
    "timestamp": "2020-10-03T09:44:29Z",
    "ping": {
        "jitter": 2.302,
        "latency": 2.1179999999999999
    },
    "download": {
        "bandwidth": 41373801,
        "bytes": 546026600,
        "elapsed": 12507
    },
    "upload": {
        "bandwidth": 41633826,
        "bytes": 526115065,
        "elapsed": 11713
    },
    "packetLoss": 0,
    "isp": "DG-NET SA",
    "interface": {
        "internalIp": "192.168.XXX",
        "name": "enp4s0",
        "macAddr": "00:80:XXX",
        "isVpn": false,
        "externalIp": "185.XXX"
    },
    "server": {
        "id": 26007,
        "name": "Cyber Grota",
        "location": "Bedzin",
        "country": "Poland",
        "host": "speedtest2.cybergrota.com.pl",
        "port": 8080,
        "ip": "185.XXX"
    },
    "result": {
        "id": "50253d1e-4086-4ae7-b720-a9f46e265338",
        "url": "https://www.speedtest.net/result/c/50253d1e-4086-4ae7-b720-a9f46e265338"
    }
}
szymon@pihole:~$ /usr/bin/speedtest --accept-license --accept-gdpr

   Speedtest by Ookla

     Server: Cyber Grota - Bedzin (id = 26007)
        ISP: DG-NET SA
    Latency:     2.16 ms   (0.03 ms jitter)
   Download:   315.92 Mbps (data used: 457.5 MB)                               
     Upload:   334.77 Mbps (data used: 531.2 MB)                               
Packet Loss:     0.0%
 Result URL: https://www.speedtest.net/result/c/f6be277f-2cad-447e-882e-4d3886ab58a4
Derek-K commented 4 years ago

Download bandwidth: 41373801 Byte/sec -> 330990408 bits/sec -> ~ 315.66Mbps Upload bandwidth: 41633826 Byte/sec -> 333070608 bits/sec -> ~317.64Mbps

bluemanos commented 4 years ago

@Derek-K oh, that way. Thank you.