Comments (2)
I'm going to close this, since I don't believe there is any native ZFS property that exposes this relationship, and we would have to perform the same text substitution as the relabelling config above, which seems like a sensible enough workaround for anyone requiring this behaviour.
I could be convinced otherwise though, if there's a compelling use-case that the above relabelling doesn't solve.
from zfs_exporter.
Hi @cf-sewe you can get the filesystem
label if you configure the scraping in your prometheus configuration with relabeling:
- job_name: zfs_exporter
metrics_path: /metrics
static_configs:
- targets: [192.168.3.236:9134]
metric_relabel_configs:
- source_labels: ['name']
regex: ^([^@]*).*$
target_label: filesystem
replacement: ${1}
- source_labels: ['name']
regex: ^.*:.._(.*)$
target_label: snapshot_type
replacement: ${1}
from zfs_exporter.
Related Issues (20)
- Renormalized values are counterintuitive (case compressratio) HOT 6
- Support Health State SUSPENDED
- go.mod is missing /v2 version suffix HOT 3
- failed under supervisor HOT 2
- Exporter does not recover from problems calling the zpool binary HOT 4
- Feature Request: Allow for all permutations of configurations per each dataset HOT 1
- Export scrub/resilver status HOT 2
- [Question] grafana dashboard HOT 8
- Include Mountpoint HOT 2
- Question - Problems Adding Pools HOT 2
- Error parsing Pool fragmentation HOT 1
- Official container image for this exporter? HOT 2
- Feature request: Docker image HOT 1
- Inconsistent results with zfs list HOT 1
- Add more usedby properties HOT 1
- Improve documentation on installation and alerts
- context deadline exceeded HOT 2
- Get additional ZFS properties HOT 2
- Can we have more dataset properties? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zfs_exporter.