Questions tagged [google-cloud-monitoring]

Google Cloud Monitoring provides dashboards and alerts for cloud-powered applications.

Google Cloud Monitoring (aka Stackdriver Monitoring) is a native GCP solution for service monitoring. The tool lets users create charts, dashboards, alerts and notifications based on built-in or custom metrics.

GCP/Stackdriver Monitoring collects metrics, events, and metadata from Google Cloud (), Amazon Web Services (), hosted uptime probes, and application instrumentation. Using the Blue Medora BindPlane service, you can also collect this data from over 150 common application components, on-premise systems, and hybrid cloud systems.

Note: Consider searching for tag to find more answers, as it historically was an umbrella term for GCP operation suite, with , and being part of it.

Resources:

421 questions
18
votes
1 answer

What is the difference among Cloud Logging vs Cloud Monitoring vs Stackdriver?

I am exploring logging, monitoring and alerting options on Google Cloud. Where I found Cloud Logging, Monitoring and Stackdriver as few options. Theoretically, these services looks similar. Can anyone explain what is the actual difference between…
11
votes
3 answers

how to create alert per error in stackdriver

Having created log-based metrics in cloud console, I then want to create alerts so that every time there is a new matching log entry, the alert triggers. In trying to create a suitable metric, the most likely looking options seem to be threshold or…
10
votes
1 answer

GCP stackdriver-agent installed on VM send strange logs every minute

please can you help me with the following issue. I have a backend service on node.js I deployed it on GCE VM. It's working fine, but after installing logging and monitoring agent I see very strange logs in Logs Viewer. I looked at the paid that…
9
votes
1 answer

How can I see request count (not rate) for a Google Cloud Run application?

I deployed a Google Cloud Run service running in a docker container. Out of the box, it looks like I get insight into some metrics on the Metrics tab of the service page such as Request count, Request latencies and more. Although it sounds like…
9
votes
4 answers

Can I run Google Monitoring Agent inside a Kubernetes Pod?

It seems that the Google Monitoring Agent (powered by Stackdriver) should be installed on each Node (i.e. each compute instance, i.e. each machine) of a Kubernetes cluster. However the new plugins, like Nginx, Redis, ElasticSearch..., need those…
8
votes
1 answer

auth_token for slack integration

I would like to setup alerting using slack in GCP using Terraform. My code is: resource "google_monitoring_notification_channel" "slack" { display_name = "Prod Slack Alerts" type = "slack" labels = { "channel_name" =…
jeunii
  • 391
  • 4
  • 13
8
votes
2 answers

GKE - HPA using custom metrics - unable to fetch metrics

I have custom metrics exported to Google Cloud Monitoring and i want to scale my deployment according to it. This is my HPA: apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: name: -hpa namespace:…
8
votes
2 answers

No data in Cloud Monitoring from user-defined metrics in Cloud Logging

I have created 2 user-defined metrics in the Cloud Logging UI. Those metrics show up in Cloud Monitoring, but their graphs are perpetually showing "no graph data found". Are there any steps to troubleshoot this or are there other requirements to…
7
votes
1 answer

What are advantages of using Prometheus over Google Cloud Monitoring for SLO based monitoring?

I am working on creating monitoring based on SLO. So far I have been using Google Cloud Monitoring solutions like Dashboards, Alerting and Uptime Checks. I have noticed GCP has now a Managed Service for Prometheus. My question is what would be the…
7
votes
1 answer

GCP Alert Filters Don't Affect Open Incidents

I have an alert that I have configured to send email when the sum of executions of cloud functions that have finished in status other than 'error' or 'ok' is above 0 (grouped by the function name). The way I defined the alert is: And the secondary…
7
votes
0 answers

Google Cloud Monitoring Writing Datapoints Faster than Maximum Sampling Period

Context: I'm attempting to use Google Cloud's monitoring SDK to publish metrics on error status codes, latency and other server-side metrics. Due to the rate of requests per second on my machines, this will exceed Google's metric limit of 1…
inqdev
  • 71
  • 4
7
votes
1 answer

How can I customize the entire email notification in Stackdriver Alerting?

Currently, the message specified in the Document field while creating alerting policy appears in the Document field of the Stackdriver alert email. I would like to overwrite the entire email message body with my custom content. How can I overwrite…
7
votes
2 answers

Writing to custom timeseries with the Google Cloud Monitoring v3 api

Google has warned that the v2 monitoring api is now deprecated and will be going away soon. However, migrating to v3 is proving to be a bit difficult. I'm trying to write a custom metric and am getting the following error responses: Services >…
6
votes
1 answer

Google Cloud logs: How to send error logs details to another channel like slack, email, or webhook API?

I want to send the error logs/warning logs automatically from GCP into slack, email, or Webhook API. Now I am using Google Cloud/Monitoring/Alerting -> create a policy. But it only sends the payload information, not including the error logs details…
6
votes
3 answers

gcp monitoring "Any time series violates" vs "All time series violate"

What's the difference between the two options "Any time series violates" and "All time series violate"? I can imagine what would the former one do easily, but I have no idea what would the latter one do. All time series? how long is its range? and…
1
2 3
28 29