From 6f4e47011bfc44969618a943e86da7348426b6ed Mon Sep 17 00:00:00 2001 From: adinhodovic Date: Wed, 15 Nov 2023 12:00:08 +0100 Subject: [PATCH] feat: Add dashboard links --- dashboards/argo-cd-applications.libsonnet | 6 ++++++ dashboards/argo-cd-notifications.libsonnet | 6 ++++++ dashboards/argo-cd-operational.libsonnet | 6 ++++++ dashboards_out/argo-cd-application-overview.json | 11 +++++++++++ dashboards_out/argo-cd-notifications-overview.json | 11 +++++++++++ dashboards_out/argo-cd-operational-overview.json | 11 +++++++++++ 6 files changed, 51 insertions(+) diff --git a/dashboards/argo-cd-applications.libsonnet b/dashboards/argo-cd-applications.libsonnet index d35cafb..ce9a582 100644 --- a/dashboards/argo-cd-applications.libsonnet +++ b/dashboards/argo-cd-applications.libsonnet @@ -684,6 +684,12 @@ local tbOverride = tbStandardOptions.override; dashboard.time.withFrom('now-6h') + dashboard.time.withTo('now') + dashboard.withVariables(variables) + + dashboard.withLinks( + [ + dashboard.link.dashboards.new('ArgoCD Dashboards', $._config.tags) + + dashboard.link.link.options.withTargetBlank(true), + ] + ) + dashboard.withPanels( [ summaryRow + diff --git a/dashboards/argo-cd-notifications.libsonnet b/dashboards/argo-cd-notifications.libsonnet index 06d15af..d1fc85c 100644 --- a/dashboards/argo-cd-notifications.libsonnet +++ b/dashboards/argo-cd-notifications.libsonnet @@ -170,6 +170,12 @@ local tsLegend = tsOptions.legend; dashboard.time.withFrom('now-2d') + dashboard.time.withTo('now') + dashboard.withVariables(variables) + + dashboard.withLinks( + [ + dashboard.link.dashboards.new('ArgoCD Dashboards', $._config.tags) + + dashboard.link.link.options.withTargetBlank(true), + ] + ) + dashboard.withPanels( [ summaryRow + diff --git a/dashboards/argo-cd-operational.libsonnet b/dashboards/argo-cd-operational.libsonnet index fdec9c7..bc88c3c 100644 --- a/dashboards/argo-cd-operational.libsonnet +++ b/dashboards/argo-cd-operational.libsonnet @@ -816,6 +816,12 @@ local tbOverride = tbStandardOptions.override; dashboard.time.withFrom('now-6h') + dashboard.time.withTo('now') + dashboard.withVariables(variables) + + dashboard.withLinks( + [ + dashboard.link.dashboards.new('ArgoCD Dashboards', $._config.tags) + + dashboard.link.link.options.withTargetBlank(true), + ] + ) + dashboard.withPanels( [ summaryRow + diff --git a/dashboards_out/argo-cd-application-overview.json b/dashboards_out/argo-cd-application-overview.json index dd0236c..bfa3866 100644 --- a/dashboards_out/argo-cd-application-overview.json +++ b/dashboards_out/argo-cd-application-overview.json @@ -3,6 +3,17 @@ "__requires": [ ], "description": "A dashboard that monitors ArgoCD with a focus on Application status. It is created using the [argo-cd-mixin](https://github.com/adinhodovic/argo-cd-mixin). Requires custom configuration to add application badges. Please refer to the mixin.", "editable": true, + "links": [ + { + "tags": [ + "ci/cd", + "argo-cd" + ], + "targetBlank": true, + "title": "ArgoCD Dashboards", + "type": "dashboards" + } + ], "panels": [ { "gridPos": { diff --git a/dashboards_out/argo-cd-notifications-overview.json b/dashboards_out/argo-cd-notifications-overview.json index 0eb3686..715e998 100644 --- a/dashboards_out/argo-cd-notifications-overview.json +++ b/dashboards_out/argo-cd-notifications-overview.json @@ -3,6 +3,17 @@ "__requires": [ ], "description": "A dashboard that monitors ArgoCD notifications. It is created using the [argo-cd-mixin](https://github.com/adinhodovic/argo-cd-mixin).", "editable": true, + "links": [ + { + "tags": [ + "ci/cd", + "argo-cd" + ], + "targetBlank": true, + "title": "ArgoCD Dashboards", + "type": "dashboards" + } + ], "panels": [ { "gridPos": { diff --git a/dashboards_out/argo-cd-operational-overview.json b/dashboards_out/argo-cd-operational-overview.json index 60b318b..84555ee 100644 --- a/dashboards_out/argo-cd-operational-overview.json +++ b/dashboards_out/argo-cd-operational-overview.json @@ -3,6 +3,17 @@ "__requires": [ ], "description": "A dashboard that monitors ArgoCD with a focus on the operational. It is created using the [argo-cd-mixin](https://github.com/adinhodovic/argo-cd-mixin).", "editable": true, + "links": [ + { + "tags": [ + "ci/cd", + "argo-cd" + ], + "targetBlank": true, + "title": "ArgoCD Dashboards", + "type": "dashboards" + } + ], "panels": [ { "gridPos": {