Comments (7)
(@stefanotorresi maybe we could think to don't raise an error if we have 0 collectors and just do nothing)
This is how it was before, and we deemed it was very unpredictable as a behaviour. If there are no services to introspect, then the exporter will fail outright so that the up
metric reports the failure; there is no point in having the exporter still running without exporting anything.
from ha_cluster_exporter.
@oxedions The exporter itself will report a metric exposing with the collector could collect the data or not: https://github.com/ClusterLabs/ha_cluster_exporter/blob/master/doc/metrics.md#ha_cluster_scrape_success. Also, if Prometheus cannot scrap some target, like the exporter is not reachable, it will also report a metric called UP (see: https://prometheus.io/docs/concepts/jobs_instances/). On both cases, you can create alerts based on these metrics.
from ha_cluster_exporter.
hi @oxedions nice question and valid remarks 👍
- by design the
ha_cluster_exporter
if pacemaker or any collector is down, it will not gather and expose the metrics.
This is
ha_cluster_exporter/ha_cluster_exporter.go
Line 122 in 8b8f9ce
we raise/error only if 0 collector are registered. (@stefanotorresi maybe we could think to don't raise an error if we have 0 collectors and just do nothing)
- regarding point 2 so basically if you have other components before the pacemaker collector is running, you should be able to do it.
Also in case if node 1 for some reason, right now the 2nd exporter can catch this
Let me know if it helps.
Dario
from ha_cluster_exporter.
Dear @MalloZup , Dear @diegoakechi , Dear @MalloZup ,
So I can monitor ha_cluster_scrape_success
, this is the value I was looking for.
By default, I start the ha_exporter at boot, and not corrosync/pacemaker, which is why I forked your service file.
I am doing that because the exporter, in our configuration, is expected to run anytime, even if nothing is exported (having nothing exported, i.e. ha_cluster_scrape_success = 0
but ha_cluster = up
is also an interesting value for us: means HA cluster is down for a reason, but exporter is still alive, so no need to worry about the exporter, only check HA).
Many thanks for these answers 😊
And many thanks for the exporter and the dashboard.
from ha_cluster_exporter.
Well, in fact we do start the ha_exporter in a clone resource now.
from ha_cluster_exporter.
I guess I can close this then. ✌️
from ha_cluster_exporter.
Yes, thanks a lot ! 😊
from ha_cluster_exporter.
Related Issues (20)
- Error when disabled all cluster nodes HOT 7
- sbd data is not exported if devices in SBD_DEVICE have an space after ;
- Support SSL/TLS connections HOT 1
- Sample Prometheus alerting rules HOT 1
- Pacemaker metrics not available for monitoring HOT 1
- Not able to install Latest 1.3.0 version for prometheus-ha_cluster_exporter HOT 4
- HA Cluster configuration sample is erroneous HOT 2
- regexp parsing corosync-cfgtool output will not work HOT 2
- get trouble with make && make install
- get trouble with start exporter HOT 1
- wrong default web-config file HOT 1
- No instance id inside export metrics HOT 1
- Dockerized ha_cluster_exporter: Missing Metrics and Collector Initialization Issues HOT 1
- Running as non-root user HOT 2
- kernel: Unknown VPD Code: 0x89 HOT 4
- Corosyc/Pacemaker metrics issue on one node in cluster HOT 5
- Unable to collect DRBD V9.26.0 HOT 1
- Need help with building the rpm for RHEL 9 and derivatives HOT 1
- Not exporting all the metrics HOT 1
- unmarshal errors when using sample ha_cluster_exporter/ha_cluster_exporter.yaml HOT 1
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 ha_cluster_exporter.