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
23
votes
5 answers

Monitoring and alerting on pod status or restart with Google Container Engine (GKE) and Stackdriver

Is there a way to monitor the pod status and restart count of pods running in a GKE cluster with Stackdriver? While I can see CPU, memory and disk usage metrics for all pods in Stackdriver there seems to be no way of getting metrics about crashing…
20
votes
2 answers

How do I get the pod ID in Kubernetes?

I am using Stackdriver Monitoring API to get the metrics related to the containers. The JSON object returned from the API has the following details of the container. Example: { "metric": { "type":…
19
votes
4 answers

Google Apps Script logs (web app) don't show up in the new interface

Apps Script has recently moved the StackDriver logs into the Apps Script dashboard, page 'Execution'. Problem is, the logs won't show up in the dashboard for Apps Script web apps. I can see the new execution line when I do a request to the Apps…
lordofmax
  • 773
  • 1
  • 7
  • 21
19
votes
2 answers

Obtain Slack auth_token for Terraform google_monitoring_notification_channel resource

I'm looking to set up some alerts from gcloud -> slack, and so far have a test up and running having followed these instructions: https://cloud.google.com/monitoring/support/notification-options?_ga=2.190773474.-879257953.1550134526#slack However,…
Alyssa
  • 835
  • 1
  • 7
  • 23
17
votes
5 answers

Count number of GCP log entries during a specified time

Is it possible to count number of occurrences of a specific log message over a specific period of time from GCP Stackdriver logging? To answer the question "How many times did this event occur during this time period." Basically I would like the…
16
votes
4 answers

How to export previous logs in Stackdriver

I have a log in Stackdriver that logs every request goes into my api and failed, and I want to write a script to count on the number of times each error message appears. The problem is, the export feature in Stackdriver V2 only allow me to sink…
15
votes
3 answers

GKE & Stackdriver: Java logback logging format?

I have a project running Java in a docker image on Kubernetes. Logs are automatically ingested by the fluentd agent and end up in Stackdriver. However, the format of the logs is wrong: Multiline logs get put into separate log lines in Stackdriver,…
Erik Živković
  • 4,867
  • 2
  • 35
  • 53
14
votes
3 answers

How does stackdriver logging assert the severity of an entry?

I recently started using stackdriver logging on my Kubernetes cluster. The service are logging json payloads. In stackdriver logging I see the json payload parsed correctly, but everything has severity "ERROR". This is not intended. Most of these…
13
votes
2 answers

stackdriver-metadata-agent-cluster-level gets OOMKilled

I updated a GKE cluster from 1.13 to 1.15.9-gke.12. In the process I switched from legacy logging to Stackdriver Kubernetes Engine Monitoring. Now I have the problem that the stackdriver-metadata-agent-cluster-level pod keeps restarting because it…
12
votes
5 answers

Log retention in Stackdriver GCP

How can I get log retention enabled in GCP Stack-driver. I haven't found any document for configuring log retention. I can see export option in logging section and log ingestion.
12
votes
2 answers

How do I map my java app logging events to corresponding cloud logging event levels in GCP Felexible non-compat App Engine?

I am new to GCP AppEngine and I chose the Flexible environment for several reasons. However, I am shocked to find out that the flexible environment's non-"compatible" runtimes appear to not allow me to map my app's logging events to the appropriate…
11
votes
3 answers

Stackdriver Trace with Google Cloud Run

I have been diving into a Stackdriver Trace integration on Google Cloud Run. I can get it to work with the agent, but I am bothered by a few questions. Given that The Stackdriver agent aggregates traces in a small buffer and sends them…
Wietse Venema
  • 2,684
  • 1
  • 19
  • 18
11
votes
3 answers

Google Cloud Container Optimized OS host logs to stackdriver

TL;DR What is the best practice to send container optimized os host logs (ssh and executed shell commands) to Stackdriver? Background: I'm using Googles Container Optimized OS which works great. It's super easy to send the container logs to…
Niklas B
  • 1,839
  • 18
  • 36
11
votes
1 answer

difference between topic/send_message_operation_count and topic/send_request_count in google pubsub

What is the difference between topic/send_message_operation_count and topic/send_request_count in google pubsub. The requirement is though i can calculate no.of messages present in subscriber by undeliver_messages but I need to calculate how many…
11
votes
4 answers

How to install Stackdriver monitoring agent in Google Container VM images?

I followed this instruction https://cloud.google.com/monitoring/agent/install-agent#linux-install $ curl -O "https://repo.stackdriver.com/stack-install.sh" $ sudo bash stack-install.sh --write-gcm Unidentifiable or unsupported platform. The content…
hiroshi
  • 6,871
  • 3
  • 46
  • 59
1
2 3
64 65