eslam-gomaa / kptop

A Python tool that offers beautiful CLI monitoring based on Prometheus metrics, with Kubernetes integration through PodPortForward
https://eslam-gomaa.github.io/kptop/
GNU General Public License v3.0
277 stars 11 forks source link

automate / allow using a tunnel or port-forward for prometheus endpoint #11

Closed strowi closed 1 year ago

strowi commented 1 year ago

Hi,

neat tool;) Have you thought about automating and allowing to use a port-forward or tunnel to the (not-exposed) prometheus-service?

That would ease multi-cluster usage. Allowing to do sth. like export KPTOP_PROMETHEUS_SERVER="http://127.0.0.1:8080 once and just use the current kubectl-context to create the tunnel etc without any more manual steps?

regards, strowi

eslam-gomaa commented 1 year ago

Hi @strowi , Nice idea!

I'll try it later with Kubernetes apis and get back to you

eslam-gomaa commented 1 year ago

Feature added

33