Skip to content

Commit

Permalink
PMM-511 Please group all metrics on MongoDB Cluster Summary (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
adivinho authored and rnovikovP committed Mar 21, 2019
1 parent 0d2867e commit 2b471bf
Showing 1 changed file with 57 additions and 42 deletions.
99 changes: 57 additions & 42 deletions dashboards/MongoDB_Cluster_Summary.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"gnetId": null,
"graphTooltip": 1,
"id": null,
"iteration": 1529322310813,
"iteration": 1541579640259,
"links": [
{
"icon": "dashboard",
Expand Down Expand Up @@ -160,7 +160,7 @@
},
"gridPos": {
"h": 3,
"w": 6,
"w": 4,
"x": 0,
"y": 0
},
Expand Down Expand Up @@ -241,8 +241,8 @@
},
"gridPos": {
"h": 3,
"w": 6,
"x": 6,
"w": 3,
"x": 4,
"y": 0
},
"hideTimeOverride": true,
Expand Down Expand Up @@ -322,8 +322,8 @@
},
"gridPos": {
"h": 3,
"w": 6,
"x": 12,
"w": 3,
"x": 7,
"y": 0
},
"hideTimeOverride": true,
Expand Down Expand Up @@ -403,8 +403,8 @@
},
"gridPos": {
"h": 3,
"w": 6,
"x": 18,
"w": 3,
"x": 10,
"y": 0
},
"hideTimeOverride": true,
Expand Down Expand Up @@ -484,9 +484,9 @@
},
"gridPos": {
"h": 3,
"w": 6,
"x": 0,
"y": 3
"w": 3,
"x": 13,
"y": 0
},
"hideTimeOverride": true,
"id": 11,
Expand Down Expand Up @@ -565,9 +565,9 @@
},
"gridPos": {
"h": 3,
"w": 6,
"x": 6,
"y": 3
"w": 4,
"x": 16,
"y": 0
},
"hideTimeOverride": true,
"id": 5,
Expand Down Expand Up @@ -657,9 +657,9 @@
},
"gridPos": {
"h": 3,
"w": 6,
"x": 12,
"y": 3
"w": 4,
"x": 20,
"y": 0
},
"hideTimeOverride": true,
"id": 4,
Expand Down Expand Up @@ -740,7 +740,7 @@
"h": 7,
"w": 24,
"x": 0,
"y": 6
"y": 3
},
"id": 46,
"legend": {
Expand Down Expand Up @@ -772,6 +772,7 @@
"targets": [
{
"expr": "rate(mongodb_mongos_op_counters_total{cluster=\"$cluster\", type!=\"command\"}[$interval]) or irate(mongodb_mongos_op_counters_total{cluster=\"$cluster\", type!=\"command\"}[5m])",
"format": "time_series",
"hide": false,
"interval": "$interval",
"intervalFactor": 1,
Expand Down Expand Up @@ -831,10 +832,10 @@
"fill": 2,
"grid": {},
"gridPos": {
"h": 7,
"h": 8,
"w": 12,
"x": 0,
"y": 13
"y": 10
},
"id": 7,
"legend": {
Expand All @@ -844,6 +845,8 @@
"max": true,
"min": true,
"show": true,
"sort": "avg",
"sortDesc": true,
"total": false,
"values": true
},
Expand All @@ -862,6 +865,7 @@
"targets": [
{
"expr": "sum(mongodb_mongos_connections{cluster=\"$cluster\", state=\"current\"})",
"format": "time_series",
"hide": false,
"interval": "$interval",
"intervalFactor": 1,
Expand Down Expand Up @@ -921,10 +925,10 @@
"fill": 2,
"grid": {},
"gridPos": {
"h": 7,
"h": 8,
"w": 12,
"x": 12,
"y": 13
"y": 10
},
"id": 31,
"legend": {
Expand All @@ -934,6 +938,8 @@
"max": true,
"min": true,
"show": true,
"sort": "avg",
"sortDesc": true,
"total": false,
"values": true
},
Expand All @@ -952,6 +958,7 @@
"targets": [
{
"expr": "sum(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"} or mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"})",
"format": "time_series",
"hide": false,
"interval": "$interval",
"intervalFactor": 1,
Expand Down Expand Up @@ -1012,10 +1019,10 @@
"fill": 2,
"grid": {},
"gridPos": {
"h": 7,
"h": 8,
"w": 12,
"x": 0,
"y": 20
"y": 18
},
"id": 3,
"legend": {
Expand Down Expand Up @@ -1106,10 +1113,10 @@
"fill": 2,
"grid": {},
"gridPos": {
"h": 7,
"h": 8,
"w": 12,
"x": 12,
"y": 20
"y": 18
},
"id": 38,
"legend": {
Expand Down Expand Up @@ -1199,10 +1206,10 @@
"fill": 6,
"grid": {},
"gridPos": {
"h": 7,
"h": 8,
"w": 12,
"x": 0,
"y": 27
"y": 26
},
"id": 30,
"legend": {
Expand Down Expand Up @@ -1236,7 +1243,8 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(sum(rate(mongodb_mongod_op_counters_total{cluster=\"$cluster\", type!=\"command\"}[$interval]) or irate(mongodb_mongod_op_counters_total{cluster=\"$cluster\", type!=\"command\"}[5m])) by (instance) * on (instance) group_right mongodb_mongod_replset_my_state{cluster=\"$cluster\"} / mongodb_mongod_replset_my_state{cluster=\"$cluster\"}) by (set)",
"expr": "sum(sum(rate(mongodb_mongod_op_counters_total{cluster=\"$cluster\", type!=\"command\"}[$interval]) or \nirate(mongodb_mongod_op_counters_total{cluster=\"$cluster\", type!=\"command\"}[5m])) by (instance) * on (instance) group_right mongodb_mongod_replset_my_state{cluster=\"$cluster\"} / mongodb_mongod_replset_my_state{cluster=\"$cluster\"}) by (set)",
"format": "time_series",
"hide": false,
"interval": "$interval",
"intervalFactor": 1,
Expand Down Expand Up @@ -1312,10 +1320,10 @@
"fill": 6,
"grid": {},
"gridPos": {
"h": 7,
"h": 8,
"w": 12,
"x": 12,
"y": 27
"y": 26
},
"id": 41,
"legend": {
Expand Down Expand Up @@ -1346,7 +1354,8 @@
"steppedLine": false,
"targets": [
{
"expr": "mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"}",
"expr": "max_over_time(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"}[$interval]) or \nmax_over_time(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"}[5m])",
"format": "time_series",
"interval": "$interval",
"intervalFactor": 1,
"legendFormat": "{{shard}}",
Expand Down Expand Up @@ -1405,7 +1414,7 @@
"fill": 6,
"grid": {},
"gridPos": {
"h": 7,
"h": 8,
"w": 12,
"x": 0,
"y": 34
Expand Down Expand Up @@ -1441,6 +1450,7 @@
"targets": [
{
"expr": "sum(mongodb_mongod_connections{cluster=\"$cluster\", state=\"current\"} * on (instance) group_right mongodb_mongod_replset_my_state{cluster=\"$cluster\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\"}) by (set)",
"format": "time_series",
"hide": false,
"interval": "$interval",
"intervalFactor": 1,
Expand Down Expand Up @@ -1501,7 +1511,7 @@
"fill": 2,
"grid": {},
"gridPos": {
"h": 7,
"h": 8,
"w": 12,
"x": 12,
"y": 34
Expand Down Expand Up @@ -1536,6 +1546,7 @@
"targets": [
{
"expr": "sum(sum(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"} or mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}) by (instance) * on (instance) group_right mongodb_mongod_replset_my_state{cluster=\"$cluster\"} / mongodb_mongod_replset_my_state{cluster=\"$cluster\"}) by (set)",
"format": "time_series",
"hide": false,
"interval": "$interval",
"intervalFactor": 1,
Expand Down Expand Up @@ -1595,10 +1606,10 @@
"fill": 2,
"grid": {},
"gridPos": {
"h": 7,
"h": 8,
"w": 12,
"x": 0,
"y": 41
"y": 42
},
"id": 14,
"legend": {
Expand Down Expand Up @@ -1630,6 +1641,7 @@
"targets": [
{
"expr": "max(mongodb_mongod_replset_member_optime_date{cluster=\"$cluster\", state=\"PRIMARY\"}) by (set) - min(mongodb_mongod_replset_member_optime_date{cluster=\"$cluster\", state=\"SECONDARY\"}) by (set)",
"format": "time_series",
"hide": false,
"interval": "$interval",
"intervalFactor": 1,
Expand Down Expand Up @@ -1689,10 +1701,10 @@
"fill": 2,
"grid": {},
"gridPos": {
"h": 7,
"h": 8,
"w": 12,
"x": 12,
"y": 41
"y": 42
},
"id": 27,
"legend": {
Expand Down Expand Up @@ -1724,6 +1736,7 @@
"targets": [
{
"expr": "max(max(mongodb_mongod_replset_oplog_head_timestamp{cluster=\"$cluster\"}-mongodb_mongod_replset_oplog_tail_timestamp{cluster=\"$cluster\"}) by (instance) * on (instance) group_right mongodb_mongod_replset_my_state{cluster=\"$cluster\"} / mongodb_mongod_replset_my_state{cluster=\"$cluster\"}) by (set)",
"format": "time_series",
"hide": false,
"interval": "$interval",
"intervalFactor": 1,
Expand Down Expand Up @@ -1783,10 +1796,10 @@
"fill": 2,
"grid": {},
"gridPos": {
"h": 7,
"h": 8,
"w": 12,
"x": 0,
"y": 48
"y": 50
},
"id": 12,
"legend": {
Expand Down Expand Up @@ -1818,6 +1831,7 @@
"targets": [
{
"expr": "max(changes(mongodb_mongod_replset_member_election_date{cluster=\"$cluster\"}[$interval])) by (set)",
"format": "time_series",
"interval": "$interval",
"intervalFactor": 1,
"legendFormat": "{{set}}",
Expand Down Expand Up @@ -1876,10 +1890,10 @@
"fill": 2,
"grid": {},
"gridPos": {
"h": 7,
"h": 8,
"w": 12,
"x": 12,
"y": 48
"y": 50
},
"id": 22,
"legend": {
Expand Down Expand Up @@ -1911,6 +1925,7 @@
"targets": [
{
"expr": "max(max(mongodb_mongod_locks_time_locked_global_microseconds_total{cluster=\"$cluster\", database=\"Collection\"}) by (instance) * on (instance) group_right mongodb_mongod_replset_my_state{cluster=\"$cluster\"} / mongodb_mongod_replset_my_state{cluster=\"$cluster\"}) by (set)",
"format": "time_series",
"hide": false,
"interval": "$interval",
"intervalFactor": 1,
Expand Down

0 comments on commit 2b471bf

Please sign in to comment.