Skip to content

Commit

Permalink
Merge pull request #7 from adinhodovic/add-more-calcs
Browse files Browse the repository at this point in the history
feat: add more calcs for the operation dashboard
  • Loading branch information
adinhodovic committed Jul 11, 2024
2 parents 3733302 + f09375f commit c28f829
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 81 deletions.
8 changes: 4 additions & 4 deletions dashboards/argo-cd-applications.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ local tbOverride = tbStandardOptions.override;
tbOptions.withSortBy(
tbOptions.sortBy.withDisplayName('Application')
) +
tbOptions.footer.TableFooterOptions.withEnablePagination(true) +
tbOptions.footer.withEnablePagination(true) +
tbQueryOptions.withTargets(
prometheus.new(
'$datasource',
Expand Down Expand Up @@ -362,7 +362,7 @@ local tbOverride = tbStandardOptions.override;
tbOptions.withSortBy(
tbOptions.sortBy.withDisplayName('Application')
) +
tbOptions.footer.TableFooterOptions.withEnablePagination(true) +
tbOptions.footer.withEnablePagination(true) +
tbQueryOptions.withTargets(
prometheus.new(
'$datasource',
Expand Down Expand Up @@ -438,7 +438,7 @@ local tbOverride = tbStandardOptions.override;
tbOptions.withSortBy(
tbOptions.sortBy.withDisplayName('Application')
) +
tbOptions.footer.TableFooterOptions.withEnablePagination(true) +
tbOptions.footer.withEnablePagination(true) +
tbQueryOptions.withTargets(
prometheus.new(
'$datasource',
Expand Down Expand Up @@ -510,7 +510,7 @@ local tbOverride = tbStandardOptions.override;
tbOptions.withSortBy(
tbOptions.sortBy.withDisplayName('Application')
) +
tbOptions.footer.TableFooterOptions.withEnablePagination(true) +
tbOptions.footer.withEnablePagination(true) +
tbQueryOptions.withTargets(
prometheus.new(
'$datasource',
Expand Down
42 changes: 21 additions & 21 deletions dashboards/argo-cd-operational.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ local hmQueryOptions = heatmapPanel.queryOptions;
tbOptions.withSortBy(
tbOptions.sortBy.withDisplayName('Application')
) +
tbOptions.footer.TableFooterOptions.withEnablePagination(true) +
tbOptions.footer.withEnablePagination(true) +
tbQueryOptions.withTargets(
prometheus.new(
'$datasource',
Expand Down Expand Up @@ -373,8 +373,8 @@ local hmQueryOptions = heatmapPanel.queryOptions;
tsLegend.withShowLegend(true) +
tsLegend.withDisplayMode('table') +
tsLegend.withPlacement('right') +
tsLegend.withCalcs(['last']) +
tsLegend.withSortBy('Last') +
tsLegend.withCalcs(['lastNotNull', 'mean', 'max']) +
tsLegend.withSortBy('Mean') +
tsLegend.withSortDesc(true) +
tsCustom.withFillOpacity(10),

Expand Down Expand Up @@ -410,8 +410,8 @@ local hmQueryOptions = heatmapPanel.queryOptions;
tsLegend.withShowLegend(true) +
tsLegend.withDisplayMode('table') +
tsLegend.withPlacement('right') +
tsLegend.withCalcs(['last']) +
tsLegend.withSortBy('Last') +
tsLegend.withCalcs(['lastNotNull', 'mean', 'max']) +
tsLegend.withSortBy('Mean') +
tsLegend.withSortDesc(true) +
tsCustom.withFillOpacity(10),

Expand Down Expand Up @@ -448,8 +448,8 @@ local hmQueryOptions = heatmapPanel.queryOptions;
tsLegend.withShowLegend(true) +
tsLegend.withDisplayMode('table') +
tsLegend.withPlacement('right') +
tsLegend.withCalcs(['last']) +
tsLegend.withSortBy('Last') +
tsLegend.withCalcs(['lastNotNull', 'mean', 'max']) +
tsLegend.withSortBy('Mean') +
tsLegend.withSortDesc(true) +
tsCustom.withFillOpacity(10),

Expand Down Expand Up @@ -514,8 +514,8 @@ local hmQueryOptions = heatmapPanel.queryOptions;
tsLegend.withShowLegend(true) +
tsLegend.withDisplayMode('table') +
tsLegend.withPlacement('right') +
tsLegend.withCalcs(['last']) +
tsLegend.withSortBy('Last') +
tsLegend.withCalcs(['lastNotNull', 'mean', 'max']) +
tsLegend.withSortBy('Mean') +
tsLegend.withSortDesc(true) +
tsCustom.withFillOpacity(10),

Expand Down Expand Up @@ -547,8 +547,8 @@ local hmQueryOptions = heatmapPanel.queryOptions;
tsLegend.withShowLegend(true) +
tsLegend.withDisplayMode('table') +
tsLegend.withPlacement('right') +
tsLegend.withCalcs(['last']) +
tsLegend.withSortBy('Last') +
tsLegend.withCalcs(['lastNotNull', 'mean', 'max']) +
tsLegend.withSortBy('Mean') +
tsLegend.withSortDesc(true) +
tsCustom.withFillOpacity(10),

Expand Down Expand Up @@ -581,8 +581,8 @@ local hmQueryOptions = heatmapPanel.queryOptions;
tsLegend.withShowLegend(true) +
tsLegend.withDisplayMode('table') +
tsLegend.withPlacement('right') +
tsLegend.withCalcs(['last']) +
tsLegend.withSortBy('Last') +
tsLegend.withCalcs(['lastNotNull', 'mean', 'max']) +
tsLegend.withSortBy('Mean') +
tsLegend.withSortDesc(true) +
tsCustom.withFillOpacity(10),

Expand Down Expand Up @@ -615,8 +615,8 @@ local hmQueryOptions = heatmapPanel.queryOptions;
tsLegend.withShowLegend(true) +
tsLegend.withDisplayMode('table') +
tsLegend.withPlacement('right') +
tsLegend.withCalcs(['last']) +
tsLegend.withSortBy('Last') +
tsLegend.withCalcs(['lastNotNull', 'mean', 'max']) +
tsLegend.withSortBy('Mean') +
tsLegend.withSortDesc(true) +
tsCustom.withFillOpacity(10),

Expand Down Expand Up @@ -651,8 +651,8 @@ local hmQueryOptions = heatmapPanel.queryOptions;
tsLegend.withShowLegend(true) +
tsLegend.withDisplayMode('table') +
tsLegend.withPlacement('right') +
tsLegend.withCalcs(['last']) +
tsLegend.withSortBy('Last') +
tsLegend.withCalcs(['lastNotNull', 'mean', 'max']) +
tsLegend.withSortBy('Mean') +
tsLegend.withSortDesc(true) +
tsCustom.withFillOpacity(10),

Expand Down Expand Up @@ -687,8 +687,8 @@ local hmQueryOptions = heatmapPanel.queryOptions;
tsLegend.withShowLegend(true) +
tsLegend.withDisplayMode('table') +
tsLegend.withPlacement('right') +
tsLegend.withCalcs(['last']) +
tsLegend.withSortBy('Last') +
tsLegend.withCalcs(['lastNotNull', 'mean', 'max']) +
tsLegend.withSortBy('Mean') +
tsLegend.withSortDesc(true) +
tsCustom.withFillOpacity(10),

Expand Down Expand Up @@ -723,8 +723,8 @@ local hmQueryOptions = heatmapPanel.queryOptions;
tsLegend.withShowLegend(true) +
tsLegend.withDisplayMode('table') +
tsLegend.withPlacement('right') +
tsLegend.withCalcs(['last']) +
tsLegend.withSortBy('Last') +
tsLegend.withCalcs(['lastNotNull', 'mean', 'max']) +
tsLegend.withSortBy('Mean') +
tsLegend.withSortDesc(true) +
tsCustom.withFillOpacity(10),

Expand Down
26 changes: 13 additions & 13 deletions dashboards_out/argo-cd-application-overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"sort": "desc"
}
},
"pluginVersion": "v10.2.0",
"pluginVersion": "v11.0.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -115,7 +115,7 @@
"sort": "desc"
}
},
"pluginVersion": "v10.2.0",
"pluginVersion": "v11.0.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -166,7 +166,7 @@
"sort": "desc"
}
},
"pluginVersion": "v10.2.0",
"pluginVersion": "v11.0.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -217,7 +217,7 @@
"sort": "desc"
}
},
"pluginVersion": "v10.2.0",
"pluginVersion": "v11.0.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -247,7 +247,7 @@
"content": "No applications defined",
"mode": "markdown"
},
"pluginVersion": "v10.2.0",
"pluginVersion": "v11.0.0",
"title": "Application Badges",
"type": "text"
},
Expand Down Expand Up @@ -329,7 +329,7 @@
}
]
},
"pluginVersion": "v10.2.0",
"pluginVersion": "v11.0.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -435,7 +435,7 @@
}
]
},
"pluginVersion": "v10.2.0",
"pluginVersion": "v11.0.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -541,7 +541,7 @@
}
]
},
"pluginVersion": "v10.2.0",
"pluginVersion": "v11.0.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -647,7 +647,7 @@
}
]
},
"pluginVersion": "v10.2.0",
"pluginVersion": "v11.0.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -735,7 +735,7 @@
"sort": "desc"
}
},
"pluginVersion": "v10.2.0",
"pluginVersion": "v11.0.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -785,7 +785,7 @@
"sort": "desc"
}
},
"pluginVersion": "v10.2.0",
"pluginVersion": "v11.0.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -835,7 +835,7 @@
"sort": "desc"
}
},
"pluginVersion": "v10.2.0",
"pluginVersion": "v11.0.0",
"targets": [
{
"datasource": {
Expand All @@ -850,7 +850,7 @@
"type": "timeseries"
}
],
"schemaVersion": 36,
"schemaVersion": 39,
"tags": [
"ci/cd",
"argo-cd"
Expand Down
6 changes: 3 additions & 3 deletions dashboards_out/argo-cd-notifications-overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"sort": "desc"
}
},
"pluginVersion": "v10.2.0",
"pluginVersion": "v11.0.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -115,7 +115,7 @@
"sort": "desc"
}
},
"pluginVersion": "v10.2.0",
"pluginVersion": "v11.0.0",
"targets": [
{
"datasource": {
Expand All @@ -130,7 +130,7 @@
"type": "timeseries"
}
],
"schemaVersion": 36,
"schemaVersion": 39,
"tags": [
"ci/cd",
"argo-cd"
Expand Down
Loading

0 comments on commit c28f829

Please sign in to comment.