Skip to content

Commit

Permalink
Fix filesystem collector defaults on darwin / Mac OS (#819)
Browse files Browse the repository at this point in the history
* Fix darwin filesystem collector defaults

* Changelog update
  • Loading branch information
eamonryan authored Aug 12, 2021
1 parent 4b02ed7 commit 04762b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
to be a member of the adm and systemd-journal groups. This will allow logs to
read from journald and /var/log by default. (@rfratto)

- [BUGFIX] Fix collecting filesystem metrics on Mac OS (darwin) in the `node_exporter` integration default config. (@eamonryan)

- [CHANGE] Breaking change: reduced verbosity of tracing autologging
by not logging `STATUS_CODE_UNSET` status codes. (@mapno)

Expand Down
2 changes: 1 addition & 1 deletion pkg/integrations/node_exporter/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func init() {
case "linux":
DefaultConfig.FilesystemIgnoredMountPoints = "^/(dev|proc|sys|var/lib/docker/.+)($|/)"
DefaultConfig.FilesystemIgnoredFSTypes = "^(autofs|binfmt_misc|bpf|cgroup2?|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|iso9660|mqueue|nsfs|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|selinuxfs|squashfs|sysfs|tracefs)$"
case "freebsd", "netbsd", "openbsd":
case "freebsd", "netbsd", "openbsd", "darwin":
DefaultConfig.FilesystemIgnoredMountPoints = "^/(dev)($|/)"
DefaultConfig.FilesystemIgnoredFSTypes = "^devfs$"
}
Expand Down

0 comments on commit 04762b7

Please sign in to comment.