Coder Social home page Coder Social logo

Comments (2)

e00E avatar e00E commented on July 20, 2024 2

I agree that this is nice to have. The question is on what level this should happen. Currently etherbalance just retrieves balances and exports them as prometheus metrics. On the prometheus level we turn the balances into alerts. Currently this happens with one query that we have configured with a fixed cutoff.
I'd like to keep the alerting layer separate from etherbalance so I am wondering what a small change in etherbalance would be to facilitate that.
My first idea is that we could support a customizable "tag" for each address that we monitor. The tag is forwarded to the metrics. Then in the metrics we can have alerting rules based on the tag. Our current rule

(etherbalance_balance / (10^18)) < 4.0

could be turned into two rules

(etherbalance_balance{tag=solver} / (10^18)) < 4.0
(etherbalance_balance{tag=liquidity-bot} / (10^18)) < 0.5

from etherbalance.

fleupold avatar fleupold commented on July 20, 2024

I think generally it makes sense to annotate the metrics more generously. We are already tagging the metrics with the address, right? So it would be possible even in the current state to filter this alert by address (I agree having it based on tag would be more convenient).

from etherbalance.

Related Issues (5)

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.