google-cloud-stackdriver

cockroachdb/kubernetes logging lots of errors on stackdriver

天涯浪子 提交于 2019-12-11 12:32:18
问题 I've just noticed from a very nasty gcp bill that cockroachDB has logged 1.5tb of errors on stackdriver, costing me several hundred dollars in just a few days. Sadly I had left it on 100% logging. The errors look like this and are piling up multiple times per second. E I180712 11:18:41.963205 106 server/status/runtime.go:223 [n2] runtime stats: 1.5 GiB RSS, 283 goroutines, 254 MiB/54 MiB/441 MiB GO alloc/idle/total, 918 MiB/1.1 GiB CGO alloc/total, 2175.51cgo/sec, 0.16/0.02 %(u/s)time, 0.00

How can I most accurately associate Google Cloud Platform project costs with App Engine activity?

允我心安 提交于 2019-12-11 08:04:16
问题 I support a data management solution built on Google Cloud Platform. As our product matures, more and more teams and individuals are adopting it, meaning more people are storing and searching for data and racking up costs. We need to better understand how much each of these users/workflows are costing us so that we can eventually start charging them for using our services. I already have billing data for the Google Cloud Platform project that our solution runs on exported to BigQuery. I've

Tagging proper GCE Instance name in Stackdriver logging

非 Y 不嫁゛ 提交于 2019-12-11 05:49:00
问题 I am using Google Compute Engine Instance running on Debian for running a service written in Node.js. For logging purpose, I am using Stackdriver logging. The logs are getting generated, however, The log entries are not getting filtered under proper GCE Instance name. Here's how the resource flags are in a log entry resource: { labels: { instance_id: "6000000000000000000" //A numeric id project_id: "my-project" zone: "" } type: "gce_instance" } The instance id is getting generated as a

perform arithmetic on stack driver metrics

无人久伴 提交于 2019-12-10 22:52:28
问题 These aren't custom metrics I'm trying to add just the existing GCP metrics. How do I add 2 metrics together in a Stack driver time series? I have two different metrics and I want to sum them so I see a single line- also I'd like to be able to alert on this summed metric too. Is this possible? Again I'm not shipping metrics to stack driver I'd doing this with existing metrics already there. 来源: https://stackoverflow.com/questions/49304742/perform-arithmetic-on-stack-driver-metrics

Google Cloud Trace 192.168.1.1

久未见 提交于 2019-12-10 20:24:52
问题 In the Trace page of Google Cloud Console I can see address 192.168.1.1 which takes a lot of time to execute. What is this address? From where? Is it from internal cloud's infrastructure? Or is it mine local address (if it possible)? 回答1: After talk with Google Cloud Support appears that 192.168.1.1 is exactly machine IP address on which Google Cloud Function is launched. But the interesting thing is that this address only appears if console.* things are in the code. So, for example I'm using

How to use Stackdriver logging on Cloud Run

混江龙づ霸主 提交于 2019-12-10 19:25:08
问题 I'm trying to get stackdriver logging working for a simple Go app running in Google Cloud Run (fully managed). I've created simplest possible demo app based on "official" stackdriver golang example Cloud Run docs states that no additional actions should be performed to write stackdriver logs My service uses default service account I'm using Go 1.13 to compile code (Dockerfile is copied from Cloud Run example "as-is") I've tried to deploy it to different regions, with no success When running

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 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

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