Skip to content

Commit a0120ac

Browse files
committed
chore: correct gorelease config
Signed-off-by: Oliver Bähler <[email protected]>
1 parent 5c1aa28 commit a0120ac

File tree

4 files changed

+42
-46
lines changed

4 files changed

+42
-46
lines changed

charts/cortex-proxy/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ The following Values are available for this chart.
107107
| monitoring.enabled | bool | `false` | Enable Monitoring of the Operator |
108108
| monitoring.rules.annotations | object | `{}` | Assign additional Annotations |
109109
| monitoring.rules.enabled | bool | `true` | Enable deployment of PrometheusRules |
110-
| monitoring.rules.groups | list | `[{"name":"TranslatorAlerts","rules":[{"alert":"TranslatorNotReady","annotations":{"description":"The Translator {{ $labels.name }} has been in a NotReady state for over 5 minutes.","summary":"Translator {{ $labels.name }} is not ready"},"expr":"cca_translator_condition{status=\"NotReady\"} == 1","for":"5m","labels":{"severity":"warning"}}]}]` | Prometheus Groups for the rule |
110+
| monitoring.rules.groups | list | `[{"alert":"CortexProxyTooMany500s","annotations":{"description":"Too many 5XXs","summary":"More than 5% of all requests returned 5XX, this requires your attention"},"expr":"100 * ( sum( timeseries_request_duration_seconds{code=~\"5.+\"} ) / sum(timeseries_request_duration_seconds) ) > 5","for":"5m","labels":{"severity":"warning"}},{"alert":"CortexProxyTooMany400s","annotations":{"description":"Too many 4XXs","summary":"More than 5% of all requests returned 4XX, this requires your attention"},"expr":"100 * ( sum( timeseries_request_duration_seconds{status=~\"4.+\"} ) / sum(timeseries_request_duration_seconds) ) > 5","for":"5m","labels":{"severity":"warning"}}]` | Prometheus Groups for the rule |
111111
| monitoring.rules.labels | object | `{}` | Assign additional labels |
112112
| monitoring.rules.namespace | string | `""` | Install the rules into a different Namespace, as the monitoring stack one (default: the release one) |
113113
| monitoring.serviceMonitor.annotations | object | `{}` | Assign additional Annotations |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
image:
2+
pullPolicy: Never

charts/cortex-proxy/values.schema.json

+23-34
Original file line numberDiff line numberDiff line change
@@ -185,44 +185,33 @@
185185
"groups": {
186186
"items": {
187187
"properties": {
188-
"name": {
188+
"alert": {
189189
"type": "string"
190190
},
191-
"rules": {
192-
"items": {
193-
"properties": {
194-
"alert": {
195-
"type": "string"
196-
},
197-
"annotations": {
198-
"properties": {
199-
"description": {
200-
"type": "string"
201-
},
202-
"summary": {
203-
"type": "string"
204-
}
205-
},
206-
"type": "object"
207-
},
208-
"expr": {
209-
"type": "string"
210-
},
211-
"for": {
212-
"type": "string"
213-
},
214-
"labels": {
215-
"properties": {
216-
"severity": {
217-
"type": "string"
218-
}
219-
},
220-
"type": "object"
221-
}
191+
"annotations": {
192+
"properties": {
193+
"description": {
194+
"type": "string"
222195
},
223-
"type": "object"
196+
"summary": {
197+
"type": "string"
198+
}
224199
},
225-
"type": "array"
200+
"type": "object"
201+
},
202+
"expr": {
203+
"type": "string"
204+
},
205+
"for": {
206+
"type": "string"
207+
},
208+
"labels": {
209+
"properties": {
210+
"severity": {
211+
"type": "string"
212+
}
213+
},
214+
"type": "object"
226215
}
227216
},
228217
"type": "object"

charts/cortex-proxy/values.yaml

+16-11
Original file line numberDiff line numberDiff line change
@@ -220,17 +220,22 @@ monitoring:
220220
annotations: {}
221221
# -- Prometheus Groups for the rule
222222
groups:
223-
- name: TranslatorAlerts
224-
rules:
225-
- alert: TranslatorNotReady
226-
expr: cca_translator_condition{status="NotReady"} == 1
227-
for: 5m
228-
labels:
229-
severity: warning
230-
annotations:
231-
summary: "Translator {{ $labels.name }} is not ready"
232-
description: "The Translator {{ $labels.name }} has been in a NotReady state for over 5 minutes."
233-
223+
- alert: CortexProxyTooMany500s
224+
expr: 100 * ( sum( timeseries_request_duration_seconds{code=~"5.+"} ) / sum(timeseries_request_duration_seconds) ) > 5
225+
for: 5m
226+
labels:
227+
severity: warning
228+
annotations:
229+
description: Too many 5XXs
230+
summary: More than 5% of all requests returned 5XX, this requires your attention
231+
- alert: CortexProxyTooMany400s
232+
expr: 100 * ( sum( timeseries_request_duration_seconds{status=~"4.+"} ) / sum(timeseries_request_duration_seconds) ) > 5
233+
for: 5m
234+
labels:
235+
severity: warning
236+
annotations:
237+
description: Too many 4XXs
238+
summary: More than 5% of all requests returned 4XX, this requires your attention
234239
# ServiceMonitor
235240
serviceMonitor:
236241
# -- Enable ServiceMonitor

0 commit comments

Comments
 (0)