Skip to content

Commit

Permalink
use pod name in filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhra303 committed Oct 10, 2023
1 parent b80e8fe commit 5df75b5
Showing 1 changed file with 21 additions and 25 deletions.
46 changes: 21 additions & 25 deletions monitoring/grafana-dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "max(max_over_time(dragonfly_uptime_in_seconds{instance=~\"$instance\"}[$__interval]))",
"expr": "max(max_over_time(dragonfly_uptime_in_seconds{pod=~\"$instance\"}[$__interval]))",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -248,7 +248,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "dragonfly_connected_clients{instance=~\"$instance\"}",
"expr": "dragonfly_connected_clients{pod=~\"$instance\"}",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -339,7 +339,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "100 * (dragonfly_memory_used_bytes{instance=~\"$instance\"} / dragonfly_memory_max_bytes{instance=~\"$instance\"} )",
"expr": "100 * (dragonfly_memory_used_bytes{pod=~\"$instance\"} / dragonfly_memory_max_bytes{pod=~\"$instance\"} )",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -411,7 +411,7 @@
"disableTextWrap": false,
"editorMode": "code",
"exemplar": false,
"expr": "dragonfly_role{instance=\"$instance\", role=\"master\"}",
"expr": "dragonfly_role{pod=\"$instance\", role=\"master\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": true,
Expand Down Expand Up @@ -486,7 +486,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "rate(dragonfly_commands_processed_total{instance=~\"$instance\"}[5m])",
"expr": "rate(dragonfly_commands_processed_total{pod=~\"$instance\"}[5m])",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -595,7 +595,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "dragonfly_memory_used_bytes{instance=~\"$instance\"} ",
"expr": "dragonfly_memory_used_bytes{pod=~\"$instance\"} ",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand All @@ -611,7 +611,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "dragonfly_memory_max_bytes{instance=~\"$instance\"} ",
"expr": "dragonfly_memory_max_bytes{pod=~\"$instance\"} ",
"format": "time_series",
"hide": false,
"interval": "",
Expand Down Expand Up @@ -713,7 +713,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "rate(dragonfly_net_input_bytes_total{instance=~\"$instance\"}[5m])",
"expr": "rate(dragonfly_net_input_bytes_total{pod=~\"$instance\"}[5m])",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand All @@ -727,7 +727,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "rate(dragonfly_net_output_bytes_total{instance=~\"$instance\"}[5m])",
"expr": "rate(dragonfly_net_output_bytes_total{pod=~\"$instance\"}[5m])",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -829,7 +829,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "sum (dragonfly_db_keys{instance=~\"$instance\"}) by (db)",
"expr": "sum (dragonfly_db_keys{pod=~\"$instance\"}) by (db)",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -930,7 +930,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "sum (dragonfly_db_keys{instance=~\"$instance\"}) - sum (dragonfly_db_keys_expiring{instance=~\"$instance\"}) ",
"expr": "sum (dragonfly_db_keys{pod=~\"$instance\"}) - sum (dragonfly_db_keys_expiring{pod=~\"$instance\"}) ",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand All @@ -945,7 +945,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "sum (dragonfly_db_keys_expiring{instance=~\"$instance\"})",
"expr": "sum (dragonfly_db_keys_expiring{pod=~\"$instance\"})",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -1071,7 +1071,7 @@
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "irate(dragonfly_connections_received_total{instance=\"$instance\"}[$__rate_interval])",
"expr": "irate(dragonfly_connections_received_total{pod=\"$instance\"}[$__rate_interval])",
"fullMetaSearch": false,
"includeNullMetadata": false,
"instant": false,
Expand Down Expand Up @@ -1142,7 +1142,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "dragonfly_connected_clients{instance=\"$instance\"}",
"expr": "dragonfly_connected_clients{pod=\"$instance\"}",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
Expand Down Expand Up @@ -1243,7 +1243,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "rate(dragonfly_keyspace_hits_total{instance=~\"$instance\"}[5m])",
"expr": "rate(dragonfly_keyspace_hits_total{pod=~\"$instance\"}[5m])",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand All @@ -1260,7 +1260,7 @@
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "rate(dragonfly_keyspace_misses_total{instance=~\"$instance\"}[5m])",
"expr": "rate(dragonfly_keyspace_misses_total{pod=~\"$instance\"}[5m])",
"hide": false,
"instant": false,
"legendFormat": "misses",
Expand Down Expand Up @@ -1312,11 +1312,7 @@
}
},
{
"aliasColors": {
"evicts": "#890F02",
"memcached_items_evicted_total{instance=\"172.17.0.1:9150\",job=\"prometheus\"}": "#890F02",
"reclaims": "#3F6833"
},
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
Expand Down Expand Up @@ -1380,7 +1376,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "sum(rate(dragonfly_expired_keys_total{instance=~\"$instance\"}[5m])) by (instance)",
"expr": "sum(rate(dragonfly_expired_keys_total{pod=~\"$instance\"}[5m])) by (instance)",
"format": "time_series",
"hide": false,
"interval": "",
Expand All @@ -1397,7 +1393,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "sum(rate(dragonfly_evicted_keys_total{instance=~\"$instance\"}[5m])) by (instance)",
"expr": "sum(rate(dragonfly_evicted_keys_total{pod=~\"$instance\"}[5m])) by (instance)",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -1452,15 +1448,15 @@
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"definition": "label_values(dragonfly_uptime_in_seconds,instance)",
"definition": "label_values(dragonfly_uptime_in_seconds,pod)",
"hide": 0,
"includeAll": false,
"label": "instance",
"multi": false,
"name": "instance",
"options": [],
"query": {
"query": "label_values(dragonfly_uptime_in_seconds,instance)",
"query": "label_values(dragonfly_uptime_in_seconds,pod)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
Expand Down

0 comments on commit 5df75b5

Please sign in to comment.