kubernetes / kube-state-metrics

Add-on agent to generate and expose cluster-level metrics.
https://kubernetes.io/docs/concepts/cluster-administration/kube-state-metrics/
Apache License 2.0
5.37k stars 2k forks source link

Include hostport with kube_pod_info or create a many metric called kube_pod_port #2520

Open data-dude opened 2 hours ago

data-dude commented 2 hours ago

Could we please add hostPort to kube_pod_info or add a kube_pod_port metric?

This is needed because we would like to see all used hostports in our cluster. These are vulnerable and we should keep an eye on them.

It'd be nice to have a kube_pod_port metric that we could join with kube_pod_info to see all ports and specifically see all pods that are using hostport

k8s-ci-robot commented 2 hours ago

This issue is currently awaiting triage.

If kube-state-metrics contributors determine this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.