Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
Add metrics of blob file status to grafana (#821)
Browse files Browse the repository at this point in the history
* add metrics for blob file of titan to grafana and fix a typo
  • Loading branch information
GlitterIsMe authored and Connor1996 committed Jul 12, 2019
1 parent 639600b commit c28682b
Showing 1 changed file with 298 additions and 1 deletion.
299 changes: 298 additions & 1 deletion scripts/tikv_details.json
Original file line number Diff line number Diff line change
Expand Up @@ -17229,7 +17229,7 @@
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "Compression reason",
"title": "Compaction reason",
"tooltip": {
"shared": true,
"sort": 0,
Expand Down Expand Up @@ -18223,6 +18223,303 @@
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"fill": 1,
"gridPos": {
"h": 6,
"w": 10,
"x": 10,
"y": 51
},
"id": 3523,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"paceLength": 10,
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"scopedVars": {
"db": {
"selected": false,
"text": "kv",
"value": "kv"
}
},
"seriesOverrides": [],
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "avg(tikv_engine_titandb_live_blob_size{instance=~\"$instance\", db=\"$db\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "live blob size",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Live blob size",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "bytes",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"fill": 1,
"gridPos": {
"h": 6,
"w": 10,
"x": 0,
"y": 57
},
"id": 3555,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"paceLength": 10,
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"scopedVars": {
"db": {
"selected": false,
"text": "kv",
"value": "kv"
}
},
"seriesOverrides": [],
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "avg(tikv_engine_titandb_num_live_blob_file{instance=~\"$instance\", db=\"$db\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "live blob file num",
"refId": "A"
},
{
"expr": "avg(tikv_engine_titandb_num_obsolete_blob_file{instance=~\"$instance\", db=\"$db\"})",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
"legendFormat": "obsolete blob file num",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Blob file",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"fill": 1,
"gridPos": {
"h": 6,
"w": 10,
"x": 10,
"y": 57
},
"id": 3557,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"paceLength": 10,
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"scopedVars": {
"db": {
"selected": false,
"text": "kv",
"value": "kv"
}
},
"seriesOverrides": [],
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "avg(tikv_engine_titandb_live_blob_file_size{instance=~\"$instance\", db=\"$db\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "live blob file size",
"refId": "A"
},
{
"expr": "avg(tikv_engine_titandb_obsolete_blob_file_size{instance=~\"$instance\", db=\"$db\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "obsolete blob file size",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Blob file size",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "bytes",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"repeat": "db",
Expand Down

0 comments on commit c28682b

Please sign in to comment.