stackdriver

Setting up ERROR REPORTING for GKE

穿精又带淫゛_ 提交于 2020-01-06 21:16:47
问题 I am trying to setup Stackdriver Error Reporting for an app deployed to GKE. As I understood there are two ways of doing that: Stackdriver Logging agent and Error Reporting REST API . According to Setting up on Google Compute Engine docs If I already have a running logging agent I can reach it on localhost:24224 . It looks like there already is a logging agent for GKE: ✗ kubectl get pods --namespace=kube-system NAME READY STATUS RESTARTS AGE fluentd-cloud-logging-gke-tc-default-pool-5713124a

AppEngine service name and version in the GAE flexible env from my code at runtime in Java/Jetty?

≡放荡痞女 提交于 2020-01-06 16:01:33
问题 How do I get the AppEngine service name and version in the GAE flexible env from my Java code at runtime in the Java 8/Jetty runtime? I need the service and version to populate the ServiceContext info in the stackdriver error reporting on GCP. https://cloud.google.com/error-reporting/docs/formatting-error-messages 回答1: I am the Stackdriver Error Reporting product manager. To answer your question: While I cannot find a clear documentation page for it. It seems that the environment variables

Why are my Stackdriver Google Pub/Sub subscription/pull_request_count metric alerts broken?

谁都会走 提交于 2020-01-06 05:05:16
问题 I have some alerts set up in Stackdriver to warn me if there are no pull requests for Pub/Sub subscriptions (implying that all my servers are down or broken). However, I noticed these alerts stopped working. When I pull up the alert in Stackdriver, the Metric is highlighted in red. If I try to set up another alert with the subscription/pull_request_count metric, it's not listed. The metric is also listed in the Pub/Sub monitoring docs, so I'd expect that it's valid. How can I get this alert

Why are my Stackdriver Google Pub/Sub subscription/pull_request_count metric alerts broken?

自作多情 提交于 2020-01-06 05:04:06
问题 I have some alerts set up in Stackdriver to warn me if there are no pull requests for Pub/Sub subscriptions (implying that all my servers are down or broken). However, I noticed these alerts stopped working. When I pull up the alert in Stackdriver, the Metric is highlighted in red. If I try to set up another alert with the subscription/pull_request_count metric, it's not listed. The metric is also listed in the Pub/Sub monitoring docs, so I'd expect that it's valid. How can I get this alert

Google Cloud Platform : Stackdriver Agent installation and Condiguration error on GCP VM instance

邮差的信 提交于 2020-01-04 13:47:35
问题 I dont have hands on experience on stackdriver monitoring configuration for google cloud platform VM instances monitoring. our basic monitoring for our project works fine but while trying to install stackdriver agent in Ubuntu 14.04 OS it gives us error and stack driver with agent does not works for us. below is the error for your reference. Jan 3 10:43:42 ubuntu-uat01 collectd[2283]: write_gcm: Unsuccessful HTTP request 403: {#012 "error": {#012 "code": 403,#012 "message": "User is not

Google Cloud Platform : Stackdriver Agent installation and Condiguration error on GCP VM instance

时间秒杀一切 提交于 2020-01-04 13:47:34
问题 I dont have hands on experience on stackdriver monitoring configuration for google cloud platform VM instances monitoring. our basic monitoring for our project works fine but while trying to install stackdriver agent in Ubuntu 14.04 OS it gives us error and stack driver with agent does not works for us. below is the error for your reference. Jan 3 10:43:42 ubuntu-uat01 collectd[2283]: write_gcm: Unsuccessful HTTP request 403: {#012 "error": {#012 "code": 403,#012 "message": "User is not

Can I run Google Monitoring Agent inside a Kubernetes Pod?

浪尽此生 提交于 2020-01-01 04:46:06
问题 It seems that the Google Monitoring Agent (powered by Stackdriver) should be installed on each Node (i.e. each compute instance, i.e. each machine) of a Kubernetes cluster. However the new plugins , like Nginx, Redis, ElasticSearch..., need those agents to know the IP of these services. This means having kube-proxy running and set up which should mean running that Google Monitoring Agent on a Pod. These two conflict: On one side that agent monitors the entire machine, on the other it monitor

Stackdriver Debugger doesn't capture snapshots

十年热恋 提交于 2019-12-24 10:18:11
问题 I am using AppEngine, NodeJS (Standard), I have accepted the license agreements, and I am initializing the Debug Agent this way: require('@google-cloud/debug-agent').start({ allowExpressions: true }); I can see all the logs for my application in the Logs Viewer, all the requests are here. When opening the Stackdriver Debugger, it recognizes what is the current source code running, and displays it. I try adding a few snapshots and logpoints, as basic as this: if (true) logpoint("Hello World!")

Memory Usage Monitoring in GCP Compute Engine with or without Stack Driver

五迷三道 提交于 2019-12-23 04:54:38
问题 Cloud Platform - GCP Compute Engine OS - Ubuntu, 16.04 LTS I want to see memory utilization graph just like CPU utilization (compute.googleapis.com/instance/cpu/utilization). I could not find any way to monitor my Compute Engine memory utilization even if Stack-driver is enabled. I checked https://cloud.google.com/monitoring/api/metrics_gcp#gcp-compute and there is no endpoint for memory utilization monitoring. I tried stackdriver agent monitoring endpoints also but it is not working ( agent

How to select monitored instances on stackdriver

房东的猫 提交于 2019-12-23 04:33:27
问题 You have 45 days left in your Stackdriver Premium If we go premium, how do we choose which instances are to be monitored. Is that even possible? I don't want to pay 8$ per month for the instances that don't require monitoring. All I have found is this article: To have the Stackdriver service ignore a specific instance, add a tag named "stackdriver_monitor" with a value of "false". but this is for EC2 instances. I'm using GCE platform. 回答1: currently for GCE you'd have to use a different