Prometheus 普罗米修斯有详细的日志吗?
我在库伯内特斯运行普罗米修斯,遇到了一些库伯状态度量连接错误。正在尝试检查日志,但无法在日志中看到连接失败。普罗米修斯的详细日志记录还需要启用吗?只需在普罗米修斯的启动命令中添加Prometheus 普罗米修斯有详细的日志吗?,prometheus,Prometheus,我在库伯内特斯运行普罗米修斯,遇到了一些库伯状态度量连接错误。正在尝试检查日志,但无法在日志中看到连接失败。普罗米修斯的详细日志记录还需要启用吗?只需在普罗米修斯的启动命令中添加--log.level=debug。大概是这样的: spec: template: spec: containers: - args: - --log.level=debug 如果您使用docker compose,此配置将在prometheus中启用调试日志记录:
--log.level=debug
。大概是这样的:
spec:
template:
spec:
containers:
- args:
- --log.level=debug
如果您使用docker compose,此配置将在prometheus中启用调试日志记录:
services:
prom:
image: prom/prometheus:latest
command: --config.file=/etc/prometheus/prometheus.yml --log.level=debug
volumes:
- /mypath/prometheus.yml:/etc/prometheus/prometheus.yml
然后,您可以使用
docker-compose logs -f prom
你的问题不清楚。“度量连接错误”是什么意思?普罗米修斯不能刮伤目标?如果是这样的话,您只能获得目标的状态页面。