Skip to content

Commit

Permalink
Merge pull request #2 from adinhodovic/update-docs
Browse files Browse the repository at this point in the history
docs: Update documentation
  • Loading branch information
adinhodovic committed Nov 13, 2023
2 parents d2192b8 + df01230 commit 306aafe
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 2 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,13 @@ monitoring stack.
## Alerts

The mixin follows the [monitoring-mixins guidelines](https://github.com/monitoring-mixins/docs#guidelines-for-alert-names-labels-and-annotations) for alerts.

## Preview

### Application Dashboard

![argo-cd-application-overview](images/argo-cd-application-overview.png)

### Notification Dashboard

![argo-cd-notifications-overview](images/argo-cd-notifications-overview.png)
6 changes: 6 additions & 0 deletions config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ local annotation = g.dashboard.annotation;

{
_config+:: {
// Bypasses grafana.com/dashboards validator
bypassDashboardValidation: {
__inputs: [],
__requires: [],
},

argoCdSelector: 'job=~".*"',

grafanaUrl: 'https://grafana.com',
Expand Down
3 changes: 2 additions & 1 deletion dashboards/argo-cd-applications.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -668,10 +668,11 @@ local tbOverride = tbStandardOptions.override;
),

'argo-cd-application-overview.json':
$._config.bypassDashboardValidation +
dashboard.new(
'ArgoCD / Application / Overview',
) +
dashboard.withDescription('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).') +
dashboard.withDescription('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.') +
dashboard.withUid($._config.applicationOverviewDashboardUid) +
dashboard.withTags($._config.tags) +
dashboard.withTimezone('utc') +
Expand Down
1 change: 1 addition & 0 deletions dashboards/argo-cd-notifications.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ local tsLegend = tsOptions.legend;
),

'argo-cd-notifications-overview.json':
$._config.bypassDashboardValidation +
dashboard.new(
'ArgoCD / Notifications / Overview',
) +
Expand Down
4 changes: 3 additions & 1 deletion dashboards_out/argo-cd-application-overview.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"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).",
"__inputs": [ ],
"__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,
"panels": [
{
Expand Down
2 changes: 2 additions & 0 deletions dashboards_out/argo-cd-notifications-overview.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"__inputs": [ ],
"__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,
"panels": [
Expand Down
Binary file added images/argo-cd-application-overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/argo-cd-notifications-overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 306aafe

Please sign in to comment.