谷歌 kubernetes 引擎上的日志记录问题 datadog

发布于 2025-01-16 21:42:50 字数 545 浏览 2 评论 0原文

我正在GKE环境中构建带有数据坞的监控环境。

我已配置 datadog helm-chart,并将日志设置为启用。这个时候Datadog代理不是会自动获取Node上所有pod的日志吗?

如下图,似乎只有当你想要收集日志的Pod上必须附加注解时才会收集日志。

apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "chart.fullname" . }}
  labels:
    {{- include "chart.labels" . | nindent 4 }}
    tags.datadoghq.com/env: "test-env"
    tags.datadoghq.com/service: "test-service"
    tags.datadoghq.com/version: 0.0.1
spec:
    ....

那么,如果你想自动获取集群中浮动的所有Pod的日志怎么办?

我尝试允许 datadog 代理工作并在 datadog web 中显示日志仪表板

I am building a monitoring environment with data dock in GKE environment.

I have configured datadog helm-chart with logs set to enabled. At this time, doesn't the Datadog agent automatically get the logs of all pods on the Node?

As shown below, it seems that logs are being collected only when the annotation must be attached to the Pods you want to collect logs from

apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "chart.fullname" . }}
  labels:
    {{- include "chart.labels" . | nindent 4 }}
    tags.datadoghq.com/env: "test-env"
    tags.datadoghq.com/service: "test-service"
    tags.datadoghq.com/version: 0.0.1
spec:
    ....

In this case, what if you want to automatically get the logs of all Pods floating in the cluster?

I tried allowing datadog agent to work and show logs dashboard in datadog web

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

淡水深流 2025-01-23 21:42:50

尝试在日志部分下的 datadog 值文件中启用 -

日志

try to enable in datadog values file under logs part-

logs

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文