PROFESSIONAL-CLOUD-DEVELOPER · Question #41
You are deploying your application to a Compute Engine virtual machine instance with the Stackdriver Monitoring Agent installed. Your application is a unix process on the instance. You want to be aler
The correct answer is B. Process health. The Stackdriver (Cloud Monitoring) Agent supports a 'Process Health' alert condition that directly monitors whether a named Unix process is running on a VM instance. This is the most precise and appropriate alert type when you want to know if a specific process has stopped. Optio
Question
You are deploying your application to a Compute Engine virtual machine instance with the Stackdriver Monitoring Agent installed. Your application is a unix process on the instance. You want to be alerted if the unix process has not run for at least 5 minutes. You are not able to change the application to generate metrics or logs. Which alert condition should you configure?
Options
- AUptime check
- BProcess health
- CMetric absence
- DMetric threshold
How the community answered
(33 responses)- A9% (3)
- B82% (27)
- C3% (1)
- D6% (2)
Explanation
The Stackdriver (Cloud Monitoring) Agent supports a 'Process Health' alert condition that directly monitors whether a named Unix process is running on a VM instance. This is the most precise and appropriate alert type when you want to know if a specific process has stopped. Option A, Uptime Check, tests external HTTP/TCP reachability of an endpoint, not whether an internal process is running. Option C, Metric Absence, fires when no data is received for a metric - while theoretically usable, it is indirect and less reliable for process monitoring. Option D, Metric Threshold, triggers when a metric exceeds a value - not applicable when the process simply isn't running. Since you cannot modify the application to emit custom metrics or logs, Process Health (B) is the right built-in mechanism.
Topics
Community Discussion
No community discussion yet for this question.