标签: google-stackdriver

检测 GKE 日志中的 Kubernetes OOMKilled 事件

我想为 OOMKilled 事件设置检测,在检查 pod 时看起来像这样:

Name:   pnovotnak-manhole-123456789-82l2h
Namespace:  test
Node:   test-cluster-cja8smaK-oQSR/10.x.x.x
Start Time: Fri, 03 Feb 2017 14:34:57 -0800
Labels:   pod-template-hash=123456789
    run=pnovotnak-manhole
Status:   Running
IP:   10.x.x.x
Controllers:  ReplicaSet/pnovotnak-manhole-123456789
Containers:
  pnovotnak-manhole:
    Container ID: docker://...
    Image:    pnovotnak/it
    Image ID:   docker://sha256:...
    Port:
    Limits:
      cpu:  2
      memory: 3Gi
    Requests:
      cpu:    200m
      memory:   256Mi
    State:    Running
      Started:    Fri, 03 Feb 2017 14:41:12 -0800
    Last State:   Terminated
      Reason:   OOMKilled
      Exit Code:  137
      Started:    Fri, 03 Feb 2017 14:35:08 -0800
      Finished:   Fri, 03 Feb 2017 14:41:11 -0800 …
Run Code Online (Sandbox Code Playgroud)

kubernetes google-kubernetes-engine google-stackdriver

9
推荐指数
1
解决办法
6263
查看次数

使用 GCE 和 stackdriver 拖尾日志

我有一个正在运行的 Kubernetes 集群,它在 stackdriver 中聚合它的日志文件,并希望在命令行上跟踪聚合的日志。但到目前为止,我只能在 Web 界面中查看浮动的 json 流或使用类似gcloud beta logging read 'resource.type="container" jsonPayload.service:("my-service") timestamp >= "2017-06-22T16:00:00+02:00"' --format=json.

我无法在 GCE 中构建当前日志条目的聚合实时视图,就像您从tail -f?

kubernetes google-cloud-platform google-stackdriver

9
推荐指数
1
解决办法
1343
查看次数

Google Cloud Firewall 日志是否允许和拒绝?

我似乎无法找到一种方法来查看我的 Google Cloud Platform 日志中允许和拒绝的流量。GCP 防火墙确实不记录允许/拒绝的流量吗?

google-cloud-platform google-stackdriver

5
推荐指数
1
解决办法
3556
查看次数

如何在 Ubuntu 18.04LTS 上安装 Stackdriver 的监控代理?

我正在尝试在 Google Compute Engine 上的 Ubuntu 18.04 VM 上使用 Stackdriver Monitoring。看起来 18.04尚不受支持,即使它是 LTS 版本

我尝试编辑安装脚本以安装 16.04 版本,但看起来需要 libcurl3(18.04 安装 libcurl4,加上 18.04 的 Google Compute Engine 实用程序需要 libcurl4)。

如何安装监控代理?或者如果 18.04 的官方支持即将到来,什么时候?

ubuntu monitoring google-compute-engine google-cloud-platform google-stackdriver

5
推荐指数
1
解决办法
2197
查看次数

在 StackDriver Logging 中使用通配符

我想在 Google StackDriver 日志过滤器中使用通配符。但是,根据官方网站,过滤器无法使用它。有什么方法可以使用吗?

google-cloud-platform google-stackdriver

5
推荐指数
2
解决办法
8455
查看次数