Skip to content

Commit

Permalink
Merge pull request influxdata#231 from lbeier/patch-1
Browse files Browse the repository at this point in the history
Removing unnecessary option and fixing conversion
  • Loading branch information
xe-nvdk authored Feb 10, 2021
2 parents 01db6b9 + 1704cab commit 0bde62d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions speedtest/speedtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ spec:
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "exec_speedtest")
|> filter(fn: (r) => r["_field"] == "download_bandwidth")
|> map(fn: (r) => ({ r with _value: r._value / 100000.0 }))
|> map(fn: (r) => ({ r with _value: r._value / 125000.0 }))
|> yield(name: "last")
shade: true
suffix: ' Mb/s'
Expand Down Expand Up @@ -236,7 +236,7 @@ spec:
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "exec_speedtest")
|> filter(fn: (r) => r["_field"] == "upload_bandwidth")
|> map(fn: (r) => ({ r with _value: r._value / 100000.0 }))
|> map(fn: (r) => ({ r with _value: r._value / 125000.0 }))
|> yield(name: "last")
shade: true
suffix: ' Mb/s'
Expand Down Expand Up @@ -280,7 +280,7 @@ spec:
[[inputs.exec]]
## Commands array
commands = ["speedtest --format=json-pretty -u Mbps"]
commands = ["speedtest --format=json-pretty"]
## Timeout for each command to complete.
timeout = "90s"
Expand All @@ -292,4 +292,4 @@ spec:
## Each data format has its own unique set of configuration options, read
## more about them here:
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
data_format = "json"
data_format = "json"

0 comments on commit 0bde62d

Please sign in to comment.