-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(node): zfs monitor and grafana ui #559
Open
waitingsong
wants to merge
5
commits into
pgsty:main
Choose a base branch
from
waitingsong:zfs-monitor
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5e92d64
to
2be8d70
Compare
cef6110
to
9fb1852
Compare
## Installation Add parameters: - `zfs_exporter_enabled`: setup zfs_exporter on this node, false by default - `zfs_exporter_version`: current `3.8.1` - `zfs_exporter_port`: zfs exporter listen port, 9134 by default - `zfs_exporter_options`: see "/roles/node_monitor/defaults/main.yml" ## Prometheus Add [node_exporter] (forked from [pdf-node_exporter]) with more metrics: - `node:zfs:pool_metrics` - `node:zfs:dataset_metrics` Add alert rules: - `ZPoolDegraded` - `ZPoolFaulted` - `ZPoolOffline` - `ZPoolUnavail` - `ZPoolRemoved` - `ZPoolSuspended` - `ZPoolReadonly` - `ZPoolSpaceFull` - `ZDatasetSpaceFull` Update alert rule: - `NodeFsSpaceFull` with `fstype!="zfs"` ## Grafana Add panels: - [node-zfs.json] - list ZFS Pools and Datasets - unhealthy pool list fisrt - ability search with `Node ID`, `Pool`, `Dataset` - alert summary about zfs Update panels: - [node-overview.json](http://g.pigsty/d/node-overview/node-overview) - add `ZFS Pools` Row - unhealthy pool list fisrt - [node-alert.json](http://g.pigsty/d/node-alert/node-alert) - show zfs alerts - cell link to [node-overview.json] page with pool name and/or dataset name filter [node_exporter]: https://github.com/waitingsong/zfs_exporter [pdf-node_exporter]: https://github.com/pdf/zfs_exporter [node-overview.json]: http://g.pigsty/d/node-overview/node-overview [node-zfs.json]: http://g.pigsty/d/zfs-overview/node-zfs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat(node): zfs monitor and grafana ui
Installation
Add parameters:
zfs_exporter_enabled
: setup zfs_exporter on this node,false
by defaultzfs_exporter_version
: current3.8.1
zfs_exporter_port
: zfs exporter listen port,9134
by defaultzfs_exporter_options
: see "/roles/node_monitor/defaults/main.yml"Prometheus
Add node_exporter (forked from pdf-node_exporter) with more metrics:
node:zfs:pool_metrics
node:zfs:dataset_metrics
Add alert rules:
ZPoolDegraded
ZPoolFaulted
ZPoolOffline
ZPoolUnavail
ZPoolRemoved
ZPoolSuspended
ZPoolReadonly
ZPoolSpaceFull
ZDatasetSpaceFull
Update alert rule:
NodeFsSpaceFull
withfstype!="zfs"
Grafana
Add panels:
Node ID
,Pool
,Dataset
Update panels:
ZFS Pools
Row