Comments (4)
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.
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.
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.
I removed the for
parameter + set severity
to info
.
Closing.
from awesome-prometheus-alerts.
Related Issues (20)
- `RedisOutOfConfiguredMaxmemory` for Redis that is solely used for cache? HOT 4
- Not working queries HOT 4
- Awesome Prometheus alerts
- Create releases HOT 4
- Add alerting rule for the metric: node_filesystem_device_error HOT 3
- customize nodeexporter rules for some servers HOT 1
- 7.2.1. Loki process too many restarts label HOT 1
- Make alert description suffix customizable
- Invalid PostgresqlTooManyConnections HOT 1
- KubernetesNodeOutOfPodCapacity fails when multiple replicas of kube-state-metrics
- Broken on iOS?
- Adjust "Kubernetes Volume full in four days" query? HOT 2
- Node-exporter option has been renamed HOT 1
- Rule "Host RAID array got inactive" has misleading description HOT 1
- flux alerts HOT 3
- changed Kernel info breaks querie(s) HOT 1
- Rule "Host out of inodes" triggers false positive with FAT16 on FreeBSD HOT 6
- Host Memory underutilized uses a `rate` on the `node_memory_MemAvailable_bytes` gauge
- Need to fix use of deprecated apiserver_request_latencies_bucket metric HOT 1
- HostFilesystemDeviceError should use `for: 2m` 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 awesome-prometheus-alerts.