Compile netdev on dragonfly (#314)

* Compile netdev on dragonfly

* Only run netdev bsd test on bsd

* Update README.md
This commit is contained in:
stuart nelson 2016-09-27 22:44:13 +02:00 committed by Brian Brazil
parent f5a15ee404
commit ef1925db7d
4 changed files with 6 additions and 2 deletions

View file

@ -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_

View file

@ -12,6 +12,7 @@
// limitations under the License.
// +build !nonetdev
// +build freebsd dragonfly
package collector

View file

@ -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"

View file

@ -12,7 +12,7 @@
// limitations under the License.
// +build !nonetdev
// +build linux freebsd openbsd
// +build linux freebsd openbsd dragonfly
package collector