Do not export the filesystem type pattern

This commit is contained in:
Sharif Nassar 2016-06-06 11:10:50 -07:00
parent bf88b6ee0f
commit f0630d5cbb
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ func init() {
func NewFilesystemCollector() (Collector, error) { func NewFilesystemCollector() (Collector, error) {
subsystem := "filesystem" subsystem := "filesystem"
mountPointPattern := regexp.MustCompile(*ignoredMountPoints) mountPointPattern := regexp.MustCompile(*ignoredMountPoints)
FSTypesPattern := regexp.MustCompile(*ignoredFSTypes) filesystemsTypesPattern := regexp.MustCompile(*ignoredFSTypes)
sizeDesc := prometheus.NewDesc( sizeDesc := prometheus.NewDesc(
prometheus.BuildFQName(Namespace, subsystem, "size"), prometheus.BuildFQName(Namespace, subsystem, "size"),
@ -104,7 +104,7 @@ func NewFilesystemCollector() (Collector, error) {
return &filesystemCollector{ return &filesystemCollector{
ignoredMountPointsPattern: mountPointPattern, ignoredMountPointsPattern: mountPointPattern,
ignoredFSTypesPattern: FSTypesPattern, ignoredFSTypesPattern: filesystemsTypesPattern,
sizeDesc: sizeDesc, sizeDesc: sizeDesc,
freeDesc: freeDesc, freeDesc: freeDesc,
availDesc: availDesc, availDesc: availDesc,