stackdriver

Arithmetic operations for Stackdriver monitoring charts

笑着哭i 提交于 2019-12-10 17:11:46
问题 I'm trying to setup a Stackdriver dashboard for my custom metrics that my services provide. In particular I'm starting with general custom/grpc/time_ms metric that is a gauge and have status label on it. I'd love to be able to set up a chart and alert for success rate of the metric(something like count:custom/grpc/time_ms{status:OK} / count:custom/grpc/time_ms{*} ). With my previous project I used Datadog and it was pretty easy to do so there. But I don't see any similar functionality neither

StackDriver: Collecting metrics from outside GCP and AWS

我与影子孤独终老i 提交于 2019-12-10 14:52:34
问题 My question is about StackDriver from Google Cloud. I've tried for a lot of hours to configure a server from outside of GCP and AWS to collect metrics, and I'm not able to make it work. StackDriver is able to collect metrics from outside or I'm loosing my time? If is able, someone knows a good manual? Thanks!!! and greetings!!! 回答1: Adam is correct that Stackdriver doesn't (at time of writing) support the agent metric collection outside of GCP/AWS. So what you're trying to do is not

Stackdriver Error reporting for Ruby, running on GKE

不打扰是莪最后的温柔 提交于 2019-12-10 13:16:15
问题 Which steps are required to collect errors from a Rails app running on GKE? I have added the stackdriver gem to my Rails app and I have created a custom role with the errorreporting.errorEvents.create permission. That role is given to the Compute Engine default service account I interpret the docs that one does not have to do the following setup when running on GKE: # Add this to config/environments/*.rb Rails.application.configure do |config| # Stackdriver Error Reporting specific parameters

Logging using Stackdriver API on Kubernetes / Google Container Engine (GKE)

做~自己de王妃 提交于 2019-12-09 03:54:36
问题 I have a go application that leverages Google Cloud Logging API. The relevant code is the same as this sample from their documentation: https://github.com/GoogleCloudPlatform/golang-samples/blob/master/logging/logging_quickstart/main.go After checking it works with minikube (my payload appears in the Global category of my logs viewer), I deploy the app on Google Container Engine (GKE). Once deployed there, I can no longer see the logs the app sends through the logging API. The logs written to

Want to create StackDriver dashboard from template

半腔热情 提交于 2019-12-08 15:45:05
问题 Is it possible to create StackDriver dashboards programmatically from a declarative template (similar to how Google Cloud Deployment allows you to create and manage cloud resources)? We use a different GCP project for each of our environments (master, staging, prod) and want to have StackDriver dashboards with the same metrics in each project. I checked the StackDriver Monitoring API docs as well as the Cloud Deployment supported resources and did not find any evidence of support for this use

Appscript handled errors not shown in stackdriver errors

ⅰ亾dé卋堺 提交于 2019-12-08 10:08:35
问题 I'm writing a Gmail Addon with Appscript. If the application throws an unhandled error, it will be automatically logged on stackdriver and displayed in Stackdriver Error Reporting. However, I want to manually send errors to Stackdriver Error Reporting: try{ thisMayThrowAnError(); catch(err){ console.error(new Error("Something Failed")) } In the example above, the error log is being displayed in Stackdriver Logs, but it won't appear on Stackdriver Error Reporting. Is there a way to achieve

How can I get a reliable alert via Stackdriver when there are no clients pulling from a Pub/Sub subscription?

你离开我真会死。 提交于 2019-12-08 05:26:48
问题 I currently have some alerts set up to report when subscription/pull_request_count is 0. However, in a similar question about that metric, I found that metrics and alerting break once there is no data, which I believe happens when there are no subscriptions. My intent is to figure out if my servers have stopped pulling messages. There are 2 scenarios I have in mind where the details are important. Even if there are no messages being published, I want to know if I'm no longer pulling from a

Stackdriver custom metric aggregate alerts

为君一笑 提交于 2019-12-08 03:59:44
问题 I'm using Kubernetes on Google Compute Engine and Stackdriver. The Kubernetes metrics show up in Stackdriver as custom metrics. I successfully set up a dashboard with charts that show a few custom metrics such as "node cpu reservation". I can even set up an aggregate mean of all node cpu reservations to see if my total Kubernetes cluster CPU reservation is getting too high. See screenshot. My problem is, I can't seem to set up an alert on the mean of a custom metric. I can set up an alert on

How can I link a StackDriver trace to the App Engine log for that event?

≡放荡痞女 提交于 2019-12-08 00:53:40
问题 When I go looking at StackDriver traces that AppEngine generates automatically, there's a log link (that never brings up any more than one line of the log, but hopefully, they're working on fixing it.) Is there a way to tell StackDriver, when I send a trace and set of spans, what request_id to associate the trace with? 回答1: It is supposed to be one log only since you are searching for log for one particular request. Clicking on the left side triangle will expand the log. If you don't really