Questions tagged [google-cloud-monitoring]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

How to query Google Cloud for not exceeding the free quota of a service?

I'm actually coding a tool for text to speech language learning and use the Google Cloud Text-to-Speech API. There is a free quota of 1 and 4 million bytes per month. Does anybody know how to query ...
Sebastian Brandner's user avatar
0 votes
0 answers
4 views

How could we add checkbox in filters while analyzing dashboards in Metrics Explorer(Monitoring) for GCP to select multiple entries in filters?

How could we add checkbox in filters while analyzing dashboards in Metrics Explorer(Monitoring) for Google Cloud Console to select multiple entries in each filter options? So that we can filter out ...
Ankita Saha's user avatar
0 votes
1 answer
19 views

How to get the max of a time stamp in Google Cloud's MQL?

I have a log based metric that tracks every time a certain event makes it to Windows Event Log. I set it up with a label that captures the time from the log's payload. I want to create a dashboard ...
ChumBuckets's user avatar
0 votes
0 answers
36 views

Unable to create a Google Cloud alerting policy with Terraform

In Google Cloud Monitoring, I want to create alerting policies for a MongoDB database hosted on a Compute Engine instance. While it gets created successfully via GC console, it fails to get created ...
LPrac's user avatar
  • 1
0 votes
0 answers
28 views

Google PubSub - Counting messages in push subscription with NodeJS

On GCP I am trying to calculate how many messages are queued/waiting to be acknowledged in a push subscription, with NodeJS. I am using the @google-cloud/monitoring package though cannot see any ...
Steve's user avatar
  • 155
0 votes
1 answer
19 views

Google Cloud Monitoring - E-mail icon error

We have encountered an issue with the icon displayed in the incident alert emails we receive. The icon appears to be broken in both the notification for new incident alerts and the emails indicating ...
Kleberson Leite's user avatar
0 votes
0 answers
32 views

Terraform-GCP cloud functions: how to attach log based metrics to google alert policy

I need to create google alert policy when the cloud function fails using terraform. I am trying to do: creating email channel craete log based metrics create alert policy related to setp Here is my ...
M Raj's user avatar
  • 23
0 votes
1 answer
33 views

GCP table widget showing more than one value

I am trying to create in my dashboard widget with type table, where I can show more than one value for specific operation. I am going through MQL documentation but I failed to find anything useful ...
sebac13's user avatar
  • 55
0 votes
0 answers
63 views

Monitor OpenShift Cluster and Applications using Managed Service for Prometheus

We have OpenShift cluster running on GCE instances which hosts various Applications and Middleware components i.e. Elasticsearch, Kafka, keyCloak, Micro Services (Java and Python based) and Camunda. ...
RAJ SINGH's user avatar
0 votes
1 answer
37 views

GCP Monitoring Groups - Group by Label Works in Some Projects

I have two projects in GCP; I use one as a test environment, the other as a production environment. When I create a new Monitoring Group in my test project I have the option for "Tag" in the ...
Jeffrey Van Laethem's user avatar
0 votes
1 answer
308 views

Rolling window function in Google Cloud monitoring

I am setting up an uptime check in Google cloud monitoring. When I add the check I also create an alert policy. Furthermore I set my check to global which means it will check from 6 different ...
Rickard Liljeberg's user avatar
2 votes
1 answer
116 views

Create Ratio in Cloud Monitoring

I have two user defined log based metrics of type counter, resource type cloud_run_revision, kind delta, value type INT64. I want to create a widget using the menu driven interface that displays the ...
razvan.todea's user avatar
0 votes
0 answers
149 views

Creating GCP monitoring alert policies using Terraform and alert policy JSON

I want to create GCP monitoring alert policies through Terraform. I have downloaded alert policies as json files. I can create alert policy in Terraform using resource "...
ds_Abc's user avatar
  • 163
0 votes
0 answers
40 views

GCP Cloud Monitoring Alert Not Triggering as Expected for Endpoint Success Rate

I'm currently facing an issue while setting up a GCP Cloud Monitoring alert to monitor the success rate of a specific endpoint using the provided MQL (Monitoring Query Language). I have two problems: ...
Monouco's user avatar
0 votes
1 answer
110 views

GCP Alerting Policy using MQL

I need to create an alerting policy based on error percentage and then evaluate or assign a priority to the incident based on the error percentage. Is there a way to use the multi condition in this ...
Shashank Agrawal's user avatar
0 votes
0 answers
29 views

Firebase hosting generates 404 only in America

I have an API hosted on Google Firebase : Functions + Hosting (for cache). The URL is https://api.carbonfight.app. Firebase hosting has nothing difficult in its configuration, only one rewrite to a ...
Pierre Freund's user avatar
0 votes
1 answer
71 views

How to track App Engine metrics by endpoint?

I'd like to track metrics for my App Engine app segmented by endpoint: views/second by page requests/second by endpoint response times by endpoint I've found metrics that look like they'd be helpful,...
Joel Burget's user avatar
  • 1,328
0 votes
1 answer
154 views

Configuring Google Cloud error monitoring notifications via GCloud cli

I wish to report uncaught Firebase functions errors to a Slack channel in all of my Firebase projects. Preferably by using the Google Cloud Error Monitoring feature so I can mark errors as resolved, ...
Rins's user avatar
  • 1,811
0 votes
2 answers
137 views

Error assigning GCP IAM Role for Creating Monitoring Policy

I am using a service account to create Monitoring Policy in my GCP Project. I am trying to identify the IAM role that's suited for this via this link and narrowing it down to "Cloud Monitoring&...
VKarthik's user avatar
  • 1,379
1 vote
1 answer
89 views

DataFlow custom counters not sent to Cloud Monitoring despite valid names

I am using custom metrics within my DataFlow job (using Scala on Java11), I am using multiple distribution metrics to track the duration of API calls my pipeline makes to an external service. lazy val ...
Matthew's user avatar
  • 24.9k
1 vote
1 answer
122 views

Making REST API calls to resource: projects.timeSeries results in 403 when using service accounts

When making a REST API call to https://monitoring.googleapis.com/v3/projects/${projectId}/timeSeries , providing an access token generated from a service account results in a 403 error "This API ...
Marco's user avatar
  • 169
0 votes
0 answers
87 views

GCP Monitoring, alert policy error while saving the alert? Need to create alert which will trigger when 75% of pod's limit is breached

We have been utilizing Grafana with a specific alerting configuration, based on Prometheus query language (PromQL). Now, we are transitioning to Stackdriver, Google Cloud Platform's native monitoring ...
arpit mandlik's user avatar
0 votes
0 answers
174 views

Google logs explorer query with advanced operations

our project has Google logging. While troubleshooting on Google's logs explorer console from the browser, we sometimes need to identify which of our database queries took longer than expected. So, for ...
Ronak Joshi's user avatar
  • 1,553
2 votes
1 answer
167 views

Where user's Google Cloud Run metrics should be in Monitoring?

I have a service in Google Cloud Run and want to write some metrics to Google Cloud Monitoring. Google Cloud Run seems to have separate resourse in Google Monitoring: Cloud Run Revision. But ...
Kirill Lubavsky's user avatar
0 votes
1 answer
109 views

How to determine which files are downloaded most times from Google Cloud Storage bucket?

I have a bucket in Google Cloud Storage. The files are accessed by users of my Single Page App. I want to know which files are downloaded most frequently. If possible I would like to know how many ...
Witek's user avatar
  • 6,210
0 votes
2 answers
79 views

Error when trying to save GCP Alert Policy

I'm struggling with a GCP MQL alert policy that I built up in the GUI. When I try to save it I keep getting an error message: "Error: Unable to save alerting policy. Request contains an invalid ...
user2399020's user avatar
0 votes
0 answers
38 views

Unable to push the RabbitMQ logs from AWS EC2 to GCP Cloud logging service

I have configured the cloud ops agent on EC2 to send my rabbitmq logs to GCP cloud logging, i have updated the log path and credentials in the config.yaml file, still its throwing windows cannot start ...
Dhamodharan's user avatar
0 votes
0 answers
41 views

Problem writing multiple values to google cloud metric

I am trying to write an amount of values to a metric at one time without success client = monitoring_v3.MetricServiceClient() project_name = f"projects/{project_id}" series = monitoring_v3....
Daniel Nahmani's user avatar
0 votes
1 answer
34 views

GCP Channel notification princing

I have a GCP project A witch uses Cloud monitoring, alerts and a channel notification to pubsub. My pubsub topic is in another project B. Is there any cost in my project A relative to publish a msg in ...
Alidepo's user avatar
  • 11
0 votes
2 answers
92 views

Only single region in availability check

I have an uptime check set up with Google Cloud. However, I only need this uptime check for a single region as other regions are irrelevant for my project. When trying to edit the regions of the ...
dan1st's user avatar
  • 13.5k
-2 votes
1 answer
44 views

Google Cloud Monitoring Agent

I am trying to install the agent for monitoring and keep getting this error. Can anyone help with some direction on this? Connection to 34.125.xxx.xxx port 22 timed out ERROR: (gcloud.compute.ssh) ...
Armen Geo's user avatar
0 votes
0 answers
72 views

Including bigquery payload in alert notification

currently I'm working on monitoring on GCP project. There are some data in BigQuery and I'm checking if something from bigquery throws error. When it throws error, it have message containing where to ...
TemplarA's user avatar
0 votes
0 answers
48 views

Alert for Error Count on GCP - How to use time range?

I have created a policy for alerting me when the app starting to showing errors. I didn´t find a way to setup the time range. Actually I don´t know the range time that the policy is looking for errors....
p.magalhaes's user avatar
  • 7,757
0 votes
1 answer
205 views

Negative error budget even when Service Level Indicator(SLI) is greater than Service Level Objective(SLO)

I created a request based SLI where good service filter is CPU usage time by a specific VM instance ("instance-1" here) and total service filter is CPU usage by all VM instances. I set the ...
Daniel Vanum's user avatar
0 votes
1 answer
399 views

Creating Cloud Monitoring alerts based on BigQuery Table information

I want to create alerts based on tables in a specific dataset. The alerts should be triggered if a table has not been modified since a specified time. How would I go about this using Cloud Monitoring?
prismo's user avatar
  • 1,595
0 votes
1 answer
166 views

GCP cloud monitoring self-defined metric (memory utilization)

I want to create a metric of 'memory usage in percentage' for cloud functions. However, the default metric only support metric 'cloudfunctions.googleapis.com/function/user_memory_bytes'. I need to ...
han shih's user avatar
  • 409
0 votes
2 answers
365 views

Google Cloud Monitoring alert policy not firing when using nully labelExtractors

I'd like to get notified when there are errors in our production application. To do this, I set up Google Cloud Monitoring log-based alerts, which sends me notifications when there are errors. To be ...
domdomegg's user avatar
  • 1,568
0 votes
1 answer
74 views

How to have a Google Cloud Monitoring graph with a small legend?

I would like to have a Cloud Monitoring graph with a legend at the bottom like this: The graph above is taken from the official documentation: https://cloud.google.com/monitoring/charts/working-with-...
poiuytrez's user avatar
  • 21.5k
0 votes
1 answer
425 views

Can I export specific metrics from one GCP Project to another?

I have a shared GKE cluster on project X, and I would like to have access to metrics related to namespace my_namespace in project Y. I use Managed Prometheus for GKE to collect the metrics, and all ...
Illidanek's user avatar
  • 996
3 votes
1 answer
959 views

GCP Cloud Run: how to monitor latency per path/URI?

I have REST API running on GCP Cloud Run. I would like to monitor latency / response time, grouped per path (URI), so that I can spot paths that have bad response times. For instance, let say I have 3 ...
Bastien's user avatar
  • 704
1 vote
0 answers
307 views

PromQL in Google Cloud Monitoring produces unexpected results

Disclaimer: I'm new to PromQL, and might have constructed a query that is completely wrong. I'm using PromQL as the built-in monitoring of Google Cloud does not produce expected results (see this post)...
Jonny5's user avatar
  • 1,429
0 votes
0 answers
38 views

promql metric for memory usage of containers in kubernetes cluster

I want to filter the results as per containers but the below mentioned queries are not returning container labels. container_memory_usage_bytes / container_memory_working_set_bytes
Rahul Shukla's user avatar
1 vote
0 answers
151 views

MQL: GKE metrics filter by working hours and time period

How to achieve weekly/monthly statistics within working hours (excluding night time) using Google MQL? There is ability to select hours and days range separately using time picker widget, but I need ...
lpkej's user avatar
  • 455
0 votes
1 answer
267 views

Configuring GCP Alerting for Business Hours Only

I am currently working on Google Cloud Platform (GCP) Alerting for a specific use case. We have Compute Engine virtual machines (VMs) that are scheduled to run exclusively during business hours. Is ...
Michael's user avatar
  • 25
0 votes
0 answers
63 views

Issue with PromQL in Google Monitoring

I have spring boot java application with basic metrics setup: micrometer, with stackdriver exporter to view metrics in Google Monitoring. Counters/gauges work fine and can be easily viewed both in ...
nemerof's user avatar
  • 56
0 votes
0 answers
273 views

Google Cloud Monitoring MQL aggregates give unexpected sum results

I have a custom log-based metric setup that tracks API calls. The metric is setup as a distribution metric. I'm trying to plot the total number of API calls in a dashboard. It was quite difficult to ...
Jonny5's user avatar
  • 1,429
0 votes
0 answers
151 views

How to perform an uptime check on a Cloud Run endpoint which requires authentication?

I have a Cloud Run endpoint and I want to check the uptime on it. I tried to setup in Cloud Monitoring an uptime check but the endpoint is authenticated: I don't see how I can setup the ...
poiuytrez's user avatar
  • 21.5k
0 votes
0 answers
153 views

How to set GCP Alert threshold based on time?

I have a Google Dataflow Pipeline that logs JSON similar to the following. jsonPayload: { metric: "viewings-per-second", time: "2023-03-28 17:16:14", value: 15 } I ...
Shahid Thaika's user avatar
1 vote
0 answers
168 views

How can I alert on a large increase (numeric, not percent) in a GCP metric?

I'm attempting to monitor a dead letter queue for a large increase in failures. Ideally if the count of unacked messages increases by, say, 50 in a 10 minute period, I'd like to know. Something like ...
pennstatephil's user avatar
0 votes
0 answers
96 views

What are the metrics with sum, bucket, and count suffixes in 'Google managed service for Prometheus'?

I want to ask a question about the metric supported by 'Google managed service for Prometheus'. Among the metrics of pubsub, there is a metric called 'topic/message_sizes'. If you actually search ...
mireu's user avatar
  • 1

1
2 3 4 5
9