faucet.watcher_conf module

Gauge watcher configuration.

class faucet.watcher_conf.WatcherConf(_id, dp_id, conf, prom_client)[source]

Bases: faucet.conf.Conf

Gauge watcher configuration.

add_db(db_conf)[source]

Add database config to this watcher.

add_dp(dp)[source]

Add a datapath to this watcher.

all_dps = None
db = None
defaults = {'influx_retries': 3, 'nosql_db': '', 'db_type': 'text', 'file': None, 'db_password': '', 'db_ip': '', 'influx_timeout': 10, 'db_port': 0, 'switches_doc': '', 'interval': 30, 'influx_port': 8086, 'dps': None, 'db_update_counter': 0, 'views': {}, 'gdb_type': '', 'type': None, 'prometheus_port': 9303, 'flows_doc': '', 'driver': '', 'compress': False, 'db': None, 'name': None, 'db_username': '', 'influx_db': 'faucet', 'influx_host': 'localhost', 'prometheus_addr': '127.0.0.1', 'influx_pwd': '', 'influx_user': '', 'all_dps': False}
dp = None
prom_client = None