Skip to content

Commit

Permalink
chore: Update doc struct
Browse files Browse the repository at this point in the history
  • Loading branch information
adinhodovic committed Nov 5, 2023
1 parent c0edb8d commit f4b759b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
16 changes: 9 additions & 7 deletions config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ local annotation = g.dashboard.annotation;
},

// Render ArgoCD badges in the dashboards
// []struct
// {
// name: 'ArgoCD',
// applicationName: 'ArgoCD', // or self.name
// environment: 'Production',
// argoCdUrl: "https://argo-cd.example.com" // or $._config.argoCdUrl
// }
// []struct{}
// [
// {
// name: 'ArgoCD',
// applicationName: 'ArgoCD', // or self.name
// environment: 'Production',
// argoCdUrl: "https://argo-cd.example.com" // or $._config.argoCdUrl
// }
// ]
applications: [],

customAnnotation:: if $._config.annotation.enabled then
Expand Down
4 changes: 2 additions & 2 deletions dashboards_out/argo-cd-application-overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -503,12 +503,12 @@
"type": "prometheus",
"uid": "$datasource"
},
"expr": "sum(\n round(\n increase(\n argocd_app_sync_total{\n namespace=~'$namespace',\njob=~'$job',\ndest_server=~'$cluster',\nproject=~'$project',\n\n phase!=\"Succeeded\"\n }[$__rate_interval]\n )\n )\n) by (job, dest_server, project, name, phase) > 0\n",
"expr": "sum(\n round(\n increase(\n argocd_app_sync_total{\n namespace=~'$namespace',\njob=~'$job',\ndest_server=~'$cluster',\nproject=~'$project',\n\n phase!=\"Succeeded\"\n }[7d]\n )\n )\n) by (job, dest_server, project, name, phase) > 0\n",
"format": "table",
"instant": true
}
],
"title": "Applications That Failed to Sync[$__rate_interval]",
"title": "Applications That Failed to Sync[7d]",
"transformations": [
{
"id": "organize",
Expand Down

0 comments on commit f4b759b

Please sign in to comment.