Merge pull request #480 from prometheus/grobie/gosimple
Simplify go code
This commit is contained in:
commit
195b4d596c
10 changed files with 16 additions and 17 deletions
|
|
@ -87,7 +87,7 @@ func (c *zfsCollector) constSysctlMetric(subsystem string, sysctl zfsSysctl, val
|
|||
|
||||
return prometheus.MustNewConstMetric(
|
||||
prometheus.NewDesc(
|
||||
prometheus.BuildFQName(Namespace, string(subsystem), metricName),
|
||||
prometheus.BuildFQName(Namespace, subsystem, metricName),
|
||||
string(sysctl),
|
||||
nil,
|
||||
nil,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue