Skip to content

Commit

Permalink
Merge pull request RedHatInsights#954 from Ellen-Yi-Dong/add_new_grafana
Browse files Browse the repository at this point in the history
Update datasource for grafana panels about RBAC Cache
  • Loading branch information
petracihalova authored Oct 25, 2023
2 parents ac607fb + 99f9d99 commit 98b18c5
Showing 1 changed file with 7 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@ apiVersion: v1
data:
rbac-grafana-prod-new.json: |-
{
"__inputs": [
{
"name": "DS_CRCP01UE1-PROMETHEUS",
"label": "crcp01ue1-prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__elements": {},
"__requires": [
{
Expand Down Expand Up @@ -101,8 +91,7 @@ data:
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CRCP01UE1-PROMETHEUS}"
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -210,8 +199,7 @@ data:
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CRCP01UE1-PROMETHEUS}"
"uid": "$datasource"
},
"editorMode": "code",
"expr": "sum(rate(redis_enable_cache_get_total {job=\"rbac-service\"}[30m]))",
Expand All @@ -221,8 +209,7 @@ data:
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CRCP01UE1-PROMETHEUS}"
"uid": "$datasource"
},
"editorMode": "code",
"expr": "sum(rate(redis_disable_cache_get_total {job=\"rbac-service\"}[30m]))",
Expand All @@ -237,8 +224,7 @@ data:
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CRCP01UE1-PROMETHEUS}"
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -285,8 +271,7 @@ data:
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CRCP01UE1-PROMETHEUS}"
"uid": "$datasource"
},
"editorMode": "code",
"expr": "sum(redis_enable_cache_get_total{job=\"rbac-service\"})",
Expand All @@ -300,8 +285,7 @@ data:
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CRCP01UE1-PROMETHEUS}"
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -364,8 +348,7 @@ data:
{
"collapsed": true,
"datasource": {
"type": "prometheus",
"uid": "PD776AFABBE26000A"
"uid": "$datasource"
},
"gridPos": {
"h": 1,
Expand Down

0 comments on commit 98b18c5

Please sign in to comment.