-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(charts): sequencer prometheus rules (#1598)
## Summary Fixes prometheus rules and metrics templates for both `sequencer` and `sequencer-relayer` charts ## Background ServiceMonitors for alerting and monitoring is missing on sequencer-relayer chart ## Changes - adds service monitor and prometheus rules templating for sequencer-relayer - fixes sequencer app labels ## Testing locally, dusk-10 ## Metrics -enables metrics and alerts on sequencer, sequencer-relayer charts ## Related Issues closes #1597
- Loading branch information
1 parent
eced579
commit a9f5197
Showing
9 changed files
with
78 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{- if .Values.alerting.enabled -}} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
name: {{ include "sequencer-relayer.name" . }} | ||
{{- if .Values.alerting.prometheusRule.namespace }} | ||
namespace: {{ .Values.alerting.prometheusRule.namespace | quote }} | ||
{{- end }} | ||
labels: | ||
{{- include "sequencer-relayer.labels" . | nindent 4 }} | ||
{{- if .Values.alerting.prometheusRule.additionalLabels }} | ||
{{- toYaml .Values.alerting.prometheusRule.additionalLabels | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- if .Values.alerting.prometheusRule.rules }} | ||
groups: | ||
- name: {{ template "sequencer-relayer.name" . }} | ||
rules: {{- toYaml .Values.alerting.prometheusRule.rules | nindent 4 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
dependencies: | ||
- name: sequencer-relayer | ||
repository: file://../sequencer-relayer | ||
version: 0.12.1 | ||
digest: sha256:470368e9d1cbb0456ba3a198c42f708591454cc6638c9a0d9918828d898627b0 | ||
generated: "2024-09-10T11:55:38.765161-07:00" | ||
version: 0.12.2 | ||
digest: sha256:3ee234bbedc042030976130a12c0fe364ff171a40d341fec820c49720fef9378 | ||
generated: "2024-09-30T11:40:37.590749-04:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters