Skip to content

Commit

Permalink
AWS deploy: make a couple of dashboards dynamic
Browse files Browse the repository at this point in the history
Co-authored-by: Álvaro Alda <[email protected]>
  • Loading branch information
panchoh and aalda committed Apr 8, 2019
1 parent eb249d6 commit b777d3c
Show file tree
Hide file tree
Showing 3 changed files with 115 additions and 55 deletions.
62 changes: 45 additions & 17 deletions deploy/aws/provision/files/grafana/dashboards/Cache.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"editable": true,
"gnetId": null,
"graphTooltip": 2,
"id": 4,
"id": 1,
"links": [],
"panels": [
{
Expand Down Expand Up @@ -57,7 +57,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(qed_storage_block_cache_data_hit) by (job)",
"expr": "sum(qed_[[instance]]_block_cache_data_hit) by (job)",
"format": "time_series",
"hide": false,
"interval": "",
Expand All @@ -66,15 +66,15 @@
"refId": "A"
},
{
"expr": "sum(qed_storage_block_cache_data_miss) by (job)",
"expr": "sum(qed_[[instance]]_block_cache_data_miss) by (job)",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
"legendFormat": "miss_{{job}}",
"refId": "B"
},
{
"expr": "sum(qed_storage_block_cache_data_add) by (job)",
"expr": "sum(qed_[[instance]]_block_cache_data_add) by (job)",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
Expand Down Expand Up @@ -161,7 +161,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(qed_storage_block_cache_data_bytes_insert) by (job)",
"expr": "sum(qed_[[instance]]_block_cache_data_bytes_insert) by (job)",
"format": "time_series",
"hide": false,
"interval": "",
Expand Down Expand Up @@ -249,7 +249,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(qed_storage_block_cache_filter_hit) by (job)",
"expr": "sum(qed_[[instance]]_block_cache_filter_hit) by (job)",
"format": "time_series",
"hide": false,
"interval": "",
Expand All @@ -258,15 +258,15 @@
"refId": "A"
},
{
"expr": "sum(qed_storage_block_cache_filter_miss) by (job)",
"expr": "sum(qed_[[instance]]_block_cache_filter_miss) by (job)",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
"legendFormat": "miss_{{job}}",
"refId": "B"
},
{
"expr": "sum(qed_storage_block_cache_filter_add) by (job)",
"expr": "sum(qed_[[instance]]_block_cache_filter_add) by (job)",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
Expand Down Expand Up @@ -353,7 +353,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(qed_storage_block_cache_filter_bytes_insert) by (job)",
"expr": "sum(qed_[[instance]]_block_cache_filter_bytes_insert) by (job)",
"format": "time_series",
"hide": false,
"interval": "",
Expand All @@ -362,7 +362,7 @@
"refId": "A"
},
{
"expr": "sum(qed_storage_block_cache_filter_bytes_evict) by (job)",
"expr": "sum(qed_[[instance]]_block_cache_filter_bytes_evict) by (job)",
"format": "time_series",
"hide": false,
"interval": "",
Expand Down Expand Up @@ -450,7 +450,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(qed_storage_block_cache_index_hit) by (job)",
"expr": "sum(qed_[[instance]]_block_cache_index_hit) by (job)",
"format": "time_series",
"hide": false,
"interval": "",
Expand All @@ -459,15 +459,15 @@
"refId": "A"
},
{
"expr": "sum(qed_storage_block_cache_index_miss) by (job)",
"expr": "sum(qed_[[instance]]_block_cache_index_miss) by (job)",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
"legendFormat": "miss_{{job}}",
"refId": "B"
},
{
"expr": "sum(qed_storage_block_cache_index_add) by (job)",
"expr": "sum(qed_[[instance]]_block_cache_index_add) by (job)",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
Expand Down Expand Up @@ -554,7 +554,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(qed_storage_block_cache_index_bytes_insert) by (job)",
"expr": "sum(qed_[[instance]]_block_cache_index_bytes_insert) by (job)",
"format": "time_series",
"hide": false,
"interval": "",
Expand All @@ -563,7 +563,7 @@
"refId": "A"
},
{
"expr": "sum(qed_storage_block_cache_index_bytes_evict) by (job)",
"expr": "sum(qed_[[instance]]_block_cache_index_bytes_evict) by (job)",
"format": "time_series",
"hide": false,
"interval": "",
Expand Down Expand Up @@ -619,7 +619,35 @@
"style": "dark",
"tags": [],
"templating": {
"list": []
"list": [
{
"allValue": null,
"current": {
"text": "storage",
"value": "storage"
},
"hide": 0,
"includeAll": false,
"label": "Instance",
"multi": false,
"name": "instance",
"options": [
{
"selected": true,
"text": "storage",
"value": "storage"
},
{
"selected": false,
"text": "wal",
"value": "wal"
}
],
"query": "storage, wal",
"skipUrlSync": false,
"type": "custom"
}
]
},
"time": {
"from": "now-15m",
Expand Down Expand Up @@ -653,5 +681,5 @@
"timezone": "",
"title": "Cache Data, Filter, Index",
"uid": "gD89ti6mZ",
"version": 15
"version": 1
}
Loading

0 comments on commit b777d3c

Please sign in to comment.