Questions tagged [google-cloud-stackdriver]

Use it when asking a question related to Google Operations (ex Stackdriver) service

Google Cloud’s operations suite (formerly Stackdriver) is designed to monitor, troubleshoot, and improve cloud infrastructure, software, and application performance.

For more details check https://cloud.google.com/products/operations

726 questions
9
votes
2 answers

Unable to publish spring boot metrics to GCP stackdriver

I am trying to publish metrics of my spring boot(2.2.6.RELEASE) app running in a GCP compute engine to stackdriver. I have added the dependency of micrometer-registry-stackdriver:1.3.6 and spring-boot-actuator. Stackdriver metrics client…
9
votes
2 answers

How to use Stackdriver logging on Cloud Run

I'm trying to get stackdriver logging working for a simple Go app running in Google Cloud Run (fully managed), but don't see stackdriver entries in CloudRun logs. I've created simplest possible demo app based on "official" stackdriver golang…
9
votes
1 answer

How to get detailed Big Query error by using PYTHON

I'm looking to see this information as python message: But currently, I can see only first/second This is what I'm currently using from google.api_core.exceptions import BadRequest if __name__ == '__main__': try: …
9
votes
2 answers

Stackdriver Logs-Based Metrics - need sum over alignment period

We have some stackdriver log entries that look something like this: { insertId: "xyz" jsonPayload: { countOfApples: 100 // other stuff } // other stuff } We would like to be able to set up a log-based metric that tells us…
Stewart_R
  • 13,764
  • 11
  • 60
  • 106
9
votes
1 answer

How to create StackDriver Workspace in GCP using API or Terraform Template

I would like to create a Stackdriver Workpace programmatically by Using Scripts, Terraform template or API as I need to avoid manual steps to create Stackdriver workspace for each projects manually. It should be a part of terraform or API to create…
8
votes
1 answer

stackdriver logging client library missing severity with python

i would like to send more expressive log entries to stackdriver logging from my app engine standard python3 app. By following the official documentation i was able to send my logs to stackdriver and it seems that the timestamp is parsed…
8
votes
2 answers

Firebase Auth Logs - GCP

Is possible to retrieve the logs about when a user is log-in or log-out to the platform? And also send them to stackdriver as Cloud Functions logs? thanks
8
votes
3 answers

Doing the equivalent of log_struct in python logger

In the google example, it gives the following: logger.log_struct({ 'message': 'My second entry', 'weather': 'partly cloudy', }) How would I do the equivalent in python's logger. For example: import logging log.info( msg='My second…
David542
  • 104,438
  • 178
  • 489
  • 842
8
votes
1 answer

How to clear Stackdriver logs in Google Cloud Platform?

I recently realized I was paying way too much for my logs: As you can see in the image, logs are getting bigger each month As you also can see I just today put a "limit" on the ingestion. Hopefully this will slow things down. But as I understand it,…
8
votes
2 answers

Retrieve list of log names from Google Cloud Stackdriver API with Python

I'm using Google's Stackdriver Logging Client Libraries for Python to programmatically retrieve log entries, similar to using gcloud beta logging read. Stackdriver also does provide an API to retrieve a list of log names, which is most probably what…
7
votes
1 answer

Unable to export to Monitering service because: GaxError RPC failed, caused by 3

I have a Java Application in App Engine, and recently I started getting following error: Unable to export to Monitering service because: GaxError RPC failed, caused by 3:One or more TimeSeries could not be written: Metrics cannot be written to…
7
votes
4 answers

How to get the number of nodes in a GKE node pool as a stackdriver metric?

I'm making a dashboard in GCP stackdriver. We have a autoscaling node pool which the pods I'm interested in monitoring run in. What I'm wondering is how do I monitor the amount of nodes the are currently running in the pool? I've had a look at log…
7
votes
3 answers

How to detect GKE autoupgrading a node in Stackdriver logs

We have a GKE cluster with auto-upgrading nodes. We recently noticed a node become unschedulable and eventually deleted that we suspect was being upgraded automatically for us. Is there a way to confirm (or otherwise) in Stackdriver that this was…
Matt R
  • 9,892
  • 10
  • 50
  • 83
7
votes
1 answer

Why is there a DAG named 'airflow_monitoring' automatically generated in Cloud Composer?

When creating an Airflow environment on GCP Composer, there is a DAG named airflow_monitoring automatically created and that comes back even when deleted. Why? How to handle it? Should I copy this file inside my DAG folder and resign myself to make…
7
votes
2 answers

How to Send On Premises Kubernetes Logs to Stackdriver

Objective: Get some logging/monitoring on Googles Stackdriver from a Kuberntes HA cluster that is on premises, version 1.11.2. I have been able to send logs to Elasticsearch using Fluentd Daemonset for Kubernetes, but the project is not supporting…
1
2
3
48 49