731 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
93
views
What is the right gcp cloud monitoring promql query to capture "unspecified" (or all resource types) metrics?
The following promql query returns the logging.googleapis.com/log_entry_count metric in the global namespace:
increase({"__name__"="logging.googleapis.com/log_entry_count","...
0
votes
1
answer
524
views
How do I convert this alert policy MQL to PromQL?
I'm trying to convert an MQL query I'm using in a GCP alert policy to PromQL while also aggregating by user labels.
This is the MQL:
fetch gce_instance
| metric 'agent.googleapis.com/cpu/load_5m'
| ...
0
votes
1
answer
147
views
How do I fix a custom metric that can't be aggregated by two projects. It says chart definition is invalid
I'm experimenting with a custom metric. The same metric and labels were being written in different projects at the same time. They should have been identical, but when I view the metric I see this:
...
0
votes
1
answer
87
views
Using catalina_globalrequestprocessor_requestcount over time as a metric for custom metric HPA
Is there a way to use catalina_globalrequestprocessor_requestcount metric (or another MBean metric) to track requests as a rate (e.g., requests per second) for use with HPA?
Background
We're using an ...
0
votes
1
answer
241
views
Why do I set the resource type when writing the metric but not when creating a descriptor?
This is very confusing because the docs make it sound like I choose a resource type when I'm manually creating a descriptor: https://cloud.google.com/monitoring/custom-metrics/creating-metrics#create-...
0
votes
2
answers
805
views
Is there a good explanation of resource labels versus metric labels?
When writing custom metrics you have resource labels and metric labels.
Resource labels are labels that are required by the resource. So if I choose the generic_task resource type and exclude the ...
1
vote
1
answer
116
views
Ruby exceptions not appearing in Google Cloud Error Reporting
I have a Rails app running in GKE and I'm trying to set up Google Cloud Error Reporting. I have installed the stackdriver gem and required it on application startup. I can manually report errors from ...
1
vote
1
answer
236
views
HPA unable to find "untyped" custom metric from Prometheus / Stackdriver adapter
We are using HPA with custom metrics from a Java application in GKE. (More on that in this previous question.) We would like to use a untyped metric, though.
What we have done
So far, we did this:
...
-1
votes
1
answer
187
views
Are GCP monitoring uptime check metrics suppose to be aggregatable by user labels?
I'm trying to understand the utility of "user labels" for my uptime checks: https://cloud.google.com/monitoring/uptime-checks#create
I was expecting it to work like other resources. I want ...
0
votes
1
answer
613
views
Horizontal Pod Autoscaler with Stackdriver Custom Metric in GKE fails with "Invalid metric name" error
We're trying to use a custom JVM metric (jvm_memory_bytes_used{area="heap"}) to scale a deployment in our GKE cluster using a Horizontal Pod Autoscaler (HPA).
Setup:
Enabled Stackdriver ...
0
votes
1
answer
373
views
How do I increase the retention period of non-custom GCP metrics?
I'm having a hard time finding out if this is even supported because the docs don't outright say I can increase this retention at all or not:
https://cloud.google.com/monitoring/quotas#...
0
votes
0
answers
270
views
Post-Migration Logging Issue in Python 3 GAE Application
We have recently migrated our application from Python 2 to Python 3 on Google App Engine and are encountering a recurring issue related to logging. Despite the application's functionality appearing ...
1
vote
1
answer
141
views
LoggingAppender getting `projectId` from service account key json instead of env variable `GOOGLE_CLOUD_PROJECT`
I have these two variables set in intellij GOOGLE_CLOUD_PROJECT and SPRING_CLOUD_GCP_LOGGING_PROJECT_ID but still LoggingAppender class is getting projectId null and ultimately reading from service ...
1
vote
1
answer
338
views
How to disable stackdriver logging in a spring application for a GCP project without creating a new docker image
I have a spring application packaged inside a docker image and running in GKE pods. I want to disable stackdriver logging but only for this application in gke. Is there any env variable/property I can ...
0
votes
1
answer
466
views
How to reduce the Cloud SQL Logging cost in GCP?
I am currently checking for an option to reduce Cloud SQL logging cost (Cloud Logging cost in GCP). Currently the Cloud SQL instance is writing millions of log entries in stackdriver per day. Out of ...