mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 07:57:13 +08:00
Add /v3/metrics (get) endpoint to list all known metrics
This commit is contained in:
@@ -13,8 +13,8 @@ type netCollector struct {
|
||||
func NewNetCollector() metric.Collector {
|
||||
c := &netCollector{}
|
||||
|
||||
c.rxDescr = metric.NewDesc("net_rx", "", []string{"interface"})
|
||||
c.txDescr = metric.NewDesc("net_tx", "", []string{"interface"})
|
||||
c.rxDescr = metric.NewDesc("net_rx", "Number of received bytes", []string{"interface"})
|
||||
c.txDescr = metric.NewDesc("net_tx", "Number of transmitted bytes", []string{"interface"})
|
||||
|
||||
return c
|
||||
}
|
||||
|
Reference in New Issue
Block a user