node_exporter/vendor/github.com/ema/qdisc
Ben Kochie becca1275c
Convert to Go modules (#1178)
* Convert to Go modules

* Update promu config.
* Convert to Go modules.
* Update vendoring.
* Update Makefile.common.
* Update circleci config.
* Use Prometheus release tar for promtool.
* Fixup unpack

* Use temp dir for unpacking tools.
* Use BSD compatible tar command.
* OpenBSD mkdir doesn't support `-v`.

Signed-off-by: Ben Kochie <superq@gmail.com>
2018-11-30 14:01:20 +01:00
..
.travis.yml Convert to Go modules (#1178) 2018-11-30 14:01:20 +01:00
LICENSE.md Add qdisc collector for Linux (#580) 2017-05-23 11:55:50 +02:00
Makefile Add qdisc collector for Linux (#580) 2017-05-23 11:55:50 +02:00
README.md Add qdisc collector for Linux (#580) 2017-05-23 11:55:50 +02:00
get.go Fix panic by updating github.com/ema/qdisc dependency (#778) 2018-01-04 12:13:02 +01:00

README.md

qdisc Build Status

Package qdisc allows to get queuing discipline information via netlink, similarly to what tc -s qdisc show does.

Example usage

package main

import (
    "fmt"

    "github.com/ema/qdisc"
)

func main() {
    info, err := qdisc.Get()

    if err == nil {
        for _, msg := range info {
            fmt.Printf("%+v\n", msg)
        }
    }
}