Skip to content

Commit

Permalink
feat: Add dashboard links
Browse files Browse the repository at this point in the history
  • Loading branch information
adinhodovic committed Nov 15, 2023
1 parent f1b0a81 commit 6f4e470
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dashboards/argo-cd-applications.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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 +
Expand Down
6 changes: 6 additions & 0 deletions dashboards/argo-cd-notifications.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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 +
Expand Down
6 changes: 6 additions & 0 deletions dashboards/argo-cd-operational.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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 +
Expand Down
11 changes: 11 additions & 0 deletions dashboards_out/argo-cd-application-overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
11 changes: 11 additions & 0 deletions dashboards_out/argo-cd-notifications-overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
11 changes: 11 additions & 0 deletions dashboards_out/argo-cd-operational-overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 6f4e470

Please sign in to comment.