caarlos0 / speedtest-exporter

Exports speedtest-cli metrics in the prometheus format
Apache License 2.0
51 stars 7 forks source link

Flipped download vs upload in the code? #15

Open bjornfor opened 1 year ago

bjornfor commented 1 year ago

At https://github.com/caarlos0/speedtest-exporter/blob/main/collector/speedtest.go#L129-L130, it seems like upload and download is flipped?

Code snippet linked above:

    ch <- prometheus.MustNewConstMetric(c.uploadedBytes, prometheus.GaugeValue, result.Download.Bytes)
    ch <- prometheus.MustNewConstMetric(c.downloadedBytes, prometheus.GaugeValue, result.Upload.Bytes)