提交 9aad6bd3 编写于 作者: G Ganlin Zhao

[TD-6452]<feature>: taoskeeper add request metrics

上级 81c0f491
...@@ -699,7 +699,7 @@ static int32_t monBuildNetworkIOSql(char *sql) { ...@@ -699,7 +699,7 @@ static int32_t monBuildNetworkIOSql(char *sql) {
return sprintf(sql, ", %f, %f", netInKb, netOutKb); return sprintf(sql, ", %f, %f", netInKb, netOutKb);
} }
static int32_t monBuildReqRateSql(char *sql) { static int32_t monBuildDnodeReqRateSql(char *sql) {
SStatisInfo info = dnodeGetStatisInfo(); SStatisInfo info = dnodeGetStatisInfo();
float interval = tsMonitorInterval * 1.0; float interval = tsMonitorInterval * 1.0;
float httpReqRate = info.httpReqNum / interval; float httpReqRate = info.httpReqNum / interval;
...@@ -837,7 +837,7 @@ static void monSaveDnodesInfo() { ...@@ -837,7 +837,7 @@ static void monSaveDnodesInfo() {
pos += monBuildDnodeDiskSql(sql + pos); pos += monBuildDnodeDiskSql(sql + pos);
pos += monBuildNetworkIOSql(sql + pos); pos += monBuildNetworkIOSql(sql + pos);
pos += monBuildIoSql(sql + pos); pos += monBuildIoSql(sql + pos);
pos += monBuildReqRateSql(sql + pos); pos += monBuildDnodeReqRateSql(sql + pos);
pos += monBuildDnodeErrorsSql(sql + pos); pos += monBuildDnodeErrorsSql(sql + pos);
pos += monBuildDnodeVnodesSql(sql + pos); pos += monBuildDnodeVnodesSql(sql + pos);
pos += monBuildDnodeMnodeSql(sql + pos); pos += monBuildDnodeMnodeSql(sql + pos);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册