faucet.gauge_prom module

Prometheus for Gauge.

class faucet.gauge_prom.GaugeFlowTablePrometheusPoller(conf, logname, prom_client)[source]

Bases: GaugeFlowTablePoller

Export flow table entries to Prometheus.

class faucet.gauge_prom.GaugeMeterStatsPrometheusPoller(conf, logger, prom_client)[source]

Bases: GaugePortStatsPoller

Exports meter stats to Prometheus.

class faucet.gauge_prom.GaugePortStatePrometheusPoller(conf, logname, prom_client)[source]

Bases: GaugePortStatePoller

Export port state changes to Prometheus.

no_response()[source]

Called when a polling cycle passes without receiving a response.

send_req()[source]

Send a stats request to a datapath.

class faucet.gauge_prom.GaugePortStatsPrometheusPoller(conf, logger, prom_client)[source]

Bases: GaugePortStatsPoller

Exports port stats to Prometheus.

class faucet.gauge_prom.GaugePrometheusClient(reg=None)[source]

Bases: PromClient

Wrapper for Prometheus client that is shared between all pollers.

reregister_flow_vars(table_name, table_tags)[source]

Register the flow variables needed for this client

reregister_nonflow_vars()[source]

Reset all metrics to empty.