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

Dashboard: improve chunk cache chart, give rows names #1184

Merged
merged 3 commits into from
Dec 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* disable tracing for healthchecks #1054
* Expose AdvertiseAddr from the clustering configuration #1063 , #1097
* set sarama client KafkaVersion via config #1103
* Add cache overhead accounting #1090
* Add cache overhead accounting #1090, #1184
* document cache delete #1122
* support per-org `metrics_active` for scraping by prometheus #1160
* fix idx active metrics setting #1169
Expand Down
87 changes: 29 additions & 58 deletions dashboards/main/metrictank.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"id": 37,
"panels": [],
"repeat": null,
"title": "Row",
"title": "key stats",
"type": "row"
},
{
Expand Down Expand Up @@ -726,7 +726,7 @@
"id": 39,
"panels": [],
"repeat": null,
"title": "New row",
"title": "memory, cpu and latency",
"type": "row"
},
{
Expand Down Expand Up @@ -1209,7 +1209,7 @@
"id": 40,
"panels": [],
"repeat": null,
"title": "Dashboard Row",
"title": "requests stats 1",
"type": "row"
},
{
Expand Down Expand Up @@ -1498,7 +1498,7 @@
"id": 41,
"panels": [],
"repeat": null,
"title": "New row",
"title": "requests stats 2",
"type": "row"
},
{
Expand Down Expand Up @@ -1857,7 +1857,7 @@
"id": 42,
"panels": [],
"repeat": null,
"title": "New row",
"title": "store stats 1",
"type": "row"
},
{
Expand Down Expand Up @@ -2224,7 +2224,7 @@
"id": 43,
"panels": [],
"repeat": null,
"title": "New row",
"title": "store stats 2",
"type": "row"
},
{
Expand Down Expand Up @@ -2548,7 +2548,7 @@
"id": 44,
"panels": [],
"repeat": null,
"title": "New row",
"title": "store stats 3",
"type": "row"
},
{
Expand Down Expand Up @@ -3068,10 +3068,10 @@
"aliasColors": {
"add-to-bulk-index-fail": "#BF1B00",
"add-to-bulk-index-ok": "#3F6833",
"cassandra.fail": "#E24D42",
"cassandra.ok": "#3F6833",
"bigtable.fail": "#E24D42",
"bigtable.ok": "#3F6833",
"cassandra.fail": "#E24D42",
"cassandra.ok": "#3F6833",
"indexed-fail": "#E0752D",
"indexed-ok": "#629E51",
"max": "#DEDAF7",
Expand Down Expand Up @@ -3640,45 +3640,14 @@
"renderer": "flot",
"seriesOverrides": [
{
"alias": "used",
"lines": false,
"pointradius": 1,
"points": true,
"yaxis": 2
},
{
"alias": "max",
"lines": false,
"pointradius": 1,
"points": true,
"yaxis": 2
},
{
"alias": "chunk",
"lines": false,
"pointradius": 1,
"points": true,
"yaxis": 2
},
{
"alias": "total used",
"lines": false,
"points": true,
"pointradius": 1,
"yaxis": 2
},
{
"alias": "flat",
"lines": false,
"points": true,
"pointradius": 1,
"yaxis": 2
"alias": "/^(lru|flat|chunk|used)$/",
"fill": 6,
"linewidth": 0,
"stack": "A"
},
{
"alias": "lru",
"lines": false,
"points": true,
"pointradius": 1,
"alias": "utilisation",
"dashes": true,
"yaxis": 2
}
],
Expand All @@ -3687,34 +3656,36 @@
"steppedLine": false,
"targets": [
{
"refCount": 0,
"refCount": 1,
"refId": "A",
"target": "alias(sumSeries(metrictank.stats.$environment.$instance.cache.size.max.gauge64), 'max')",
"textEditor": false
},
{
"refCount": -1,
"refCount": 0,
"refId": "B",
"target": "alias(sumSeries(metrictank.stats.$environment.$instance.cache.size.used.gauge64), 'used')"
},
{
"refCount": 0,
"refId": "C",
"target": "alias(divideSeries(sumSeries(metrictank.stats.$environment.$instance.cache.size.used.gauge64),sumSeries(metrictank.stats.$environment.$instance.cache.size.max.gauge64)), 'utilisation')",
"target": "alias(divideSeries(#B,#A), 'utilisation')",
"targetFull": "alias(divideSeries(alias(sumSeries(metrictank.stats.$environment.$instance.cache.size.used.gauge64), 'used'),alias(sumSeries(metrictank.stats.$environment.$instance.cache.size.max.gauge64), 'max')), 'utilisation')",
"textEditor": true
},
{
"hide": false,
"refCount": 0,
"refId": "D",
"target": "groupByNodes(aliasByNode(metrictank.stats.$environment.$instance.cache.overhead.*.gauge64, 6), 'sum', 0)",
"refCount": -1,
"hide": false
"target": "sortByName(groupByNodes(aliasByNode(metrictank.stats.$environment.$instance.cache.overhead.*.gauge64, 6), 'sum', 0))",
"textEditor": false
},
{
"refCount": 0,
"refId": "E",
"target": "alias(sum(#B, #D),'total used')",
"textEditor": true,
"targetFull": "alias(sum(alias(sumSeries(metrictank.stats.$environment.$instance.cache.size.used.gauge64), 'used'), groupByNodes(aliasByNode(metrictank.stats.$environment.$instance.cache.overhead.*.gauge64, 6), 'sum', 0)),'total used')"
"targetFull": "alias(sum(alias(sumSeries(metrictank.stats.$environment.$instance.cache.size.used.gauge64), 'used'), sortByName(groupByNodes(aliasByNode(metrictank.stats.$environment.$instance.cache.overhead.*.gauge64, 6), 'sum', 0))),'total used')",
"textEditor": true
}
],
"thresholds": [],
Expand All @@ -3724,7 +3695,7 @@
"tooltip": {
"msResolution": false,
"shared": true,
"sort": 0,
"sort": 1,
"value_type": "cumulative"
},
"type": "graph",
Expand All @@ -3737,15 +3708,15 @@
},
"yaxes": [
{
"format": "percentunit",
"format": "bytes",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "bytes",
"format": "percentunit",
"label": null,
"logBase": 1,
"max": null,
Expand Down Expand Up @@ -4352,4 +4323,4 @@
"title": "Metrictank",
"uid": "tQW3QShiz",
"version": 5
}
}