monitoring: update builtin metrics (#2074)

Signed-off-by: huanggze <loganhuang@yunify.com>
This commit is contained in:
Guangzhe Huang
2020-05-15 10:20:01 +08:00
committed by GitHub
parent c3d74660d1
commit 044dd8eba3
3 changed files with 57 additions and 76 deletions

View File

@@ -24,10 +24,9 @@ import (
"sort"
)
// TODO(huanggze): the id value is dependent of Prometheus label-value pair (i.e. label_kubesphere_io_workspace). We should regulate the naming convention.
const (
IdentifierNode = "node"
IdentifierWorkspace = "label_kubesphere_io_workspace"
IdentifierWorkspace = "workspace"
IdentifierNamespace = "namespace"
IdentifierWorkload = "workload"
IdentifierPod = "pod"