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

Add description for overview dashboard #908

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

YangKeao
Copy link
Member

Add description for grafana overview dashboard.

This json file was generated by grafana, and some fields like "scopedVars" was removed.

@YangKeao YangKeao requested a review from mahjonp August 22, 2019 09:02
@zhouqiang-cl
Copy link

zhouqiang-cl commented Aug 22, 2019

metric addr is http://172.16.4.253:3000/login

@YangKeao
Copy link
Member Author

Now only description related change was left.

@@ -56,9 +56,9 @@
},
"editable": true,
"gnetId": null,
"graphTooltip": 1,
"graphTooltip": 0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is graph tooltip turned off?

@@ -2471,6 +2508,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"description": " \tthe number of executed KV commands",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary \t.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

per second

@@ -689,6 +694,7 @@
"rgba(50, 172, 45, 0.97)"
],
"datasource": "${DS_TEST-CLUSTER}",
"description": "the total number of Regions of the current cluster",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the "R" in the word "Region" needn't be capitalized.

@@ -850,6 +858,7 @@
"#d44a3a"
],
"datasource": "${DS_TEST-CLUSTER}",
"description": "the Region ratio difference of the nodes with the biggest Region ratio and the smallest Region ratio",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@@ -769,6 +776,7 @@
"#d44a3a"
],
"datasource": "${DS_TEST-CLUSTER}",
"description": "the leader ratio difference of the nodes with the biggest leader ratio and the smallest leader ratio",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"description": "the leader ratio difference of the nodes with the biggest leader ratio and the smallest leader ratio",
"description": "the leader ratio difference between the node with the most leaders and that with the least leaders",

@@ -1039,6 +1054,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"description": "the 99th percentile duration to complete a pd-server request",
Copy link
Contributor

@sticnarf sticnarf Aug 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pd-server request -> PD request?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to complete -> of?

@@ -2561,6 +2588,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"description": "the execution time of the KV command",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

99 percentile

@@ -2652,6 +2680,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"description": "the number of TSO that TiDB obtains from PD",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

per second

@@ -2747,6 +2776,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"description": "the time consumed when TiDB obtains TSO from PD",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please confirm what it really means from TiDB developers?

@@ -2852,6 +2882,7 @@
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"decimals": 2,
"description": "the number of Region related errors returned by TiKV",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R -> r

@@ -2943,6 +2974,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"description": "the number of transaction related conflicts",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description is not accurate. Lock resolving doesn't mean conflicts. If you must add description to it, I prefer just use its literal meaning.

@@ -3130,6 +3163,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"description": "the number of errors returned by TiKV (such as transaction conflicts )",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary space

@@ -3035,6 +3067,7 @@
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"decimals": null,
"description": "the time consumed when TiDB obtains Schema from TiKV",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

schema is not obtained from tikv...

@@ -3986,6 +4028,7 @@
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"decimals": 1,
"description": "the number of commits on queue",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"description": "the number of commits on queue",
"description": "the number of commands in queue",

@@ -4166,6 +4210,7 @@
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"decimals": 5,
"description": "the time consumed by TiKV queries",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TiKV queries -> TiDB queries?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The handle time of each Coprocessor request

@@ -4471,6 +4518,7 @@
{
"columns": [],
"datasource": "${DS_TEST-CLUSTER}",
"description": " \tthe number of CPU cores",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary \t

@@ -5036,6 +5089,7 @@
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"decimals": 1,
"description": " \tthe statistics about network monitoring and TCP",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove leading \t

@@ -5126,6 +5180,7 @@
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"decimals": 0,
"description": "the disk usage ratio, 100% at a maximum; generally you need to consider adding a new node when the usage ratio is up to 80% ~ 90%",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the source of 80% ~ 90%?

@sticnarf
Copy link
Contributor

Actually, I think we don't need to add descriptions to all panels. For example, panel names like CPU usage or memory available are quite clear enough.

@YangKeao
Copy link
Member Author

@sticnarf All these descriptions are copied from here. As you have pointed out there are many mistakes. Maybe I could modify both places 😢 .

@@ -79,6 +79,7 @@
}
],
"datasource": "${DS_TEST-CLUSTER}",
"description": "the online nodes number of each service",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The number of online nodes

@@ -250,6 +251,7 @@
}
],
"datasource": "${DS_TEST-CLUSTER}",
"description": "the offline nodes number of each service",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The number of ...

@@ -522,6 +524,7 @@
],
"datasource": "${DS_TEST-CLUSTER}",
"decimals": null,
"description": "the total storage capacity of the TiDB cluster",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

of TiKV nodes?

@@ -606,6 +609,7 @@
],
"datasource": "${DS_TEST-CLUSTER}",
"decimals": 1,
"description": "the occupied storage capacity of the TiDB cluster",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The data size?

@@ -1039,6 +1054,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"description": "the 99th percentile duration to complete a pd-server request",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to complete -> of?

@@ -3702,6 +3741,7 @@
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"decimals": 1,
"description": "the data amount on different CFs in the cluster",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Data size?

@@ -4075,6 +4118,7 @@
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"decimals": 1,
"description": "the number of various query operations",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The total number of Coprocessor executors in received requests per second

@@ -4166,6 +4210,7 @@
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"decimals": 5,
"description": "the time consumed by TiKV queries",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The handle time of each Coprocessor request

@@ -4559,6 +4607,7 @@
{
"columns": [],
"datasource": "${DS_TEST-CLUSTER}",
"description": "the total memory",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The total memory of each node

@@ -4765,6 +4815,7 @@
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"decimals": 1,
"description": "the overload within 1 minute",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The load

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants