Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试添加一个警报规则,允许警报管理器在特定 docker 容器重新启动时通知我。有这样的规定吗?任何帮助将不胜感激!
您可以使用此查询来查看自容器启动以来经过的秒数。
time() - container_start_time_seconds
我设法使它与 process_start_time_seconds{job='my_job'} 表达式一起工作