Skip to content

Commit

Permalink
Compile netdev on dragonfly (#314)
Browse files Browse the repository at this point in the history
* Compile netdev on dragonfly

* Only run netdev bsd test on bsd

* Update README.md
  • Loading branch information
stuartnelson3 authored and brian-brazil committed Sep 27, 2016
1 parent f5a15ee commit ef1925d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ filesystem | Exposes filesystem statistics, such as disk space used. | FreeBSD,
loadavg | Exposes load average. | Darwin, Dragonfly, FreeBSD, Linux, NetBSD, OpenBSD, Solaris
mdadm | Exposes statistics about devices in `/proc/mdstat` (does nothing if no `/proc/mdstat` present). | Linux
meminfo | Exposes memory statistics. | FreeBSD, Linux
netdev | Exposes network interface statistics such as bytes transferred. | FreeBSD, Linux, OpenBSD
netdev | Exposes network interface statistics such as bytes transferred. | Dragonfly, FreeBSD, Linux, OpenBSD
netstat | Exposes network statistics from `/proc/net/netstat`. This is the same information as `netstat -s`. | Linux
stat | Exposes various statistics from `/proc/stat`. This includes CPU usage, boot time, forks and interrupts. | Linux
textfile | Exposes statistics read from local disk. The `--collector.textfile.directory` flag must be set. | _any_
Expand Down
1 change: 1 addition & 0 deletions collector/netdev_freebsd.go → collector/netdev_bsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// limitations under the License.

// +build !nonetdev
// +build freebsd dragonfly

package collector

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// +build !nonetdev
// +build freebsd dragonfly

package collector

import "testing"
Expand Down
2 changes: 1 addition & 1 deletion collector/netdev_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// limitations under the License.

// +build !nonetdev
// +build linux freebsd openbsd
// +build linux freebsd openbsd dragonfly

package collector

Expand Down

0 comments on commit ef1925d

Please sign in to comment.