【问题标题】:DataDog how to disable Redis integrationDataDog 如何禁用 Redis 集成
【发布时间】:2019-11-28 11:46:24
【问题描述】:
我已经使用 Helm 图表 (https://github.com/helm/charts/tree/master/stable/datadog) 在我的 Kubernetes 集群上安装了 DataDog 代理。
这很好用,除了一件事。我有许多设置了密码的 Redis 容器。这似乎导致 DataDog 代理出现问题,因为它无法在没有密码的情况下连接到 Redis。
我想完全禁用对 Redis 的监控,或者以某种方式绕过 Redis 身份验证。如果我保持原样,我会在 DataDog 容器日志中收到很多错误消息,并且 redisdb 集成在 DataDog 仪表板中显示为黄色。
我有什么选择?
【问题讨论】:
标签:
kubernetes
redis
datadog
【解决方案1】:
我不是 helm 的粉丝,但您可以通过 2 种方式完成此操作:
apiVersion: v1
data:
auto_conf.yaml.example: |
ad_identifiers:
- redis init_config: instances:
## @param host - string - required
## Enter the host to connect to.
#
- host: "%%host%%" ## @param port - integer - required
## Enter the port of the host to connect to.
#
port: "6379"
conf.yaml.example: |
init_config: instances: ## @param host - string - required
## Enter the host to connect to.
# [removed content]
kind: ConfigMap
metadata:
creationTimestamp: null
name: redisdb-d
改变守护进程/部署对象:
[....]
volumeMounts:
- name: redisdb-d
mountPath: /etc/datadog-agent/conf.d/redisdb.d
[...]
volumes:
- name: redisdb-d
configMap:
name: redisdb-d
[...]