Monitoring self-hosted runners + jobs by runner_id

I am using self-hosted runners for GitHub Actions and I would love the ability to monitor workflow job metrics (execution time, success/failure, resource utilization) and from what repository they were executed within my organization.

I’ve reviewed https://developer.github.com/v3/actions/ and there doesn’t seem to be an api available to get workflows or workflow jobs from runner_id (no way to link runners with jobs).

Is there a recommended way forward here?

1 Like

I think this may be the best option moving forward. There is still no api available that links runners with the jobs they execute, which makes it impossible to correlate the health of a runner against the health of a job. But given other monitoring solutions posed here: https://docs.github.com/en/enterprise-server@2.22/admin/enterprise-management/setting-up-external-monitoring, the above seems like the best solution if you are running kuberenetes.