谷歌 kubernetes 引擎上的日志记录问题 datadog
我正在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试在日志部分下的 datadog 值文件中启用 -
日志
try to enable in datadog values file under logs part-
logs