Skip to content

Commit a758b9f

Browse files
committed
enable metrics to prevent segfault
Signed-off-by: Jeffrey Sica <me@jeefy.dev>
1 parent 762d705 commit a758b9f

File tree

7 files changed

+995
-0
lines changed

7 files changed

+995
-0
lines changed

ci/cluster/oci-arm64/runners/16cpu-64gb/install.yaml

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,148 @@ spec:
151151
githubConfigSecret: github-arc-secret
152152
maxRunners: 100
153153
minRunners: 1
154+
listenerMetrics:
155+
counters:
156+
gha_started_jobs_total:
157+
labels:
158+
["repository", "organization", "enterprise", "job_name", "event_name"]
159+
gha_completed_jobs_total:
160+
labels:
161+
[
162+
"repository",
163+
"organization",
164+
"enterprise",
165+
"job_name",
166+
"event_name",
167+
"job_result",
168+
]
169+
gauges:
170+
gha_assigned_jobs:
171+
labels: ["name", "namespace", "repository", "organization", "enterprise"]
172+
gha_running_jobs:
173+
labels: ["name", "namespace", "repository", "organization", "enterprise"]
174+
gha_registered_runners:
175+
labels: ["name", "namespace", "repository", "organization", "enterprise"]
176+
gha_busy_runners:
177+
labels: ["name", "namespace", "repository", "organization", "enterprise"]
178+
gha_min_runners:
179+
labels: ["name", "namespace", "repository", "organization", "enterprise"]
180+
gha_max_runners:
181+
labels: ["name", "namespace", "repository", "organization", "enterprise"]
182+
gha_desired_runners:
183+
labels: ["name", "namespace", "repository", "organization", "enterprise"]
184+
gha_idle_runners:
185+
labels: ["name", "namespace", "repository", "organization", "enterprise"]
186+
histograms:
187+
gha_job_startup_duration_seconds:
188+
labels:
189+
["repository", "organization", "enterprise", "job_name", "event_name"]
190+
buckets:
191+
[
192+
0.01,
193+
0.05,
194+
0.1,
195+
0.5,
196+
1.0,
197+
2.0,
198+
3.0,
199+
4.0,
200+
5.0,
201+
6.0,
202+
7.0,
203+
8.0,
204+
9.0,
205+
10.0,
206+
12.0,
207+
15.0,
208+
18.0,
209+
20.0,
210+
25.0,
211+
30.0,
212+
40.0,
213+
50.0,
214+
60.0,
215+
70.0,
216+
80.0,
217+
90.0,
218+
100.0,
219+
110.0,
220+
120.0,
221+
150.0,
222+
180.0,
223+
210.0,
224+
240.0,
225+
300.0,
226+
360.0,
227+
420.0,
228+
480.0,
229+
540.0,
230+
600.0,
231+
900.0,
232+
1200.0,
233+
1800.0,
234+
2400.0,
235+
3000.0,
236+
3600.0,
237+
]
238+
gha_job_execution_duration_seconds:
239+
labels:
240+
[
241+
"repository",
242+
"organization",
243+
"enterprise",
244+
"job_name",
245+
"event_name",
246+
"job_result",
247+
]
248+
buckets:
249+
[
250+
0.01,
251+
0.05,
252+
0.1,
253+
0.5,
254+
1.0,
255+
2.0,
256+
3.0,
257+
4.0,
258+
5.0,
259+
6.0,
260+
7.0,
261+
8.0,
262+
9.0,
263+
10.0,
264+
12.0,
265+
15.0,
266+
18.0,
267+
20.0,
268+
25.0,
269+
30.0,
270+
40.0,
271+
50.0,
272+
60.0,
273+
70.0,
274+
80.0,
275+
90.0,
276+
100.0,
277+
110.0,
278+
120.0,
279+
150.0,
280+
180.0,
281+
210.0,
282+
240.0,
283+
300.0,
284+
360.0,
285+
420.0,
286+
480.0,
287+
540.0,
288+
600.0,
289+
900.0,
290+
1200.0,
291+
1800.0,
292+
2400.0,
293+
3000.0,
294+
3600.0,
295+
]
154296
listenerTemplate:
155297
spec:
156298
containers:

ci/cluster/oci-arm64/runners/2cpu-8gb/install.yaml

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,148 @@ spec:
151151
githubConfigSecret: github-arc-secret
152152
maxRunners: 100
153153
minRunners: 1
154+
listenerMetrics:
155+
counters:
156+
gha_started_jobs_total:
157+
labels:
158+
["repository", "organization", "enterprise", "job_name", "event_name"]
159+
gha_completed_jobs_total:
160+
labels:
161+
[
162+
"repository",
163+
"organization",
164+
"enterprise",
165+
"job_name",
166+
"event_name",
167+
"job_result",
168+
]
169+
gauges:
170+
gha_assigned_jobs:
171+
labels: ["name", "namespace", "repository", "organization", "enterprise"]
172+
gha_running_jobs:
173+
labels: ["name", "namespace", "repository", "organization", "enterprise"]
174+
gha_registered_runners:
175+
labels: ["name", "namespace", "repository", "organization", "enterprise"]
176+
gha_busy_runners:
177+
labels: ["name", "namespace", "repository", "organization", "enterprise"]
178+
gha_min_runners:
179+
labels: ["name", "namespace", "repository", "organization", "enterprise"]
180+
gha_max_runners:
181+
labels: ["name", "namespace", "repository", "organization", "enterprise"]
182+
gha_desired_runners:
183+
labels: ["name", "namespace", "repository", "organization", "enterprise"]
184+
gha_idle_runners:
185+
labels: ["name", "namespace", "repository", "organization", "enterprise"]
186+
histograms:
187+
gha_job_startup_duration_seconds:
188+
labels:
189+
["repository", "organization", "enterprise", "job_name", "event_name"]
190+
buckets:
191+
[
192+
0.01,
193+
0.05,
194+
0.1,
195+
0.5,
196+
1.0,
197+
2.0,
198+
3.0,
199+
4.0,
200+
5.0,
201+
6.0,
202+
7.0,
203+
8.0,
204+
9.0,
205+
10.0,
206+
12.0,
207+
15.0,
208+
18.0,
209+
20.0,
210+
25.0,
211+
30.0,
212+
40.0,
213+
50.0,
214+
60.0,
215+
70.0,
216+
80.0,
217+
90.0,
218+
100.0,
219+
110.0,
220+
120.0,
221+
150.0,
222+
180.0,
223+
210.0,
224+
240.0,
225+
300.0,
226+
360.0,
227+
420.0,
228+
480.0,
229+
540.0,
230+
600.0,
231+
900.0,
232+
1200.0,
233+
1800.0,
234+
2400.0,
235+
3000.0,
236+
3600.0,
237+
]
238+
gha_job_execution_duration_seconds:
239+
labels:
240+
[
241+
"repository",
242+
"organization",
243+
"enterprise",
244+
"job_name",
245+
"event_name",
246+
"job_result",
247+
]
248+
buckets:
249+
[
250+
0.01,
251+
0.05,
252+
0.1,
253+
0.5,
254+
1.0,
255+
2.0,
256+
3.0,
257+
4.0,
258+
5.0,
259+
6.0,
260+
7.0,
261+
8.0,
262+
9.0,
263+
10.0,
264+
12.0,
265+
15.0,
266+
18.0,
267+
20.0,
268+
25.0,
269+
30.0,
270+
40.0,
271+
50.0,
272+
60.0,
273+
70.0,
274+
80.0,
275+
90.0,
276+
100.0,
277+
110.0,
278+
120.0,
279+
150.0,
280+
180.0,
281+
210.0,
282+
240.0,
283+
300.0,
284+
360.0,
285+
420.0,
286+
480.0,
287+
540.0,
288+
600.0,
289+
900.0,
290+
1200.0,
291+
1800.0,
292+
2400.0,
293+
3000.0,
294+
3600.0,
295+
]
154296
listenerTemplate:
155297
spec:
156298
containers:

0 commit comments

Comments
 (0)