GCP VM上的监视服务状态

发布于 2025-01-31 22:47:15 字数 726 浏览 2 评论 0原文

我在GCP上有一个具有VM实例的项目(CENTOS 7)。我想监视在VM上运行的某些服务的状态。有没有办法通过OPS代理监视它们?

然后,目标是根据服务状态(使用Grafana)获得警报。使用agent.googleapis.com/processes/cpu_time gcp流程指标确实显示了当前在VM上运行的过程,但是根据流程的CPU时间获得警报尚不清楚,因为根据服务状态获得了警报。

另外,我很难找到一个在UNIX中服务和过程之间的区别的答案。基于此答案 https://superuser.com/问题/1235647/what-is-the-the-tifference-a-a-service-a-service and a-a-process 似乎服务的不同之处在于(?)

是否意味着监视与之相关的过程该服务与监视服务本身不同,因为该过程可能会被杀死,但是服务继续运行?

I have project on GCP with a VM instance in it (CentOS 7). I want to monitor the status of some services running on the VM. Is there a way to monitor them through the OPS agent?

The objective would then be to have alerts based on the status of the service (using Grafana). Using agent.googleapis.com/processes/cpu_time in the GCP process metrics does show the processes currently running on the VM, but having an alert based on the CPU time of a process is not clear cut as having an alert based on the status of a service.

Also I have a hard-time finding an answer to what the difference between a service and process is in UNIX. Based on this answer https://superuser.com/questions/1235647/what-is-the-difference-between-a-service-and-a-process it seems that a service differs in that it runs continuously(?)

Does this mean that monitoring the processes associated to the service is not the same as monitoring the service itself, since the process may be killed but the service continue running?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

机场等船 2025-02-07 22:47:15

您可以在GCP上的任何运行过程中设置自定义警报。

在警报策略中,您需要添加进程名称(.exe Process Path)。

请浏览以下视频。详细说明。

https://youtu.be/aaa_kwm7zka

You can setup custom alert on any running process on GCP.

In Alert policy you need to add Process name ( .exe process path).

Please go through below video. Explained in Details.

https://youtu.be/aaa_kwM7zkA

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文