Healthcheck Middleware Metering¶
Oslo.middleware is going to provide a healthcheck middleware in order to monitor health of HTTP services. We want to monitor this middleware response code and time in Ceilometer in order to have analytics available.
The healthcheck functionnality provided by oslo.middleware will provide information about the health of a particular API service. It’ll be useful to retrieve periodically the state of the service in Ceilometer to have the ability to analyse these data.
Let’s write a pollster that polls the healthcheck middleware to generate samples measuring the response time of the middleware, and incorporating the status code as metadata.
In order to find which endpoints to poll, the pollster will rely on the EndpointDiscovery discover to find them.
Data model impact¶
REST API impact¶
Other end user impact¶
Other deployer impact¶
- Primary assignee:
- Other contributors:
- Ongoing maintainer:
Write a pollster
As all pollsters.
We should be able to test using unit testing and testing inside Tempest. Devstack should have support of this healthcheck middlware by default.
The new pollster should be documented the same way we do for others.
oslo.middleware healthcheck blueprint <https://blueprints.launchpad.net/oslo.middleware/+spec/oslo-middleware-healthcheck>_