DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Public Member Functions | |
None | __init__ (self, OpMonConf conf) |
str | extract_key (self, OpMonEntry opmon_entry) |
None | publish (self, Msg message, dict[str, str]|None custom_origin=None, int|str|None level=None) |
![]() | |
None | __post_init__ (self) |
None | check_publisher (self) |
str | extract_topic (self, Msg message) |
OpMonId | make_origin (self, str session, str app) |
dict[str, str] | validate_custom_origin (self, dict[str, str]|None custom_origin=None) |
dict | make_data (self, Msg message, str top_block="") |
OpMonValue | to_map (self, int|float|bool|str value, int field_type) |
OpMonEntry | to_entry (self, Msg message, dict[str, str]|None custom_origin) |
int | log_level_to_int (self, str|int level) |
str | log_level_to_str (self, str|int level) |
Public Attributes | |
log = logging.getLogger("OpMonPublisher") | |
conf = conf | |
opmon_producer = None | |
str | default_topic = "monitoring." + self.conf.topic |
publisher | |
![]() | |
ts = Timestamp() | |
substructure = None | |
log | |
conf | |
publisher = "OpMon configuration must be of type OpMonConf." | |
default_topic | |
tuple | publisher |
Tool for publishing operational monitoring metrics to kafka.
Definition at line 14 of file OpMonPublisher.py.
None OpMonPublisher.OpMonPublisher.__init__ | ( | self, | |
OpMonConf | conf ) |
Construct the object to publish OpMon metrics to kafka.
Reimplemented from opmonlib.publisher_base.OpMonPublisherBase.
Definition at line 17 of file OpMonPublisher.py.
str OpMonPublisher.OpMonPublisher.extract_key | ( | self, | |
OpMonEntry | opmon_entry ) |
Extract the key from the OpMonEntry.
Definition at line 49 of file OpMonPublisher.py.
None OpMonPublisher.OpMonPublisher.publish | ( | self, | |
Msg | message, | ||
dict[str, str] | None | custom_origin = None, | ||
int | str | None | level = None ) |
Send an OpMonEntry to Kafka.
Reimplemented from opmonlib.publisher_base.OpMonPublisherBase.
Definition at line 61 of file OpMonPublisher.py.
OpMonPublisher.OpMonPublisher.conf = conf |
Definition at line 21 of file OpMonPublisher.py.
str OpMonPublisher.OpMonPublisher.default_topic = "monitoring." + self.conf.topic |
Definition at line 39 of file OpMonPublisher.py.
OpMonPublisher.OpMonPublisher.log = logging.getLogger("OpMonPublisher") |
Definition at line 20 of file OpMonPublisher.py.
OpMonPublisher.OpMonPublisher.opmon_producer = None |
Definition at line 36 of file OpMonPublisher.py.
OpMonPublisher.OpMonPublisher.publisher |
Definition at line 40 of file OpMonPublisher.py.