influxdata / influxdata/telegraf
Add zpool state for zfs plugin on Linux
Open
feature request
- Dominant language
- Go
- Stars
- 17.8k
- Forks
- 5.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 161
Description
## Feature Request
The state of the zpool is available in /proc/spl/kstat/zfs//state. It would be great to read this state and send it over to InfluxDB.
Example:
```
# cat /proc/spl/kstat/zfs/rpool/state
ONLINE
```
### Use case:
Would like to set alerts in InfluxDB when a zpool gets degraded
Contributor guide
Research direction
Start at the Telegraf zfs plugin entry point and inspect how it reads /proc/spl/kstat/zfs/. Add collection of the pool's state for sending to InfluxDB, using the ONLINE example as a reference. Done means the zpool state is exposed by the plugin and degraded pools can be identified for alerts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, linux
- Domain
- devops, observability-sre
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100