我想计算属于GitHub Action runners的临时pod runners的可用性/可用性百分比。在kubernetes中,promql query应该如何计算临时runner/pod的百分比?
pxy2qtax1#
为了实现监控GitHub Action runners的临时pod runners的可用性或可用性的目标,需要考虑很多因素。首先,你需要一个像Grafana这样的工具来做这件事。这将帮助您监控和可视化Kubernetes指标。您还需要定义要监视的标准。这只是为了帮助你开始,但有很多事情要做。这里有一些对你有用的链接。[1][2][3][1][https://grafana.com/docs/grafana/latest/setup-grafana/installation/kubernetes/](https://grafana.com/docs/grafana/latest/setup-grafana/installation/kubernetes/)[2][https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners](https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners)[3][https://kubernetes.io/docs/tasks/debug/debug-cluster/resource-metrics-pipeline/](https://kubernetes.io/docs/tasks/debug/debug-cluster/resource-metrics-pipeline/)
1条答案
按热度按时间pxy2qtax1#
为了实现监控GitHub Action runners的临时pod runners的可用性或可用性的目标,需要考虑很多因素。首先,你需要一个像Grafana这样的工具来做这件事。这将帮助您监控和可视化Kubernetes指标。您还需要定义要监视的标准。这只是为了帮助你开始,但有很多事情要做。这里有一些对你有用的链接。[1][2][3]
[1][https://grafana.com/docs/grafana/latest/setup-grafana/installation/kubernetes/](https://grafana.com/docs/grafana/latest/setup-grafana/installation/kubernetes/)
[2][https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners](https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners)
[3][https://kubernetes.io/docs/tasks/debug/debug-cluster/resource-metrics-pipeline/](https://kubernetes.io/docs/tasks/debug/debug-cluster/resource-metrics-pipeline/)