Align Darwin disk stat names with Linux (#930)

Signed-off-by: Steve Kotsopoulos <sk@fywss.com>
This commit is contained in:
Steve Kotsopoulos 2018-05-02 05:32:55 -04:00 committed by Johannes 'fish' Ziemke
parent 24a28fcc9e
commit 84dc362b05
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ func NewDiskstatsCollector() (Collector, error) {
{ {
typedDesc: typedDesc{ typedDesc: typedDesc{
desc: prometheus.NewDesc( desc: prometheus.NewDesc(
prometheus.BuildFQName(namespace, diskSubsystem, "read_seconds_total"), prometheus.BuildFQName(namespace, diskSubsystem, "read_time_seconds_total"),
"The total number of seconds spent by all reads.", "The total number of seconds spent by all reads.",
diskLabelNames, diskLabelNames,
nil, nil,
@ -118,7 +118,7 @@ func NewDiskstatsCollector() (Collector, error) {
{ {
typedDesc: typedDesc{ typedDesc: typedDesc{
desc: prometheus.NewDesc( desc: prometheus.NewDesc(
prometheus.BuildFQName(namespace, diskSubsystem, "write_seconds_total"), prometheus.BuildFQName(namespace, diskSubsystem, "write_time_seconds_total"),
"This is the total number of seconds spent by all writes.", "This is the total number of seconds spent by all writes.",
diskLabelNames, diskLabelNames,
nil, nil,