Skip to content

Commit

Permalink
add k8sgpt label on grafana dashboard panel
Browse files Browse the repository at this point in the history
Signed-off-by: JuHyung-Son <sonju0427@gmail.com>
  • Loading branch information
JuHyung-Son committed Mar 1, 2024
1 parent 241fdc6 commit 0811135
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion grafana/custom-metrics/custom-metrics-dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
{
"datasource": "${DS_PROMETHEUS}",
"exemplar": true,
"expr": "sum(rate(k8sgpt_reconcile_error_count{job=\"$job\", namespace=\"$namespace\"}[5m])) by (instance, pod)",
"expr": "sum(rate(k8sgpt_reconcile_error_count{job=\"$job\", namespace=\"$namespace\"}[5m])) by (instance, pod, k8sgpt)",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down
8 changes: 4 additions & 4 deletions grafana/k8sgpt-overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (kind) (k8sgpt_number_of_results_by_type)",
"expr": "sum by (kind, k8sgpt) (k8sgpt_number_of_results_by_type)",
"legendFormat": "__auto",
"range": true,
"refId": "A"
Expand Down Expand Up @@ -192,7 +192,7 @@
"uid": "prometheus"
},
"editorMode": "builder",
"expr": "sum(k8sgpt_number_of_results)",
"expr": "sum by (k8sgpt) (k8sgpt_number_of_results)",
"range": true,
"refId": "A"
}
Expand Down Expand Up @@ -279,7 +279,7 @@
"uid": "prometheus"
},
"editorMode": "builder",
"expr": "count by(kind) (k8sgpt_number_of_results_by_type)",
"expr": "count by(kind, k8sgpt) (k8sgpt_number_of_results_by_type)",
"hide": false,
"range": true,
"refId": "A"
Expand Down Expand Up @@ -701,4 +701,4 @@
"uid": "U82QyO8Vz",
"version": 8,
"weekStart": ""
}
}

0 comments on commit 0811135

Please sign in to comment.