mirror of
https://github.com/datarhei/core.git
synced 2025-10-04 07:37:33 +08:00
Add /v3/metrics (get) endpoint to list all known metrics
This commit is contained in:
@@ -17,8 +17,8 @@ func NewDiskCollector(path string) metric.Collector {
|
||||
path: path,
|
||||
}
|
||||
|
||||
c.totalDescr = metric.NewDesc("disk_total", "", []string{"path"})
|
||||
c.usageDescr = metric.NewDesc("disk_usage", "", []string{"path"})
|
||||
c.totalDescr = metric.NewDesc("disk_total", "Total size of the disk in bytes", []string{"path"})
|
||||
c.usageDescr = metric.NewDesc("disk_usage", "Number of used bytes on the disk", []string{"path"})
|
||||
|
||||
return c
|
||||
}
|
||||
|
Reference in New Issue
Block a user