Add node metric: node_pleg_quantile

Signed-off-by: Rao Yunkun <yunkunrao@yunify.com>
This commit is contained in:
Rao Yunkun
2020-10-06 15:37:19 +08:00
parent a8c9be6dae
commit 97b054d99d
2 changed files with 2 additions and 0 deletions

View File

@@ -112,6 +112,7 @@ var NodeMetrics = []string{
"node_load5",
"node_load15",
"node_pod_abnormal_ratio",
"node_pleg_quantile",
}
var WorkspaceMetrics = []string{

View File

@@ -109,6 +109,7 @@ var promQLTemplates = map[string]string{
"node_load5": `node:load5:ratio{$1}`,
"node_load15": `node:load15:ratio{$1}`,
"node_pod_abnormal_ratio": `node:pod_abnormal:ratio{$1}`,
"node_pleg_quantile": `node_quantile:kubelet_pleg_relist_duration_seconds:histogram_quantile{$1}`,
// workspace
"workspace_cpu_usage": `round(sum by (workspace) (namespace:container_cpu_usage_seconds_total:sum_rate{namespace!="", $1}), 0.001)`,