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: celery-mixin/dashboards/celery-tasks-overview.libsonnet
+17-18Lines changed: 17 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
local mixinUtils = import'github.com/adinhodovic/mixin-utils/utils.libsonnet';
1
2
local g = import'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';
2
3
local dashboardUtil = import'util.libsonnet';
3
4
@@ -205,31 +206,31 @@ local tbOverride = tbStandardOptions.override;
205
206
local panels = {
206
207
207
208
celeryWorkersStat:
208
-
dashboardUtil.statPanel(
209
+
mixinUtils.dashboards.statPanel(
209
210
'Workers',
210
211
'short',
211
212
queries.celeryWorkers,
212
213
description='Number of active Celery Workers',
213
214
),
214
215
215
216
celeryWorkersActiveStat:
216
-
dashboardUtil.statPanel(
217
+
mixinUtils.dashboards.statPanel(
217
218
'Workers Active Tasks',
218
219
'short',
219
220
queries.celeryWorkersActive,
220
221
description='Number of active tasks across all workers',
221
222
),
222
223
223
224
tasksReceivedByWorkers24hStat:
224
-
dashboardUtil.statPanel(
225
+
mixinUtils.dashboards.statPanel(
225
226
'Tasks received by workers [1w]',
226
227
'short',
227
228
queries.tasksReceived1w,
228
229
description='Number of tasks received by workers in the last week',
229
230
),
230
231
231
232
taskSuccessRate1wStat:
232
-
dashboardUtil.statPanel(
233
+
mixinUtils.dashboards.statPanel(
233
234
'Tasks Success Rate [1w]',
234
235
'percentunit',
235
236
queries.taskSuccessRate1w,
@@ -245,15 +246,15 @@ local tbOverride = tbStandardOptions.override;
245
246
),
246
247
247
248
taskRuntime1wStat:
248
-
dashboardUtil.statPanel(
249
+
mixinUtils.dashboards.statPanel(
249
250
'Average Runtime for Tasks [1w]',
250
251
's',
251
252
queries.taskRuntime1w,
252
253
description='Average runtime for tasks in the last week',
253
254
),
254
255
255
256
tasksFailed1wTable:
256
-
dashboardUtil.tablePanel(
257
+
mixinUtils.dashboards.tablePanel(
257
258
'Top Failed Tasks [1w]',
258
259
'short',
259
260
queries.tasksFailed1w,
@@ -298,7 +299,7 @@ local tbOverride = tbStandardOptions.override;
298
299
),
299
300
300
301
taskExceptions1wTable:
301
-
dashboardUtil.tablePanel(
302
+
mixinUtils.dashboards.tablePanel(
302
303
'Top Task Exceptions [1w]',
303
304
'short',
304
305
queries.topTaskExceptions1w,
@@ -330,7 +331,7 @@ local tbOverride = tbStandardOptions.override;
330
331
),
331
332
332
333
tasksRuntime1wTable:
333
-
dashboardUtil.tablePanel(
334
+
mixinUtils.dashboards.tablePanel(
334
335
'Top Average Task Runtime [1w]',
335
336
's',
336
337
queries.topTaskRuntime1w,
@@ -375,7 +376,7 @@ local tbOverride = tbStandardOptions.override;
375
376
),
376
377
377
378
celeryQueueLengthTimeSeries:
378
-
dashboardUtil.timeSeriesPanel(
379
+
mixinUtils.dashboards.timeSeriesPanel(
379
380
'Queue Length',
380
381
'short',
381
382
queries.celeryQueueLength,
@@ -385,7 +386,7 @@ local tbOverride = tbStandardOptions.override;
385
386
),
386
387
387
388
tasksStatsTable:
388
-
dashboardUtil.tablePanel(
389
+
mixinUtils.dashboards.tablePanel(
389
390
'Task Stats',
390
391
'short',
391
392
[
@@ -466,7 +467,7 @@ local tbOverride = tbStandardOptions.override;
466
467
tbStandardOptions.withNoValue(0),
467
468
468
469
tasksCompletedTimeSeries:
469
-
dashboardUtil.timeSeriesPanel(
470
+
mixinUtils.dashboards.timeSeriesPanel(
470
471
'Tasks Completed',
471
472
'short',
472
473
[
@@ -504,7 +505,7 @@ local tbOverride = tbStandardOptions.override;
504
505
),
505
506
506
507
tasksRuntimeTimeSeries:
507
-
dashboardUtil.timeSeriesPanel(
508
+
mixinUtils.dashboards.timeSeriesPanel(
508
509
'Tasks Runtime',
509
510
's',
510
511
[
@@ -619,13 +620,11 @@ local tbOverride = tbStandardOptions.override;
619
620
timeSeriesPanel.gridPos.withH(10),
620
621
];
621
622
622
-
dashboardUtil.bypassDashboardValidation +
623
+
mixinUtils.dashboards.bypassDashboardValidation +
623
624
dashboard.new(
624
625
'Celery / Tasks / Overview',
625
626
) +
626
-
dashboard.withDescription(
627
-
'A dashboard that monitors Celery. %s' % dashboardUtil.dashboardDescriptionLink
628
-
) +
627
+
dashboard.withDescription('A dashboard that gives an overview of Celery. %s' % mixinUtils.dashboards.dashboardDescriptionLink('celery-exporter', 'https://github.com/danihodovic/celery-exporter')) +
0 commit comments