Score:0

how to configure a prometheus installation of openshift to include the labels of node role in the exporter?

ke flag

How to configure a prometheus installation of openshift to include the labels of node role in the exporter?

We want to alert based on cpu requests only on worker nodes

namespace_cpu:kube_pod_container_resource_requests:sum{kubernetes_node_role=~"worker"}

gives no datapoints and

namespace_cpu:kube_pod_container_resource_requests:sum 
Element Value
namespace_cpu:kube_pod_container_resource_requests:sum{namespace="aaaaa-dev"}   2.4
namespace_cpu:kube_pod_container_resource_requests:sum{namespace="dev-xxxxx"}   0.8600000000000001
namespace_cpu:kube_pod_container_resource_requests:sum{namespace="dev-yyyyy"}   1.2100000000000006
namespace_cpu:kube_pod_container_resource_requests:sum{namespace="dev-zzzzz"}   0.6

I have reviewed this documentation without success [1] https://docs.openshift.com/container-platform/3.11/install_config/prometheus_cluster_monitoring.html [2] https://prometheus.io/docs/prometheus/latest/configuration/configuration/

pt flag
What version of OpenShift are you running? You reference the 3.11 documentation, but that's quite old at this point.
Adrián Blázquez avatar
ke flag
the version is 4.10 :)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.