prometheus_aioexporter/web.py
def _make_application(self) -> Application:
        """Setup an :class:`aiohttp.web.Application`."""
        app = Application()
        app['exporter'] = self
        app.router.add_get('/', self._handle_home)
        app.router.add_get('/metrics', self._handle_metrics)
        app.on_startup.append(self._log_startup_message)
        return app
def _make_application(self) -> Application:
        """Setup an :class:`aiohttp.web.Application`."""
        app = Application()
        app['exporter'] = self
        app.router.add_get('/', self._handle_home)
        app.router.add_get('/metrics', self._handle_metrics)
        app.on_startup.append(self._log_startup_message)
        return app
def _make_application ( self ) -> Application : app = Application ( ) app [ 'exporter' ] = self app . router . add_get ( '/' , self . _handle_home ) app . router . add_get ( '/metrics' , self . _handle_metrics ) app . on_startup . append ( self . _log_startup_message ) return app
Setup an :class:`aiohttp.web.Application`.
Setup an : class : aiohttp . web . Application .