Service Monitoring using Cloud Monitoring Stack driver

75 views
Skip to first unread message

Kaushal Shriyan

unread,
Mar 16, 2021, 12:01:57 PM3/16/21
to Google Stackdriver Discussion Forum
Hi , 

I am running GCE Instance in the GCP US region. Is there a way to monitor the Nginx, MySQL, Apache, Redis, PHP-fpm, and Apache SOLR services in GCE VM instances?

For example, if Nginx web services go down, Cloud Monitoring services trigger alerts in email or Slack channel. Similarly for other services like Redis or apache or PHP-fpm.

Are there any custom monitoring scripts available in Google Cloud (Stackdriver) Monitoring to take care of this specific use case?

Please advise. Thanks in advance.

Best Regards,

Kaushal

Igor Peshansky

unread,
Mar 16, 2021, 12:13:35 PM3/16/21
to Kaushal Shriyan, Google Stackdriver Discussion Forum
Hi, Kaushal,

There are a few ways to achieve what you are looking for.

First, the Cloud Monitoring agent supports a number of third-party applications like NGINX, MySQL, Apache, and Redis. See https://cloud.google.com/monitoring/agent/plugins for details. There is no out-of-the-box support for PHP or SOLR, but you may be able to use the advanced custom metrics mechanism to ingest metrics of your choice for those applications. You can then set up alerts for anything from low usage thresholds to metric absence, and have those alerts sent to the Slack notification channel.

Another option for applications that expose a web endpoint is uptime checks, which you can also set up alerts on. These will tell you if your server is not serving external requests, even if it's otherwise running.

Hope this helps.
        Igor

--
© 2020 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Stackdriver Discussion Google Group (google-stackdr...@googlegroups.com) to participate in discussions with other members of the GoogleStackdriver community.
---
You received this message because you are subscribed to the Google Groups "Google Stackdriver Discussion Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-stackdriver-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-stackdriver-discussion/f8ea5d8e-e11a-4f69-8936-287940a9d33en%40googlegroups.com.

Kaushal Shriyan

unread,
Mar 30, 2021, 1:34:02 PM3/30/21
to Google Stackdriver Discussion Forum
Thanks Igor for the detailed explanation. I am trying to configure php-fpm service which is running on port 9000 by following https://cloud.google.com/monitoring/agent/custom-metrics-agent Are there any sample configurations or template to monitor out-of-the-box support. Any examples will help me understand?

Please advise. Thanks in advance.

Best Regards,

Kaushal


Reply all
Reply to author
Forward
0 new messages