Skip to content

Commit

Permalink
Fix formatting in net plugin docs (influxdata#4818)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas17 authored and danielnelson committed Oct 6, 2018
1 parent 25d40c2 commit 3579d1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/net/NET_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Under Linux the system wide protocol metrics have the interface=all tag.

### Sample Queries:

You can use the following query to get the upload/download traffic rate per second for all interfaces in the last hour. The query uses the (derivative function)[https://docs.influxdata.com/influxdb/v1.2/query_language/functions#derivative] which calculates the rate of change between subsequent field values.
You can use the following query to get the upload/download traffic rate per second for all interfaces in the last hour. The query uses the [derivative function](https://docs.influxdata.com/influxdb/v1.2/query_language/functions#derivative) which calculates the rate of change between subsequent field values.

```
SELECT derivative(first(bytes_recv), 1s) as "download bytes/sec", derivative(first(bytes_sent), 1s) as "upload bytes/sec" FROM net WHERE time > now() - 1h AND interface != 'all' GROUP BY time(10s), interface fill(0);
Expand Down

0 comments on commit 3579d1d

Please sign in to comment.