Comments (4)
@neurodrone
Thanks! I hadn't heard re-label before. This is really a useful feature. I came out a working configuration.
scrape_configs:
- job_name: 'ceph_rgw_exporter'
relabel_configs:
- source_labels: ["cluster"]
replacement: "rgw"
action: replace
target_label: "clusters"
static_configs:
- targets: ['localhost:9128']
labels:
alias: ceph_rgw_exporter
- job_name: 'cephfs_exporter'
relabel_configs:
- source_labels: ["cluster"]
replacement: "cephfs"
action: replace
target_label: "clusters"
static_configs:
- targets: ['10.19.250.136:9128']
labels:
alias: cephfs_exporter
- job_name: 'ceph_rbd_exporter'
relabel_configs:
- source_labels: ["cluster"]
replacement: "rbd"
action: replace
target_label: "clusters"
static_configs:
- targets: ['10.19.250.132:9128']
labels:
alias: ceph_rbd_exporter
from ceph_exporter.
To note in our production clusters we are not using single ceph-exporter anymore. Each of our clusters have their own ceph-exporters. We have found this model much more simpler to manage and should resolve the issue you are facing as well.
from ceph_exporter.
@neurodrone
Thanks for your information, but I am still little confused. Do you mean each cluster has its own Prometheus?
By far, I also use separate ceph-exporter for different clusters too, and these three ceph-exporter deliver data to the same Prometheus. Although they are separated into jobs, in the Grafana dashboard, these data still cannot be differentiated.
I doodled a picture to show what the architecture of my environment. So I suppose you guys have different Prometheus server for different ceph cluster, right?
from ceph_exporter.
Thanks for the elaborate diagram, @blackpiglet! We have the exact setup - so multiple ceph-exporters, each per cluster and they are all scraped by a single prometheus (typically a unified global set of prometheus servers for fault-tolerance).
Since the instances that run ceph-exporter are distinct we can relabel the targets within (as seen here) the prometheus server config to persist the time-series separately for each cluster by adding a unique label for every ceph-exporter. That should give you the per-cluster breakdown you need to query. Let me know if this approach makes sense otherwise I can further elaborate.
from ceph_exporter.
Related Issues (20)
- ceph_osd_weight metric return REWEIGHT instead of WEIGHT HOT 4
- ceph_health_status_interp's status HOT 2
- can not build HOT 1
- does 2.0.7-luminous support ceph jewel ? HOT 1
- curl <host>:9128/metrics hangs HOT 9
- osdmap health details are not not found when monitoring ceph octopus with 3.0.0-nautilus HOT 5
- ceph_exporter gather error HOT 3
- Prometheus Exporters Hub by this repository! Thanks! :) HOT 1
- Add new DAEMON_OLD_VERSION flag to health_status_interp HOT 2
- Support OSD operations Latency for Nautilus release HOT 4
- activating TLS on exporter HOT 2
- Cannot connect to ceph cluster: permission denied HOT 6
- compile get error: "could not determine kind of name for C.rados_mgr_command" HOT 3
- add bucket sharks and obj nums metrics support HOT 1
- Pgs stats HOT 2
- add bucket usage collector HOT 4
- fatal error: rados/librados.h: No such file or directory HOT 1
- Add Docs Listing the Exported Metrics HOT 4
- Update image build workflow to tag images with git tags HOT 3
- go build failed v4.2.0 with go version go1.20.4 linux/amd6 HOT 5
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 ceph_exporter.