stackdriver

How to setup error reporting in Stackdriver from kubernetes pods?

雨燕双飞 提交于 2019-11-30 23:06:51
问题 I'm a bit confused at how to setup error reporting in kubernetes, so errors are visible in Google Cloud Console / Stackdriver "Error Reporting"? According to documentation https://cloud.google.com/error-reporting/docs/setting-up-on-compute-engine we need to enable fluentd' "forward input plugin" and then send exception data from our apps. I think this approach would have worked if we had setup fluentd ourselves, but it's already pre-installed on every node in a pod that just runs gcr.io

GKE & Stackdriver: Java logback logging format?

我与影子孤独终老i 提交于 2019-11-28 01:11:15
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, and all logs have "INFO" log level, even though they are really warning, or error. I have been searching for information on how to configure logback to output the correct format for this to work properly, but I can find no such guide in the google Stackdriver or GKE documentation. My guess is that I should be outputting JSON of some form, but where

Reading Application Logs on Google App Engine from Developer Console

余生颓废 提交于 2019-11-27 16:24:57
Reading and Writing Application Logs discusses the difference between Request logs vs application logs . In main.py running on App Engine I import logging and grab a logger (since it's named, options_log , I'm not using root logger): import logging log = logging.getLogger('options_log') log.setLevel(logging.INFO) ... log.info('Hello Log!') I can't find any information on where to view my application logs in the Developer Console. I see only request_log and activity . The request_log contains logging from main.py , but how do I log to application log and not request_log ? You don't need to set

GKE & Stackdriver: Java logback logging format?

江枫思渺然 提交于 2019-11-26 21:36:23
问题 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, and all logs have "INFO" log level, even though they are really warning, or error. I have been searching for information on how to configure logback to output the correct format for this to work properly, but I can find no such guide in the google

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

时间秒杀一切 提交于 2019-11-26 21:17:45
问题 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 log levels in cloud logging. Am I reading this correctly? https://cloud.google.com/appengine/docs/flexible/java/writing-application-logs#writing_application_logs_1 And this page was really unhelpful. https://cloud.google.com/java/getting-started

Reading Application Logs on Google App Engine from Developer Console

我的未来我决定 提交于 2019-11-26 18:37:48
问题 Reading and Writing Application Logs discusses the difference between Request logs vs application logs. In main.py running on App Engine I import logging and grab a logger (since it's named, options_log , I'm not using root logger): import logging log = logging.getLogger('options_log') log.setLevel(logging.INFO) ... log.info('Hello Log!') I can't find any information on where to view my application logs in the Developer Console. I see only request_log and activity . The request_log contains