<p>I want to calculate the availability/uptime percentage of ephemeral pods runners that belong to GitHub Action runners.</p>
<p>How should promql query look like to calculate the uptime percentage of ephemeral runners/pods in kubernetes?</p>

semural
<p>There are a lot to consider in order for you to achieve your goals in monitoring the availability or uptime of ephemeral pod runners for GitHub Action runners. To start off,  you need a tool to do this like Grafana. This will help you monitor and visualize Kubernetes metrics. Also you need to define the criteria that you want to monitor. This is just fo help you start off but there are a lot of things to be done. Here are some helpful links for you. [1][2][3]</p>
<p>[1] <a href="https://grafana.com/docs/grafana/latest/setup-grafana/installation/kubernetes/" rel="nofollow noreferrer">https://grafana.com/docs/grafana/latest/setup-grafana/installation/kubernetes/</a></p>
<p>[2] <a href="https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners" rel="nofollow noreferrer">https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners</a></p>
<p>[3] <a href="https://kubernetes.io/docs/tasks/debug/debug-cluster/resource-metrics-pipeline/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/debug/debug-cluster/resource-metrics-pipeline/</a></p>
