faucet.prom_client module

Implement Prometheus client.

class faucet.prom_client.PromClient(reg=None)[source]

Bases: object

Prometheus client.

REQUIRED_LABELS = ['dp_id', 'dp_name']
start(prom_port, prom_addr, use_test_thread=False)[source]

Start webserver.

faucet.prom_client.make_wsgi_app(registry)[source]

Create a WSGI app which serves the metrics from a registry.