Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit fbec830

Browse files
authored
Merge pull request #1266 from grafana/dash-findcache-tweak
better findCache charts. add hit rate
2 parents 88830e3 + 6c9d25d commit fbec830

File tree

1 file changed

+120
-29
lines changed

1 file changed

+120
-29
lines changed

dashboards/main/metrictank.json

+120-29
Original file line numberDiff line numberDiff line change
@@ -3428,7 +3428,7 @@
34283428
"fill": 0,
34293429
"gridPos": {
34303430
"h": 4,
3431-
"w": 12,
3431+
"w": 8,
34323432
"x": 0,
34333433
"y": 66
34343434
},
@@ -3453,9 +3453,16 @@
34533453
"seriesOverrides": [
34543454
{
34553455
"alias": "backoff",
3456+
"dashes": true,
3457+
"fill": 0,
3458+
"linewidth": 3,
3459+
"yaxis": 2
3460+
},
3461+
{
3462+
"alias": "/entries/",
34563463
"fill": 6,
34573464
"linewidth": 0,
3458-
"yaxis": 2
3465+
"stack": "A"
34593466
}
34603467
],
34613468
"spaceLength": 10,
@@ -3465,19 +3472,19 @@
34653472
{
34663473
"refCount": 0,
34673474
"refId": "B",
3468-
"target": "alias(metrictank.stats.$environment.$instance.idx.memory.find-cache.entries.gauge32, 'entries')"
3475+
"target": "aliasByNode(metrictank.stats.$environment.$instance.idx.memory.find-cache.entries.gauge32, 7, 3)"
34693476
},
34703477
{
34713478
"refCount": 0,
34723479
"refId": "C",
3473-
"target": "alias(metrictank.stats.$environment.$instance.idx.memory.find-cache.backoff.gauge32, 'backoff')"
3480+
"target": "alias(sumSeries(metrictank.stats.$environment.$instance.idx.memory.find-cache.backoff.gauge32), 'backoff')"
34743481
}
34753482
],
34763483
"thresholds": [],
34773484
"timeFrom": null,
34783485
"timeRegions": [],
34793486
"timeShift": null,
3480-
"title": "find cache",
3487+
"title": "find cache entries & backoff",
34813488
"tooltip": {
34823489
"shared": true,
34833490
"sort": 0,
@@ -3516,20 +3523,18 @@
35163523
},
35173524
{
35183525
"aliasColors": {
3519-
"invalidation.drop": "#f29191",
3520-
"invalidation.exec": "#5195ce",
3521-
"invalidation.recv": "#ba43a9",
3526+
"hit-rate": "#1f78c1",
35223527
"miss": "#e0752d"
35233528
},
35243529
"bars": false,
35253530
"dashLength": 10,
35263531
"dashes": false,
35273532
"datasource": "$datasource",
3528-
"fill": 1,
3533+
"fill": 10,
35293534
"gridPos": {
35303535
"h": 4,
3531-
"w": 12,
3532-
"x": 12,
3536+
"w": 8,
3537+
"x": 8,
35333538
"y": 66
35343539
},
35353540
"id": 57,
@@ -3543,7 +3548,7 @@
35433548
"values": false
35443549
},
35453550
"lines": true,
3546-
"linewidth": 1,
3551+
"linewidth": 0,
35473552
"links": [],
35483553
"nullPointMode": "null",
35493554
"percentage": false,
@@ -3552,44 +3557,130 @@
35523557
"renderer": "flot",
35533558
"seriesOverrides": [
35543559
{
3555-
"alias": "invalidation.recv",
3560+
"alias": "hit-rate",
3561+
"dashes": true,
3562+
"fill": 0,
3563+
"linewidth": 3,
3564+
"stack": false,
35563565
"yaxis": 2
3566+
}
3567+
],
3568+
"spaceLength": 10,
3569+
"stack": true,
3570+
"steppedLine": false,
3571+
"targets": [
3572+
{
3573+
"refCount": 1,
3574+
"refId": "A",
3575+
"target": "groupByNode(metrictank.stats.$environment.$instance.idx.memory.find-cache.ops.*.rate32, 8, 'sum')"
35573576
},
35583577
{
3559-
"alias": "invalidation.exec",
3560-
"yaxis": 2
3578+
"hide": true,
3579+
"refCount": 1,
3580+
"refId": "B",
3581+
"target": "alias(sumSeries(keepLastValue(metrictank.stats.$environment.$instance.idx.memory.find-cache.ops.*.rate32, 10)), 'sum')",
3582+
"textEditor": false
35613583
},
35623584
{
3563-
"alias": "invalidation.drop",
3564-
"yaxis": 2
3585+
"refCount": 0,
3586+
"refId": "C",
3587+
"target": "alias(asPercent(sumSeries(keepLastValue(metrictank.stats.$environment.$instance.idx.memory.find-cache.ops.hit.rate32, 10)), #B), 'hit-rate')",
3588+
"targetFull": "alias(asPercent(sumSeries(keepLastValue(metrictank.stats.$environment.$instance.idx.memory.find-cache.ops.hit.rate32, 10)), alias(sumSeries(keepLastValue(metrictank.stats.$environment.$instance.idx.memory.find-cache.ops.*.rate32, 10)), 'sum')), 'hit-rate')"
3589+
}
3590+
],
3591+
"thresholds": [],
3592+
"timeFrom": null,
3593+
"timeRegions": [],
3594+
"timeShift": null,
3595+
"title": "find cache hit/miss",
3596+
"tooltip": {
3597+
"shared": true,
3598+
"sort": 0,
3599+
"value_type": "individual"
3600+
},
3601+
"type": "graph",
3602+
"xaxis": {
3603+
"buckets": null,
3604+
"mode": "time",
3605+
"name": null,
3606+
"show": true,
3607+
"values": []
3608+
},
3609+
"yaxes": [
3610+
{
3611+
"format": "hertz",
3612+
"label": null,
3613+
"logBase": 1,
3614+
"max": null,
3615+
"min": null,
3616+
"show": true
35653617
},
35663618
{
3567-
"alias": "/invalidation/",
3568-
"fill": 3,
3569-
"linewidth": 0,
3570-
"stack": "A"
3619+
"format": "percent",
3620+
"label": null,
3621+
"logBase": 1,
3622+
"max": null,
3623+
"min": null,
3624+
"show": true
35713625
}
35723626
],
3627+
"yaxis": {
3628+
"align": false,
3629+
"alignLevel": null
3630+
}
3631+
},
3632+
{
3633+
"aliasColors": {
3634+
"drop": "#f2c96d",
3635+
"exec": "#5195ce",
3636+
"recv": "#962d82"
3637+
},
3638+
"bars": false,
3639+
"dashLength": 10,
3640+
"dashes": false,
3641+
"datasource": "$datasource",
3642+
"fill": 10,
3643+
"gridPos": {
3644+
"h": 4,
3645+
"w": 8,
3646+
"x": 16,
3647+
"y": 66
3648+
},
3649+
"id": 58,
3650+
"legend": {
3651+
"avg": false,
3652+
"current": false,
3653+
"max": false,
3654+
"min": false,
3655+
"show": true,
3656+
"total": false,
3657+
"values": false
3658+
},
3659+
"lines": true,
3660+
"linewidth": 0,
3661+
"links": [],
3662+
"nullPointMode": "null",
3663+
"percentage": false,
3664+
"pointradius": 5,
3665+
"points": false,
3666+
"renderer": "flot",
3667+
"seriesOverrides": [],
35733668
"spaceLength": 10,
3574-
"stack": false,
3669+
"stack": true,
35753670
"steppedLine": false,
35763671
"targets": [
35773672
{
35783673
"refCount": 0,
35793674
"refId": "A",
3580-
"target": "groupByNode(metrictank.stats.$environment.$instance.idx.memory.find-cache.ops.*.rate32, 8, 'sum')"
3581-
},
3582-
{
3583-
"refCount": 0,
3584-
"refId": "D",
3585-
"target": "groupByNodes(metrictank.stats.$environment.$instance.idx.memory.find-cache.invalidation.*.rate32, 'sum', 7, 8)"
3675+
"target": "groupByNode(metrictank.stats.$environment.$instance.idx.memory.find-cache.invalidation.*.rate32, 8, 'sum')",
3676+
"textEditor": false
35863677
}
35873678
],
35883679
"thresholds": [],
35893680
"timeFrom": null,
35903681
"timeRegions": [],
35913682
"timeShift": null,
3592-
"title": "find cache",
3683+
"title": "find cache invalidations",
35933684
"tooltip": {
35943685
"shared": true,
35953686
"sort": 0,

0 commit comments

Comments
 (0)