Questions tagged [stackdriver]

Monitoring, logging, and diagnostics for applications on Google Cloud Platform and AWS.

Part of Google Cloud Platform Google Stackdriver includes monitoring, logging, & diagnostics like Stackdriver Monitoring (aka Google Cloud Monitoring).


Docs:

  • Monitoring - collects metrics, events, and metadata from GCP/AWS/Anthos or custom metrics. Generates insights via dashboarts, charts and alert.
  • Logging - allows to store, search, analyze, monitor, and alert on log data and events from GCP or AWS
  • Error Reporting - aggregates and displays errors produced in users running cloud services.
  • APM
    • Debugger - lets user inspect the state of an application, at any code location, without stopping or slowing down the running app
    • Trace - a distributed tracing system for Google Cloud Platform that collects latency data
    • Profiler - a statistical, low-overhead profiler that continuously gathers CPU usage and memory-allocation information from your production applications
966 questions
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
4 answers

How to group related request log entries GAE python 3.7 standard env

I'm using Google App Engine python 3.7 standard and i'm trying to group related request log entries. According to the Writing Application Logs documentation, I should: Set the trace identifier in the LogEntry trace field of your app log entries.…
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
1 answer

Set up alerting for pod evictions in GKE

I'm encountering a situation where pods are occasionally getting evicted after running out of memory. Is there any way to set up some kind of alerting where I can be notified when this happens? As it is, Kubernetes keeps doing its job and…
Ameo
  • 2,307
  • 5
  • 21
  • 33
8
votes
2 answers

How to change fluentd config for GKE-managed logging agent?

I have a container cluster in Google Container Engine with Stackdriver logging agent enabled. It is correctly pulling stdout logs from my containers. Now I would like to change the fluentd config to specify a log parser so that the logs shown in the…
8
votes
2 answers

Google StackDrive Logging Level in containers with uwsgi always at Error Level

I'm deploying via Kuberenetes come containers on Google Cloud, which are django project and uwsgi to run them. I'm using the stackdrive logging tool to see the logging, the problem is that all the entries are seen as severity ERROR even thought…
EsseTi
  • 4,079
  • 5
  • 36
  • 63
8
votes
3 answers

Find logs between timestamps using stackdriver CLI

I need to find logs between two timestamps using stackdriver CLI. I used the below command. gcloud beta logging read "timestamp>=\"2017-02-19T00:00:00Z\" AND timestamp<\"2017-03-14T00:00:00Z\"" But its giving me the error: The filename, directory…
Arun A
  • 585
  • 8
  • 14
8
votes
1 answer

Log level in Google Stackdriver Logging

Configured Google Stackdriver Logging in one of the GCE VM and everything works except Log Level . Have used the parameter log_level in the file /etc/google-fluentd/config.d/tomcat.conf as per provided in…
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
0 answers

Stackdriver error reporting for GKE cluster

I have a cluster on GKE. Stackdriver Kubernetes Engine Monitoring Enabled In my errors list (https://console.cloud.google.com/errors/) I see errors with stack traced Seen in gke_instances. But I don't get how to determine which particular container…
WHITECOLOR
  • 24,996
  • 37
  • 121
  • 181
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…
7
votes
0 answers

Getting Stackdriver Deadline Exceeded with Service Unavailable

I am using the Google Cloud Stackdriver, logging from a GKE using a code snippet similar to: import google.cloud.logging logging_client = google.cloud.logging.Client() # connects the logger to the root logging handler cloud_logger =…
7
votes
1 answer

Meaning of "Script delayed (xx min) waiting for quota" in Stackdriver when working with Google Sheet Add-on

I have developed a Google Sheet Add-On "Jira Sheet Tools" which basically for my understanding should only be affected by the followings quotas from google according to the quota dashboard: Properties read/write URL Fetch calls URL Fetch data…
7
votes
0 answers

How do I nest app logs in request log and also tag it with an operation id?

When I use Google App Engine, I can: (A) nest app logs (e.g. the info log below) (B) see the summary of a request log in the top "collapsed" row (C) get tags with an operation id that I can click to easily filter the log stream by Is it possible…
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…
1 2
3
64 65