有没有办法使用普罗米修斯检查 nodejs 应用程序是否处于活动状态?

Is there a way to check nodejs app alive using prometheus?

我想使用 prometheus 监控系统来检查我的 nestjs 应用程序

我 url 喜欢 http://IP:PORT/test

是否可以使用 prometheus 检查 url 是死是活?

你可以使用blackbox来检查http或tcp https://github.com/prometheus/blackbox_exporter/blob/master/example.yml