This merge request adds a metrics rendering function that makes it easier to use aioprometheus from within existing Python web framework applications, such as Vibora, Quart and aiohttp, where an existing web server is already available and there is no desire to start another server endpoint just to server Prometheus metrics.
The Service now makes use of the new render function.
A test was added to check the render function.
Tests are included that verify the render function operates as expected when used within various frameworks.
Docs have been updated.
Examples have been included which demonstrate how to use the render function within various frameworks.
Some examples where updated to use a fixed port instead of an ephemeral one to simplify matching docs to example code output.
The undocumented and untested discovery service feature was removed.
The version has been bumped in preparation for a new release.
The requirements have been updated as a recent feature from aiohttp 3.3.2 is now being used instead of accessing non-public internal attributes.
This merge request adds a metrics rendering function that makes it easier to use aioprometheus from within existing Python web framework applications, such as Vibora, Quart and aiohttp, where an existing web server is already available and there is no desire to start another server endpoint just to server Prometheus metrics.
This resolves #27