我在Kubernetes中运行Prometheus,并遇到一些kube状态指标连接错误。尝试检查日志,但无法在日志中看到连接失败。无论如何,是否有为Prometheus启用详细日志记录的功能?
最佳答案
只需将--log.level=debug
添加到prometheus的启动命令中即可。像这样的东西:
spec:
template:
spec:
containers:
- args:
- --log.level=debug
关于prometheus - Prometheus中有详细的日志吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60014600/