|
240 | 240 | "maxDataPoints": 100,
|
241 | 241 | "options": {
|
242 | 242 | "colorMode": "none",
|
243 |
| - "graphMode": "area", |
| 243 | + "graphMode": "none", |
244 | 244 | "justifyMode": "auto",
|
245 |
| - "orientation": "horizontal", |
| 245 | + "orientation": "auto", |
246 | 246 | "reduceOptions": {
|
247 | 247 | "calcs": [
|
248 | 248 | "lastNotNull"
|
|
259 | 259 | "uid": "$datasource"
|
260 | 260 | },
|
261 | 261 | "editorMode": "code",
|
262 |
| - "expr": "count(count by (server) (argocd_cluster_info))", |
| 262 | + "expr": "count(\r\n count by (dest_server) (\r\n argocd_app_info \r\n * on(name) group_left(label_environment) argocd_app_labels{label_environment=~\"$environment\", label_team=~\"$team\"}\r\n )\r\n)", |
263 | 263 | "format": "time_series",
|
264 | 264 | "instant": false,
|
265 | 265 | "intervalFactor": 1,
|
266 | 266 | "refId": "A"
|
267 | 267 | }
|
268 | 268 | ],
|
269 |
| - "title": "Managed Clusters", |
| 269 | + "title": "Clusters with apps deployed", |
270 | 270 | "type": "stat"
|
271 | 271 | },
|
272 | 272 | {
|
|
319 | 319 | "maxDataPoints": 100,
|
320 | 320 | "options": {
|
321 | 321 | "colorMode": "none",
|
322 |
| - "graphMode": "area", |
| 322 | + "graphMode": "none", |
323 | 323 | "justifyMode": "auto",
|
324 | 324 | "orientation": "horizontal",
|
325 | 325 | "reduceOptions": {
|
|
339 | 339 | "uid": "$datasource"
|
340 | 340 | },
|
341 | 341 | "editorMode": "code",
|
342 |
| - "expr": "sum(\r\n argocd_app_info{health_status=~\"$health_status\",sync_status=~\"$sync_status\"} \r\n * on(name) group_left(label_environment) argocd_app_labels{label_environment=~\"$environment\"}\r\n)", |
| 342 | + "expr": "sum(\r\n argocd_app_info{health_status=~\"$health_status\",sync_status=~\"$sync_status\"} \r\n * on(name) group_left(label_environment) argocd_app_labels{label_environment=~\"$environment\", label_team=~\"$team\"}\r\n)", |
343 | 343 | "format": "time_series",
|
344 | 344 | "instant": false,
|
345 | 345 | "intervalFactor": 1,
|
|
399 | 399 | "maxDataPoints": 100,
|
400 | 400 | "options": {
|
401 | 401 | "colorMode": "none",
|
402 |
| - "graphMode": "area", |
| 402 | + "graphMode": "none", |
403 | 403 | "justifyMode": "auto",
|
404 | 404 | "orientation": "horizontal",
|
405 | 405 | "reduceOptions": {
|
|
418 | 418 | "uid": "$datasource"
|
419 | 419 | },
|
420 | 420 | "editorMode": "code",
|
421 |
| - "expr": "count(count by (repo) (\r\n argocd_app_info * on(name) group_left argocd_app_labels{label_environment=~\"$environment\"}\r\n))", |
| 421 | + "expr": "count(count by (repo) (\r\n argocd_app_info * on(name) group_left argocd_app_labels{label_environment=~\"$environment\", label_team=~\"$team\"}\r\n))", |
422 | 422 | "format": "time_series",
|
423 | 423 | "instant": false,
|
424 | 424 | "intervalFactor": 1,
|
|
618 | 618 | },
|
619 | 619 | "editorMode": "code",
|
620 | 620 | "exemplar": false,
|
621 |
| - "expr": "argocd_app_info{health_status=~\"$health_status\",sync_status=~\"$sync_status\"} \r\n* on(name) group_left(label_environment, label_team) argocd_app_labels{label_environment=~\"$environment\"}", |
| 621 | + "expr": "argocd_app_info{health_status=~\"$health_status\",sync_status=~\"$sync_status\"} \r\n* on(name) group_left(label_environment, label_team) argocd_app_labels{label_environment=~\"$environment\", label_team=~\"$team\"}", |
622 | 622 | "format": "table",
|
623 | 623 | "instant": true,
|
624 | 624 | "intervalFactor": 1,
|
|
654 | 654 | "service": true
|
655 | 655 | },
|
656 | 656 | "indexByName": {
|
657 |
| - "Time": 4, |
658 |
| - "Value": 20, |
659 |
| - "cluster": 5, |
660 |
| - "container": 6, |
661 |
| - "dest_namespace": 7, |
662 |
| - "dest_server": 8, |
663 |
| - "endpoint": 9, |
664 |
| - "exported_namespace": 10, |
665 |
| - "health_status": 2, |
666 |
| - "instance": 11, |
667 |
| - "job": 12, |
| 657 | + "Time": 5, |
| 658 | + "Value": 21, |
| 659 | + "cluster": 6, |
| 660 | + "container": 7, |
| 661 | + "dest_namespace": 8, |
| 662 | + "dest_server": 9, |
| 663 | + "endpoint": 10, |
| 664 | + "exported_namespace": 11, |
| 665 | + "health_status": 3, |
| 666 | + "instance": 12, |
| 667 | + "job": 13, |
668 | 668 | "label_environment": 1,
|
| 669 | + "label_team": 2, |
669 | 670 | "name": 0,
|
670 |
| - "namespace": 13, |
671 |
| - "pod": 14, |
672 |
| - "project": 15, |
673 |
| - "prometheus": 16, |
674 |
| - "prometheus_replica": 17, |
675 |
| - "repo": 18, |
676 |
| - "service": 19, |
677 |
| - "sync_status": 3 |
| 671 | + "namespace": 14, |
| 672 | + "operation": 22, |
| 673 | + "pod": 15, |
| 674 | + "project": 16, |
| 675 | + "prometheus": 17, |
| 676 | + "prometheus_replica": 18, |
| 677 | + "repo": 19, |
| 678 | + "service": 20, |
| 679 | + "sync_status": 4 |
678 | 680 | },
|
679 | 681 | "renameByName": {
|
680 | 682 | "health_status": "Health",
|
681 | 683 | "label_environment": "Environment",
|
| 684 | + "label_team": "Team Owner", |
682 | 685 | "name": "Application",
|
683 | 686 | "sync_status": "Synchronization Status"
|
684 | 687 | }
|
|
892 | 895 | "uid": "$datasource"
|
893 | 896 | },
|
894 | 897 | "editorMode": "code",
|
895 |
| - "expr": "sum(\r\n argocd_app_info{health_status=~\"$health_status\",sync_status=~\"$sync_status\",health_status!=\"\"} \r\n * on(name) group_left argocd_app_labels{label_environment=~\"$environment\"}\r\n) by (health_status)", |
| 898 | + "expr": "sum(\r\n argocd_app_info{health_status=~\"$health_status\",sync_status=~\"$sync_status\",health_status!=\"\"} \r\n * on(name) group_left argocd_app_labels{label_environment=~\"$environment\", label_team=~\"$team\"}\r\n) by (health_status)", |
896 | 899 | "format": "time_series",
|
897 | 900 | "instant": false,
|
898 | 901 | "intervalFactor": 1,
|
|
1114 | 1117 | "uid": "$datasource"
|
1115 | 1118 | },
|
1116 | 1119 | "editorMode": "code",
|
1117 |
| - "expr": "sum(\r\n argocd_app_info{health_status=~\"$health_status\",sync_status=~\"$sync_status\",health_status!=\"\"}\r\n * on(name) group_left argocd_app_labels{label_environment=~\"$environment\"}\r\n) by (sync_status)", |
| 1120 | + "expr": "sum(\r\n argocd_app_info{health_status=~\"$health_status\",sync_status=~\"$sync_status\",health_status!=\"\"}\r\n * on(name) group_left argocd_app_labels{label_environment=~\"$environment\", label_team=~\"$team\"}\r\n) by (sync_status)", |
1118 | 1121 | "format": "time_series",
|
1119 | 1122 | "instant": false,
|
1120 | 1123 | "intervalFactor": 1,
|
|
1240 | 1243 | "uid": "$datasource"
|
1241 | 1244 | },
|
1242 | 1245 | "editorMode": "code",
|
1243 |
| - "expr": "sum(\r\n round(\r\n increase(\r\n argocd_app_sync_total[$interval]\r\n * on(name) group_left argocd_app_labels{label_environment=~\"$environment\"}\r\n )\r\n )\r\n) by (name)", |
| 1246 | + "expr": "sum(\r\n round(\r\n increase(\r\n argocd_app_sync_total[$interval]\r\n * on(name) group_left argocd_app_labels{label_environment=~\"$environment\", label_team=~\"$team\"}\r\n )\r\n )\r\n) by (name)", |
1244 | 1247 | "format": "time_series",
|
1245 | 1248 | "intervalFactor": 1,
|
1246 | 1249 | "legendFormat": "{{name}}",
|
|
1314 | 1317 | "uid": "$datasource"
|
1315 | 1318 | },
|
1316 | 1319 | "editorMode": "code",
|
1317 |
| - "expr": "sum(\r\n round(\r\n increase(\r\n argocd_app_sync_total{phase=~\"Error|Failed\"}[$interval]\r\n * on(name) group_left argocd_app_labels{label_environment=~\"$environment\"}\r\n )\r\n )\r\n) by (name, phase)", |
| 1320 | + "expr": "sum(\r\n round(\r\n increase(\r\n argocd_app_sync_total{phase=~\"Error|Failed\"}[$interval]\r\n * on(name) group_left argocd_app_labels{label_environment=~\"$environment\", label_team=~\"$team\"}\r\n )\r\n )\r\n) by (name, phase)", |
1318 | 1321 | "format": "time_series",
|
1319 | 1322 | "intervalFactor": 1,
|
1320 | 1323 | "legendFormat": "{{phase}}: {{name}}",
|
|
2605 | 2608 | "mode": "absolute",
|
2606 | 2609 | "steps": [
|
2607 | 2610 | {
|
2608 |
| - "color": "green", |
2609 |
| - "value": null |
| 2611 | + "color": "green" |
2610 | 2612 | },
|
2611 | 2613 | {
|
2612 | 2614 | "color": "red",
|
|
2702 | 2704 | "mode": "absolute",
|
2703 | 2705 | "steps": [
|
2704 | 2706 | {
|
2705 |
| - "color": "green", |
2706 |
| - "value": null |
| 2707 | + "color": "green" |
2707 | 2708 | },
|
2708 | 2709 | {
|
2709 | 2710 | "color": "red",
|
|
3021 | 3022 | "mode": "absolute",
|
3022 | 3023 | "steps": [
|
3023 | 3024 | {
|
3024 |
| - "color": "green", |
3025 |
| - "value": null |
| 3025 | + "color": "green" |
3026 | 3026 | },
|
3027 | 3027 | {
|
3028 | 3028 | "color": "red",
|
|
4533 | 4533 | "type": "query",
|
4534 | 4534 | "useTags": false
|
4535 | 4535 | },
|
| 4536 | + { |
| 4537 | + "allValue": ".*", |
| 4538 | + "current": {}, |
| 4539 | + "datasource": { |
| 4540 | + "uid": "$datasource" |
| 4541 | + }, |
| 4542 | + "definition": "label_values(argocd_app_labels, label_team)", |
| 4543 | + "hide": 0, |
| 4544 | + "includeAll": true, |
| 4545 | + "label": "Team", |
| 4546 | + "multi": false, |
| 4547 | + "name": "team", |
| 4548 | + "options": [], |
| 4549 | + "query": { |
| 4550 | + "query": "label_values(argocd_app_labels, label_team)", |
| 4551 | + "refId": "StandardVariableQuery" |
| 4552 | + }, |
| 4553 | + "refresh": 1, |
| 4554 | + "regex": "", |
| 4555 | + "skipUrlSync": false, |
| 4556 | + "sort": 1, |
| 4557 | + "tagValuesQuery": "", |
| 4558 | + "tagsQuery": "", |
| 4559 | + "type": "query", |
| 4560 | + "useTags": false |
| 4561 | + }, |
4536 | 4562 | {
|
4537 | 4563 | "allValue": ".*",
|
4538 | 4564 | "current": {
|
|
4658 | 4684 | "timezone": "",
|
4659 | 4685 | "title": "ArgoCD",
|
4660 | 4686 | "uid": "argocd-apps",
|
4661 |
| - "version": 2, |
| 4687 | + "version": 1, |
4662 | 4688 | "weekStart": ""
|
4663 | 4689 | }
|
0 commit comments