You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: coder-observability/templates/configmap-prometheus-alerts.yaml
+22-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ metadata:
4
4
name: metrics-alerts
5
5
namespace: {{ .Release.Namespace }}
6
6
data:
7
-
{{- $service := dict "service" "coder" -}}
7
+
{{- $service := dict "service" "coderd" -}}
8
8
9
9
{{- with .Values.global.coder.alerts.coderd }} {{/* start-section */}}
10
10
coderd.yaml: |-
@@ -104,6 +104,27 @@ data:
104
104
{{- end }}
105
105
{{- end }}
106
106
107
+
{{- with .groups.IneligiblePrebuilds }}
108
+
{{- $group := . }}
109
+
{{- if .enabled }}
110
+
- name: Coderd Ineligible Prebuilds
111
+
rules:
112
+
{{ $alert := "CoderdIneligiblePrebuilds" }}
113
+
{{- range $severity, $threshold := .thresholds }}
114
+
- alert: {{ $alert }}
115
+
expr: max by (template_name, preset_name) (coderd_prebuilds_running - coderd_prebuilds_eligible) > 0
116
+
for: {{ $group.delay }}
117
+
annotations:
118
+
summary: >
119
+
{{ `{{ $value }}` }} prebuilt workspace(s) are currently ineligible for claiming for the "{{ `{{ $labels.template_name }}` }}" template and "{{ `{{ $labels.preset_name }}` }}" preset.
120
+
This usually indicates that the agent has not started correctly, or is still running its startup scripts after an extended period of time.
0 commit comments