|
|
@ -61,8 +61,7 @@ func init() { |
|
|
|
Factories["tcpstat"] = NewTCPStatCollector |
|
|
|
Factories["tcpstat"] = NewTCPStatCollector |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// NewTCPStatCollector takes a returns
|
|
|
|
// NewTCPStatCollector returns a new Collector exposing network stats.
|
|
|
|
// a new Collector exposing network stats.
|
|
|
|
|
|
|
|
func NewTCPStatCollector() (Collector, error) { |
|
|
|
func NewTCPStatCollector() (Collector, error) { |
|
|
|
return &tcpStatCollector{ |
|
|
|
return &tcpStatCollector{ |
|
|
|
desc: typedDesc{prometheus.NewDesc( |
|
|
|
desc: typedDesc{prometheus.NewDesc( |
|
|
|