You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: collector/qdisc_linux.go
+23-10Lines changed: 23 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ package collector
18
18
19
19
import (
20
20
"encoding/json"
21
+
"fmt"
21
22
"io/ioutil"
22
23
"path/filepath"
23
24
@@ -28,18 +29,21 @@ import (
28
29
)
29
30
30
31
typeqdiscStatCollectorstruct {
31
-
bytestypedDesc
32
-
packetstypedDesc
33
-
dropstypedDesc
34
-
requeuestypedDesc
35
-
overlimitstypedDesc
36
-
qlengthtypedDesc
37
-
backlogtypedDesc
38
-
logger log.Logger
32
+
logger log.Logger
33
+
deviceFilterdeviceFilter
34
+
bytestypedDesc
35
+
packetstypedDesc
36
+
dropstypedDesc
37
+
requeuestypedDesc
38
+
overlimitstypedDesc
39
+
qlengthtypedDesc
40
+
backlogtypedDesc
39
41
}
40
42
41
43
var (
42
-
collectorQdisc=kingpin.Flag("collector.qdisc.fixtures", "test fixtures to use for qdisc collector end-to-end testing").Default("").String()
44
+
collectorQdisc=kingpin.Flag("collector.qdisc.fixtures", "test fixtures to use for qdisc collector end-to-end testing").Default("").String()
45
+
collectorQdiskDeviceInclude=kingpin.Flag("collector.qdisk.device-include", "Regexp of qdisk devices to include (mutually exclusive to device-exclude).").String()
46
+
collectorQdiskDeviceExclude=kingpin.Flag("collector.qdisk.device-exclude", "Regexp of qdisk devices to exclude (mutually exclusive to device-include).").String()
43
47
)
44
48
45
49
funcinit() {
@@ -48,6 +52,10 @@ func init() {
48
52
49
53
// NewQdiscStatCollector returns a new Collector exposing queuing discipline statistics.
0 commit comments