【发布时间】:2019-02-06 23:25:53
【问题描述】:
是否可以使用 Stackdriver 监控代理设置通用 Docker 映像,以便它可以将容器内的日志数据发送到 Stackdriver,然后可以跨任何 VM 实例使用,而不管 GCE 和 AWS 是什么?
更新
FROM ubuntu:16.04
USER root
ADD . /
ENV GOOGLE_APPLICATION_CREDENTIALS="/etc/google/auth/application_default_credentials.json"
RUN apt-get update && apt-get -y --no-install-recommends install wget curl python-minimal ca-certificates lsb-release libidn11 openssl && \
RUN curl -sSO https://dl.google.com/cloudagents/install-logging-agent.sh
RUN bash install-logging-agent.sh
我完全遵循documentation 中所说的内容。安装顺利。但是 google-fluentd 无法启动/重启。
提前致谢。
【问题讨论】:
-
您好,希望在 Docker 容器中运行 stackdriver-agent。你想清楚了吗?
-
我认为 Google Container-Optimized OS Image 不兼容...
-
Ubuntu 16 不在此列表中cloud.google.com/logging/docs/agent/…
标签: bash docker stackdriver google-cloud-stackdriver