Skip to content

Commit

Permalink
Update grafana dashboard for changed metrics name
Browse files Browse the repository at this point in the history
Signed-off-by: Ram <[email protected]>
  • Loading branch information
ram-infrac committed Apr 9, 2021
1 parent c9a91c3 commit 362c554
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 61 deletions.
52 changes: 26 additions & 26 deletions specs/grafana/stork_application_metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"gnetId": 9186,
"graphTooltip": 0,
"id": 1,
"iteration": 1608315347272,
"iteration": 1617864121727,
"links": [],
"panels": [
{
Expand Down Expand Up @@ -99,7 +99,7 @@
"tableColumn": "",
"targets": [
{
"expr": "count(application_backup_status{namespace=~\"$Namespace\"})",
"expr": "count(stork_application_backup_status{namespace=~\"$Namespace\"})",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
Expand Down Expand Up @@ -197,7 +197,7 @@
"tableColumn": "",
"targets": [
{
"expr": "count(application_restore_status{namespace=~\"$Namespace\"})",
"expr": "count(stork_application_restore_status{namespace=~\"$Namespace\"})",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
Expand Down Expand Up @@ -295,7 +295,7 @@
"tableColumn": "",
"targets": [
{
"expr": "count(application_clone_status{namespace=~\"$Namespace\"})",
"expr": "count(stork_application_clone_status{namespace=~\"$Namespace\"})",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
Expand Down Expand Up @@ -388,7 +388,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(application_backup_size{namespace=~\"$Namespace\"})/ (1024 * 1024)",
"expr": "sum(stork_application_backup_size{namespace=~\"$Namespace\"})/ (1024 * 1024)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
Expand Down Expand Up @@ -490,31 +490,31 @@
"steppedLine": false,
"targets": [
{
"expr": "count(application_backup_status{namespace=~\"$Namespace\"} == 5 and application_backup_stage{namespace=~\"$Namespace\"} == 5)",
"expr": "count(stork_application_backup_status{namespace=~\"$Namespace\"} == 5 and stork_application_backup_stage{namespace=~\"$Namespace\"} == 5)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Success",
"refId": "A"
},
{
"expr": "count(application_backup_status{namespace=~\"$Namespace\"} == 2)",
"expr": "count(stork_application_backup_status{namespace=~\"$Namespace\"} == 2)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "In Progress",
"refId": "C"
},
{
"expr": "count(application_backup_status{namespace=~\"$Namespace\"} == 4)",
"expr": "count(stork_application_backup_status{namespace=~\"$Namespace\"} == 4)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Partial Success",
"refId": "D"
},
{
"expr": "count(application_backup_status{namespace=~\"$Namespace\"} == 3)",
"expr": "count(stork_application_backup_status{namespace=~\"$Namespace\"} == 3)",
"format": "time_series",
"hide": false,
"instant": false,
Expand Down Expand Up @@ -635,7 +635,7 @@
"tableColumn": "",
"targets": [
{
"expr": "avg(application_backup_size{namespace=~\"$Namespace\"}!=0)/(1024*1024)",
"expr": "avg(stork_application_backup_size{namespace=~\"$Namespace\"}!=0)/(1024*1024)",
"format": "time_series",
"hide": false,
"interval": "",
Expand Down Expand Up @@ -725,7 +725,7 @@
"tableColumn": "",
"targets": [
{
"expr": "avg(application_backup_duration{namespace=~\"$Namespace\"})",
"expr": "avg(stork_application_backup_duration{namespace=~\"$Namespace\"})",
"format": "time_series",
"hide": false,
"interval": "",
Expand Down Expand Up @@ -795,7 +795,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(application_restore_size{namespace=~\"$Namespace\"})/ (1024 * 1024)",
"expr": "sum(stork_application_restore_size{namespace=~\"$Namespace\"})/ (1024 * 1024)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
Expand Down Expand Up @@ -897,31 +897,31 @@
"steppedLine": false,
"targets": [
{
"expr": "count(application_restore_status{namespace=~\"$Namespace\"}==6 and application_restore_stage{namespace=~\"$Namespace\"}==3)",
"expr": "count(stork_application_restore_status{namespace=~\"$Namespace\"}==6 and application_restore_stage{namespace=~\"$Namespace\"}==3)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Success",
"refId": "A"
},
{
"expr": "count(application_restore_status{namespace=~\"$Namespace\"}==2)",
"expr": "count(stork_application_restore_status{namespace=~\"$Namespace\"}==2)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "In Progress",
"refId": "C"
},
{
"expr": "count(application_restore_status{namespace=~\"$Namespace\"}==4)",
"expr": "count(stork_application_restore_status{namespace=~\"$Namespace\"}==4)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Partial Success",
"refId": "D"
},
{
"expr": "count(application_restore_status{namespace=~\"$Namespace\"}==3)",
"expr": "count(stork_application_restore_status{namespace=~\"$Namespace\"}==3)",
"format": "time_series",
"hide": false,
"instant": false,
Expand Down Expand Up @@ -1042,7 +1042,7 @@
"tableColumn": "",
"targets": [
{
"expr": "avg(application_restore_size{namespace=~\"$Namespace\"}!=0)/(1024*1024)",
"expr": "avg(stork_application_restore_size{namespace=~\"$Namespace\"}!=0)/(1024*1024)",
"format": "time_series",
"hide": false,
"interval": "",
Expand Down Expand Up @@ -1132,7 +1132,7 @@
"tableColumn": "",
"targets": [
{
"expr": "avg(application_restore_duration{namespace=~\"$Namespace\"})",
"expr": "avg(stork_application_restore_duration{namespace=~\"$Namespace\"})",
"format": "time_series",
"hide": false,
"instant": false,
Expand Down Expand Up @@ -1208,31 +1208,31 @@
"steppedLine": false,
"targets": [
{
"expr": "count(application_clone_status{namespace=~\"$Namespace\"} == 4 and application_clone_stage{namespace=~\"$Namespace\"} == 5)",
"expr": "count(stork_application_clone_status{namespace=~\"$Namespace\"} == 4 and stork_application_clone_stage{namespace=~\"$Namespace\"} == 5)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Success",
"refId": "A"
},
{
"expr": "count(application_clone_status{namespace=~\"$Namespace\"} == 2)",
"expr": "count(stork_application_clone_status{namespace=~\"$Namespace\"} == 2)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "In Progress",
"refId": "C"
},
{
"expr": "count(application_clone_status{namespace=~\"$Namespace\"} == 6)",
"expr": "count(stork_application_clone_status{namespace=~\"$Namespace\"} == 6)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Partial Success",
"refId": "D"
},
{
"expr": "count(application_clone_status{namespace=~\"$Namespace\"} == 3)",
"expr": "count(stork_application_clone_status{namespace=~\"$Namespace\"} == 3)",
"format": "time_series",
"hide": false,
"instant": false,
Expand Down Expand Up @@ -1353,7 +1353,7 @@
"tableColumn": "",
"targets": [
{
"expr": "avg(application_clone_duration{namespace=~\"$Namespace\"})",
"expr": "avg(stork_application_clone_duration{namespace=~\"$Namespace\"})",
"format": "time_series",
"hide": false,
"instant": false,
Expand Down Expand Up @@ -1392,15 +1392,15 @@
]
},
"datasource": "stork",
"definition": "application_backup_status",
"definition": "stork_application_backup_status",
"error": null,
"hide": 0,
"includeAll": true,
"label": "Namespace",
"multi": true,
"name": "Namespace",
"options": [],
"query": "application_backup_status",
"query": "stork_application_backup_status",
"refresh": 1,
"regex": "/.*namespace=\"([^\"]*).*/",
"skipUrlSync": false,
Expand Down Expand Up @@ -1445,5 +1445,5 @@
"timezone": "",
"title": "Stork Application Metrics",
"uid": "pxBackup",
"version": 4
"version": 20
}
53 changes: 18 additions & 35 deletions specs/grafana/stork_migration_metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"gnetId": null,
"graphTooltip": 0,
"id": 2,
"iteration": 1608315386443,
"iteration": 1617863531578,
"links": [],
"panels": [
{
Expand Down Expand Up @@ -99,7 +99,7 @@
"tableColumn": "",
"targets": [
{
"expr": "count(clusterpair_scheduler_status{namespace=~\"$Namespace\"})",
"expr": "count(stork_clusterpair_scheduler_status{namespace=~\"$Namespace\"})",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
Expand Down Expand Up @@ -197,7 +197,7 @@
"tableColumn": "",
"targets": [
{
"expr": "count(migration_status{namespace=~\"$Namespace\",name=~\"$Name\"})",
"expr": "count(stork_migration_status{namespace=~\"$Namespace\",name=~\"$Name\"})",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
Expand Down Expand Up @@ -296,7 +296,7 @@
"tableColumn": "",
"targets": [
{
"expr": "avg(migration_duration{namespace=~\"$Namespace\", name=~\"$Name\"} )",
"expr": "avg(stork_migration_duration{namespace=~\"$Namespace\", name=~\"$Name\"} )",
"format": "time_series",
"hide": false,
"instant": false,
Expand Down Expand Up @@ -372,23 +372,23 @@
"steppedLine": false,
"targets": [
{
"expr": "count(clusterpair_scheduler_status{namespace=~\"$Namespace\"} == 2 and clusterpair_storage_status{namespace=~\"$Namespace\"} == 2)",
"expr": "count(stork_clusterpair_scheduler_status{namespace=~\"$Namespace\"} == 2 and stork_clusterpair_storage_status{namespace=~\"$Namespace\"} == 2)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Ready",
"refId": "A"
},
{
"expr": "count(clusterpair_storage_status{namespace=~\"$Namespace\"} == 1 or clusterpair_storage_status{namespace=~\"$Namespace\"} == 1)",
"expr": "count(stork_clusterpair_storage_status{namespace=~\"$Namespace\"} == 1 or stork_clusterpair_storage_status{namespace=~\"$Namespace\"} == 1)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Pending",
"refId": "C"
},
{
"expr": "count(clusterpair_storage_status{namespace=~\"$Namespace\"} == 3 or clusterpair_storage_status{namespace=~\"$Namespace\"} == 3)",
"expr": "count(stork_clusterpair_storage_status{namespace=~\"$Namespace\"} == 3 or stork_clusterpair_storage_status{namespace=~\"$Namespace\"} == 3)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
Expand Down Expand Up @@ -492,31 +492,31 @@
"steppedLine": false,
"targets": [
{
"expr": "count(migration_status{namespace=~\"$Namespace\", name=~\"$Name\"} == 5 and migration_stage{namespace=~\"$Namespace\", name=~\"$Name\"} == 5)",
"expr": "count(stork_migration_status{namespace=~\"$Namespace\", name=~\"$Name\"} == 5 and stork_migration_stage{namespace=~\"$Namespace\", name=~\"$Name\"} == 5)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Success",
"refId": "A"
},
{
"expr": "count(migration_status{namespace=~\"$Namespace\", name=~\"$Name\"} == 2)",
"expr": "count(stork_migration_status{namespace=~\"$Namespace\", name=~\"$Name\"} == 2)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "In Progress",
"refId": "C"
},
{
"expr": "count(migration_status{namespace=~\"$Namespace\", name=~\"$Name\"} == 4)",
"expr": "count(stork_migration_status{namespace=~\"$Namespace\", name=~\"$Name\"} == 4)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Partial Success",
"refId": "D"
},
{
"expr": "count(migration_status{namespace=~\"$Namespace\", name=~\"$Name\"} == 3)",
"expr": "count(stork_migration_status{namespace=~\"$Namespace\", name=~\"$Name\"} == 3)",
"format": "time_series",
"hide": false,
"instant": false,
Expand Down Expand Up @@ -579,38 +579,21 @@
{
"allValue": ".*",
"current": {
"tags": [],
"text": "All",
"value": [
"$__all"
]
},
"datasource": "stork",
"definition": "migration_status",
"definition": "stork_migration_status",
"hide": 0,
"includeAll": true,
"label": "Namespace",
"multi": true,
"name": "Namespace",
"options": [
{
"selected": true,
"text": "All",
"value": "$__all"
},
{
"selected": false,
"text": "kube-system",
"value": "kube-system"
},
{
"selected": false,
"text": "crdtest",
"value": "crdtest"
}
],
"query": "migration_status",
"refresh": 0,
"options": [],
"query": "stork_migration_status",
"refresh": 1,
"regex": "/.*namespace=\"([^\"]*).*/",
"skipUrlSync": false,
"sort": 0,
Expand All @@ -629,14 +612,14 @@
]
},
"datasource": "stork",
"definition": "migration_status",
"definition": "stork_migration_status",
"hide": 0,
"includeAll": true,
"label": "Name",
"multi": true,
"name": "Name",
"options": [],
"query": "migration_status",
"query": "stork_migration_status",
"refresh": 1,
"regex": "/.*name=\"([^\"]*).*/",
"skipUrlSync": false,
Expand Down Expand Up @@ -681,5 +664,5 @@
"timezone": "",
"title": "Stork Migration Metrics",
"uid": "vBjsS3JMz",
"version": 16
"version": 11
}

0 comments on commit 362c554

Please sign in to comment.