我目前正在使用Plotly Dash为基于JVM的(Kotlin)服务开发仪表板。实际上,JVM服务将消息(通过ZMQ)推送到我的Python Dash脚本,该脚本反过来更新一系列实时图表。在
除了图表之外,我还希望在仪表板中显示服务的日志消息(它们当前显示在控制台中并写入文件)。我可以很容易地修改JVM-app/Python脚本来通过ZMQ发送/接收消息,但是我还没有找到一个可以实时显示这些消息的Dash组件。在
由于消息的吞吐量相当高(每秒几十条),我希望能够按级别(信息、警告等)和其他标准(regex是理想的)过滤消息。我阅读了Dash文档,但找不到适合我需要的组件。有没有办法在冲刺中做到这一点?在
谢谢你的帮助!在
我不熟悉如何接收脚本中的消息,但您要使用的内容包括:
html.Div(id='log-div',style=dict(height='300px',overflow='auto'))
,它只是一个可滚动的空divdcc.Interval
,每n秒触发一次新日志注意-旧的回答不正确。在
希望这有帮助!如果有任何问题/反馈,我很乐意回答。在
相关问题 更多 >
编程相关推荐