*What* Add a Prometheus exporter to App Metrics service in the Metrics APB
*Why* So that metrics about the App Metrics service can be captured, queried and visualised. This should be available by default in the Metrics APB if possible
*How* Expose a 'metrics' endpoint that automatically gets polled by Prometheus. The Golang client may help with this https://github.com/prometheus/client_golang
See examples of instrumented endpoints in a Golang server https://github.com/feedhenry/mcp-standalone/blob/19904cc681359fb1caac1740bb8ead6744b3d9d9/pkg/web/routes.go#L54-L93
and the metrics endpoint https://github.com/feedhenry/mcp-standalone/blob/19904cc681359fb1caac1740bb8ead6744b3d9d9/pkg/web/routes.go#L29-L43
NOTE: As a follow Follow up task, tasks * a Grafana Dashboard should be added to the Metrics APB to visualise the new metrics being exposed from the App Metrics Service
Some additional/dupe information is in * "Mobile Services" dashboard should have "Version" and "Provisioned" boxes for mobile app metrics application, similar to Keycloak and Sync. See the duplicate task for more information about this : AEROGEAR-2236 |
|