@@ -145,7 +145,7 @@ func NewDiskCollectorOrDie(diskConfig *ssmtypes.DiskStatsConfig) *diskCollector
145
145
"Disk bytes used, in Bytes" ,
146
146
"Byte" ,
147
147
metrics .LastValue ,
148
- []string {deviceNameLabel , fstypeLabel , mountOptionLabel , stateLabel })
148
+ []string {deviceNameLabel , fsTypeLabel , mountOptionLabel , stateLabel })
149
149
if err != nil {
150
150
glog .Fatalf ("Error initializing metric for %q: %v" , metrics .DiskBytesUsedID , err )
151
151
}
@@ -278,8 +278,8 @@ func (dc *diskCollector) collect() {
278
278
deviceName := strings .TrimPrefix (partition .Device , "/dev/" )
279
279
fstype := partition .Fstype
280
280
opttypes := partition .Opts
281
- dc .mBytesUsed .Record (map [string ]string {deviceNameLabel : deviceName , fstypeLabel : fstype , mountOptionLabel : opttypes , stateLabel : "free" }, int64 (usageStat .Free ))
282
- dc .mBytesUsed .Record (map [string ]string {deviceNameLabel : deviceName , fstypeLabel : fstype , mountOptionLabel : opttypes , stateLabel : "used" }, int64 (usageStat .Used ))
281
+ dc .mBytesUsed .Record (map [string ]string {deviceNameLabel : deviceName , fsTypeLabel : fstype , mountOptionLabel : opttypes , stateLabel : "free" }, int64 (usageStat .Free ))
282
+ dc .mBytesUsed .Record (map [string ]string {deviceNameLabel : deviceName , fsTypeLabel : fstype , mountOptionLabel : opttypes , stateLabel : "used" }, int64 (usageStat .Used ))
283
283
}
284
284
285
285
}
0 commit comments