Giter Club home page Giter Club logo

Comments (4)

paulfantom avatar paulfantom commented on May 13, 2024

This alert has a misleading name as the whole purpose is to notify the operator when mysql is crash looping and not just restarting (restart is a normal thing and shouldn't be alerted on). In crashlooping scenario mysql_global_status_uptime will rise from 0 to some low value, but due to mysql restart it will be reset to 0 and the cycle will repeat. If the cycle repeats itself for longer time (for: 5m), then it should be of concern to the operator.

Essentially, crash looping mysql will cause a saw-tooth pattern on mysql_global_status_uptime where metric never goes 60 (set threshold).


Note: You should never alert on things that are normal to the operation of the application. So creating alerts that will always fire because application restarted once is a no-go.

from awesome-prometheus-alerts.

samber avatar samber commented on May 13, 2024

I agree with your comment @paulfantom, except for 1 thing:

I don't care if a simple API instance restarts. But in a 3 tier architecture, a MySQL short downtime can lead to a major outage. It should not be considered as "normal" and more investigations are advised.

from awesome-prometheus-alerts.

paulfantom avatar paulfantom commented on May 13, 2024

In such a scenario, info alert is fine, but not anything with higher severity, as it is something to help in troubleshooting. "Main" alert still should come from the application which has problems and not from MySQL server. Otherwise, this is alerting on cause and not symptom and as such, it is considered a bad practice.

from awesome-prometheus-alerts.

samber avatar samber commented on May 13, 2024

I removed the for parameter + set severity to info.

Closing.

from awesome-prometheus-alerts.

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.