Description
In GHES version 3.15 they added a new API for managing GHES servers. Release notes can be found here:
https://docs.github.com/en/enterprise-server@3.15/admin/release-notes#3.15.0-retired
Searching repository i could not find any mention of this API
https://docs.github.com/en/enterprise-server@3.15/rest/enterprise-admin/manage-ghes?apiVersion=2022-11-28#about-the-manage-github-enterprise-server-api
Why is this required
We have a small exporter for prometheus running on GHES node to expose metrics about services, and alert us for possible failures or errors.
With new API:
https://docs.github.com/en/enterprise-server@3.15/rest/enterprise-admin/manage-ghes?apiVersion=2022-11-28#get-the-status-of-services-running-on-all-cluster-nodes
we can run this off host, which will also make upgrades easier, since we don't need to copy binary and do firewall/systemd changes for it.