-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add alertmanager inhibit rules #1925
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1925 +/- ##
============================================
+ Coverage 87.05% 87.73% +0.68%
- Complexity 1744 1822 +78
============================================
Files 315 319 +4
Lines 7731 8063 +332
Branches 740 814 +74
============================================
+ Hits 6730 7074 +344
+ Misses 772 744 -28
- Partials 229 245 +16
Continue to review full report at Codecov.
|
9c55a4b
to
c6ed080
Compare
477f95e
to
6951127
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, just some minor suggested changes
labels: | ||
{{ include "hedera-mirror-grpc.labels" . | nindent 4 }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
labels: | |
{{ include "hedera-mirror-grpc.labels" . | nindent 4 }} | |
labels: {{ include "hedera-mirror-grpc.labels" . | nindent 4 }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in all templates.
inhibitRules: | ||
{{- range $name, $rule := omit .Values.alertmanager.inhibitRules "enabled" }} | ||
{{- if $rule.enabled }} | ||
{{- $rule.matches | toYaml | nindent 4}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{{- $rule.matches | toYaml | nindent 4}} | |
{{- $rule.matches | toYaml | nindent 4 }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in all templates.
equal: | ||
- namespace | ||
- pod | ||
- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
@@ -141,11 +173,11 @@ readinessProbe: | |||
|
|||
resources: | |||
limits: | |||
cpu: 500m | |||
memory: 128Mi | |||
cpu: 1.8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, had these swapped with the importer resources. Fixed now.
@@ -3,20 +3,26 @@ grpc: | |||
ingress: | |||
middleware: | |||
enabled: true | |||
inhibitRules: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved.
- sourceMatch: | ||
- name: alertname | ||
regex: true | ||
value: (ImporterParseErrors) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: no need for a regex since it's just one value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@@ -110,6 +202,10 @@ prometheusRules: | |||
for: 1m | |||
labels: | |||
severity: critical | |||
application: hedera-mirror-importer | |||
type: BALANCE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added type
to a few of the rules where it can technically be inferred, but needs to be present to group in the inhibit rules without defining a separate rule.
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
7ddb2f6
to
c7e6a36
Compare
Fixed DCO issue |
SonarCloud Quality Gate failed. |
* Add a new alert to each service to check when pods are not ready * Add inhibit rules to each values.yaml to logically group alerts together * Add new alertmanagerconfig template to handle the new inhibit rules section * Update the mirror-node-common chart to read the new config Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
* Add a new alert to each service to check when pods are not ready * Add inhibit rules to each values.yaml to logically group alerts together * Add new alertmanagerconfig template to handle the new inhibit rules section * Update the mirror-node-common chart to read the new config Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Detailed description:
Add inhibit rules to the helm charts to ensure that alerts which could be triggered downstream from another alert are not fired. This will help to keep the alert channel less noisy.
Which issue(s) this PR fixes:
Fixes #1813
Special notes for your reviewer:
Checklist