Giter Club home page Giter Club logo

Comments (7)

stefanotorresi avatar stefanotorresi commented on July 19, 2024 2

(@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.

diegoakechi avatar diegoakechi commented on July 19, 2024 1

@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.

MalloZup avatar MalloZup commented on July 19, 2024

hi @oxedions nice question and valid remarks 👍

  1. by design the ha_cluster_exporter if pacemaker or any collector is down, it will not gather and expose the metrics.

This is

pacemakerCollector, err := pacemaker.NewCollector(

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)

  1. 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.

oxedions avatar oxedions commented on July 19, 2024

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.

btravouillon avatar btravouillon commented on July 19, 2024

Well, in fact we do start the ha_exporter in a clone resource now.

from ha_cluster_exporter.

stefanotorresi avatar stefanotorresi commented on July 19, 2024

I guess I can close this then. ✌️

from ha_cluster_exporter.

oxedions avatar oxedions commented on July 19, 2024

Yes, thanks a lot ! 😊

from ha_cluster_exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.