BccMonitor
BccMonitoruse bcc.as backend to monitor the kernel tracepoints.
- class duetector.monitors.bcc_monitor.BccMonitor(config: dict[str, Any] | None = None, *args, **kwargs)[source]
Bases:
MonitorA monitor use bcc.BPF host
- Special config:
auto_init: Auto init tracers when init monitor.
continue_on_exception: Continue on exception when init tracers.
- property auto_init
Auto init tracers when init monitor.
- config_scope: str | None = 'monitor.bcc'
Config scope for monitor.
- property continue_on_exception
Continue on exception when init tracers.
- default_config = {'auto_init': True, 'backend_args': {'max_workers': 10}, 'continue_on_exception': True, 'disabled': False, 'poller': {'call_when_shutdown': True, 'interval_ms': 500}}
Default config for monitor.
- Two sub-configs are available:
backend_args: config for
self._backend_imppoller: config for
Poller