faucet.faucet_metrics module

Implement Prometheus statistics.

class faucet.faucet_metrics.FaucetMetrics(reg=None)[source]

Bases: faucet.prom_client.PromClient

Container class for objects that can be exported to Prometheus.

inc_var(var, labels, val=1)[source]
reset_dpid(dp_labels)[source]

Set all DPID-only counter/gauges to 0.