Open Ryu-Z opened 2 years ago
I also encountered the same problem. I could not get indicators such as label_alpha_eksctl_io_cluster_name. However, when I looked at the label of node in the cluster, all of them were available. For node, it seems that only node IP, instance, job, and container information can be obtained
The current version is 0.11, which uses the default configuration of the project and only changes the node selector in namespace and env. Does anyone know the reason for this? I've been doing some research, kubernetes mentions Flags --metric-blacklist and --metric-whitelist were renamed to --metric-denylist and --metric-allowlist.--metric-labels-allowlist allows you to specify a list of Kubernetes labels that get turned into the dimensions of the kube_< resource-name> _labels metrics. By default, the metric contains only name and namespace labels. i have try the setting, but kube_node_labels still has the same label. Pls help
according to - https://github.com/kubernetes/kube-state-metrics/issues/1716 this is the correct value which seem to work
kube-state-metrics.extraArgs:
- --metric-labels-allowlist=nodes=[*]
I would be interested in that to. These information are necessary to for example create a metric of which instance types are deployed and how many cores have been given to them.
I would expect labels to be shown like here: https://github.com/kubernetes/kube-state-metrics/issues/2009
kube-state-metrics cant get node label
when i use kube-prometheus, i cant get node label from metrics: kube_node_labels{job="kube-state-metrics"}
imgae
args
clusterRole
prometheus sql
i got