luxas / kubeadm-workshop

Showcasing a bare-metal multi-platform kubeadm setup with persistent storage and monitoring
MIT License
679 stars 190 forks source link

custom metrics prometheus adapter label name requirements #35

Closed emptywee closed 6 years ago

emptywee commented 6 years ago

Hello. This is duplicate to https://github.com/DirectXMan12/k8s-prometheus-adapter/issues/29, but I am not sure which repo is alive nowadays.

So forgive me if I ask in both.

Metrics must have the namespace label to be considered.

For each label on a metric, if that label name corresponds to a Kubernetes resource (like pod or service), the metric will be associated with that resource.

Is there any way to configure it? My labels are "kubernetes_namespace", "kubernetes_pod_name" and so forth. Therefore the metrics I need aren't captured by the adapter. I have an existing and long time running prometheus clusters all over the place, it would be potentially a breaking change to relabel everything.

What's the best way to go here?

Thank you!

emptywee commented 6 years ago

I was able to build it! Sorry for the trouble!