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
0
votes
1 answer

Can the print function be used reliably in GCE apps?

I have a GCE app consisting of a single Python script that has some long running functions (most of these are querying databases and sending the results somewhere). It seems that when the script hangs on one of these longer running tasks that…
0
votes
2 answers

"ReferenceError: StackTrace is not defined" in Vue app with "stackdriver-errors-js"

I am trying to integrate the stackdriver-error-js library into my Vue project as a module. The code and the setup: in package.json "stackdriver-errors-js": "^0.2.0" in bootstrap.js import errorHandler from './error/error-reporting'; in…
0
votes
2 answers

Stackdriver Monitoring automation

We are wondering if there is any way to programmatically manipulate dashboards, alerts and other stuff that you normally set up using the Stackdriver UI. It would be great to keep the definitions of our Stackdriver objects in Git and deploy them…
Adam Sandor
  • 382
  • 1
  • 11
0
votes
2 answers

Stackdriver Alert was triggered in disabled state

I don't understand completely how stackdriver alerting should work. I have Custom Metrics and an Alert based on it. I got an alert triggered on the metrics. After that I turned off the alert. But in about 1 hour I got second notification from the…
0
votes
1 answer

StackDriver User Quotas

I'm using the Java client library's MetricServiceClient for getting StackDriver timeseries. I am authenticating using a user oauth token (this user has access to multiple projects), but there seems to be some kind of global quota across multiple…
keitwb
  • 541
  • 5
  • 8
0
votes
1 answer

Is it possible to trigger notification (e.g.- for HTTP 500) from Stackdriver log/monitoring?

I have set up Stackdriver logging agents on Google Compute Engine VMs, and collecting logs from apache and some other sources. Is it possible to trigger a notification when a http 500 log is produced? If parsing textPayload for notification is not…
Quark
  • 63
  • 6
0
votes
1 answer

Is there an API to limit the line of logs in stackdriver?

I need to get recent 100 lines from a stack driver log. Is there any API which can be used to implement this scenario in stackdriver? currently I'm using Google cloud Java client to implement the scenario.
0
votes
1 answer

Why my json logs have text-payload in the output, and not json-payload?

I am running Fluentd in GKE to get my containers' logs in Stackdriver using my customized Fluentd configuration file. Some logs which are json objects in the container log files at /var/log/containers/, are having text-payload at Stackdriver. I…
0
votes
1 answer

I want to send metric alert (in group setting) of AWS instance with stackdriver monitoring

My question is setting when monitoring AWS metrics with stackdriver. I'm tried thing below but, alert(policy) is not working. How do I send alert(policy) with group settings? I dont want is single monitoring, I do want is group settings. I…
0
votes
2 answers

Stackdriver Debugger on Google Compute Engine

I am trying to transition to Stackdriver Debugger because of the announcement the other day of their Node JS beta component now publicly available... I'm on compute engine so I found this part of the documentation... I added the cloud_debugger…
Jacob
  • 159
  • 3
  • 13
0
votes
1 answer

HTTP 400 "redirect_uri_mismatch" error when trying to authenticate to Google Cloud with Postman

I'm using Postman to authenticate with Google Cloud but I'm receive a HTTP 400 Error redirect_uri_mismatch when I request the token. The values I'm using are below: I was looking at another reply on StackOverflow and was wondering if creating a web…
0
votes
1 answer

UnavailableError in Google Cloud Logging

I want to create a specific log inside my ruby script with google-cloud-logging gem installed. It works when I run it on my windows client but i get the following error when I run it on my linux server:…
0
votes
2 answers

How do I add my mobile device to my StackDriver profile?

When I attempt to add my mobile device on the Stackdriver profile page, there is simply a modal that says: "Mobile devices can be registered from the Incidents section of the Cloud Console mobile app." I vaguely remember doing this previously (over…
0
votes
2 answers

How to set up a custom log destination using Google Cloud Stackdriver Log Export service

I'm trying to set up a custom log destination sink using the Stackdriver Log Export service. But I'm able to find any documentation about how to implement this. Does anyone know where to find information about how to implement a custom…
0
votes
4 answers

Use Stackdriver Debug with Google Cloud Functions

There is a similar question regarding Debugging Firebase Cloud Functions using Stackdriver. The answer there, however, doesn't seem to help at all with getting Stackdriver Debug to work with my normal Cloud Function (not Firebase). I've tried…