Questions tagged [google-cloud-monitoring]
Google Cloud Monitoring provides dashboards and alerts for cloud-powered applications.
431
questions
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
...
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.
...
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 ...
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 ...
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 ...
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 "...
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:
...
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 ...
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 ...
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,...
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, ...
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&...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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....
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 ...
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 ...
-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) ...
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 ...
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....
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 ...
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?
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 ...
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 ...
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-...
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 ...
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 ...
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)...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...