Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add operational dashboard #3

Merged
merged 2 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading