p3exporter package

Init methods for p3exporter package.

p3exporter.main()[source]

Start the application.

p3exporter.shutdown()[source]

Shutdown the app in a clean way.

p3exporter.signal_handler(signum, frame)[source]

Will be called if a signal was catched.

Subpackages

Submodules

p3exporter.web module

Web module provide all parts to create the web app.

p3exporter.web.create_app(config: p3exporter.collector.CollectorConfig)[source]

Create the web app.

This Function creates the flask app and dispatch metrics endpoint to prometheus wsgi app.

Parameters

config (CollectorConfig) – A configuration object with data for template rendering.

Returns

Created web app object.

Return type

DispatcherMiddleware