Skip to content

Commit

Permalink
Merge pull request #3 from adinhodovic/add-operational
Browse files Browse the repository at this point in the history
feat: Add operational dashboard
  • Loading branch information
adinhodovic committed Nov 15, 2023
2 parents 306aafe + 3e180a0 commit f1b0a81
Show file tree
Hide file tree
Showing 8 changed files with 2,059 additions and 24 deletions.
1 change: 1 addition & 0 deletions config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ local annotation = g.dashboard.annotation;
grafanaUrl: 'https://grafana.com',
argoCdUrl: 'https://argocd.com',

operationalOverviewDashboardUid: 'argo-cd-operational-overview-kask',
applicationOverviewDashboardUid: 'argo-cd-application-overview-kask',
notificationsOverviewDashboardUid: 'argo-cd-notifications-overview-kask',

Expand Down
36 changes: 22 additions & 14 deletions dashboards/argo-cd-applications.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,9 @@ local tbOverride = tbStandardOptions.override;
tablePanel.new(
'Applications Unhealthy',
) +
tbOptions.withSortBy(2) +
tbOptions.sortBy.withDesc(true) +
tbOptions.withSortBy(
tbOptions.sortBy.withDisplayName('Application')
) +
tbQueryOptions.withTargets(
prometheus.new(
'$datasource',
Expand All @@ -307,7 +308,7 @@ local tbOverride = tbStandardOptions.override;
dest_server: 'Cluster',
project: 'Project',
name: 'Application',
health_status: 'Sync Status',
health_status: 'Health Status',
},
indexByName: {
name: 0,
Expand Down Expand Up @@ -354,8 +355,9 @@ local tbOverride = tbStandardOptions.override;
tablePanel.new(
'Applications Out Of Sync',
) +
tbOptions.withSortBy(2) +
tbOptions.sortBy.withDesc(true) +
tbOptions.withSortBy(
tbOptions.sortBy.withDisplayName('Application')
) +
tbQueryOptions.withTargets(
prometheus.new(
'$datasource',
Expand Down Expand Up @@ -426,8 +428,9 @@ local tbOverride = tbStandardOptions.override;
tablePanel.new(
'Applications That Failed to Sync[7d]',
) +
tbOptions.withSortBy(2) +
tbOptions.sortBy.withDesc(true) +
tbOptions.withSortBy(
tbOptions.sortBy.withDisplayName('Application')
) +
tbQueryOptions.withTargets(
prometheus.new(
'$datasource',
Expand Down Expand Up @@ -494,8 +497,9 @@ local tbOverride = tbStandardOptions.override;
tablePanel.new(
'Applications With Auto Sync Disabled',
) +
tbOptions.withSortBy(2) +
tbOptions.sortBy.withDesc(true) +
tbOptions.withSortBy(
tbOptions.sortBy.withDisplayName('Application')
) +
tbQueryOptions.withTargets(
prometheus.new(
'$datasource',
Expand Down Expand Up @@ -682,7 +686,11 @@ local tbOverride = tbStandardOptions.override;
dashboard.withVariables(variables) +
dashboard.withPanels(
[
summaryRow,
summaryRow +
row.gridPos.withX(0) +
row.gridPos.withY(0) +
row.gridPos.withW(24) +
row.gridPos.withH(1),
appHealthStatusTimeSeriesPanel +
timeSeriesPanel.gridPos.withX(0) +
timeSeriesPanel.gridPos.withY(1) +
Expand Down Expand Up @@ -727,10 +735,10 @@ local tbOverride = tbStandardOptions.override;
) +
[
appRow +
timeSeriesPanel.gridPos.withX(0) +
timeSeriesPanel.gridPos.withY(23) +
timeSeriesPanel.gridPos.withW(24) +
timeSeriesPanel.gridPos.withH(1),
row.gridPos.withX(0) +
row.gridPos.withY(23) +
row.gridPos.withW(24) +
row.gridPos.withH(1),
]
+
grid.makeGrid(
Expand Down
6 changes: 5 additions & 1 deletion dashboards/argo-cd-notifications.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,11 @@ local tsLegend = tsOptions.legend;
dashboard.withVariables(variables) +
dashboard.withPanels(
[
summaryRow,
summaryRow +
row.gridPos.withX(0) +
row.gridPos.withY(0) +
row.gridPos.withW(24) +
row.gridPos.withH(1),
] +
grid.makeGrid(
[
Expand Down
Loading

0 comments on commit f1b0a81

Please sign in to comment.