Skip to content

Commit

Permalink
fix: fix copy and paste errors when accessing dataset properties
Browse files Browse the repository at this point in the history
  • Loading branch information
riyad authored and pdf committed Aug 3, 2021
1 parent 97fe060 commit c0fc6b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions collector/dataset.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (c *datasetCollector) updateDatasetMetrics(ch chan<- metric, pool *zfs.Zpoo
prometheus: prometheus.MustNewConstMetric(
c.usedByDatasetBytes.prometheus,
prometheus.GaugeValue,
float64(dataset.Avail),
float64(dataset.Usedbydataset),
labels...,
),
}
Expand All @@ -140,7 +140,7 @@ func (c *datasetCollector) updateDatasetMetrics(ch chan<- metric, pool *zfs.Zpoo
prometheus: prometheus.MustNewConstMetric(
c.quotaBytes.prometheus,
prometheus.GaugeValue,
float64(dataset.Avail),
float64(dataset.Quota),
labels...,
),
}
Expand All @@ -150,7 +150,7 @@ func (c *datasetCollector) updateDatasetMetrics(ch chan<- metric, pool *zfs.Zpoo
prometheus: prometheus.MustNewConstMetric(
c.volumeSizeBytes.prometheus,
prometheus.GaugeValue,
float64(dataset.Avail),
float64(dataset.Volsize),
labels...,
),
}
Expand Down

0 comments on commit c0fc6b2

Please sign in to comment.