【问题记录】Istio与Prometheus冲突问题,“GET /metrics HTTP/1.1“ 503 UF upstream_reset_before_response_started{rem

问题

使用istio官网提供的安装方式,默认会安装loki、kiali、prometheus、grafana,如果自己再搭建一个prometheus,会出现冲突

最开始我发现问题是查看kiali Graph面板出现大量请求错误,查看被请求的日志,发现很多下面的字段:

"GET /metrics HTTP/1.1" 503 UF upstream_reset_before_response_started{remote_connection_failure,delayed_connect_error:_111} - "delayed_connect_error:_111" 0 152 0 - "-" "Prometheus/2.47.2" "c74e755d-6d2f-9131-bf7d-39018dcd576b" "10.0.9.69:30016" "10.0.9.69:30016" inbound|30016|| - 10.0.9.69:30016 10.0.16.108:52286 - default

127.0.0.6 - - [26/Mar/2024:06:10:50 +0000] "GET /metrics HTTP/1.1" 200 537 "-" "Prometheus/2.47.2" "-"
127.0.0.6 - - [26/Mar/2024:06:11:00 +0000] "GET /metrics HTTP/1.1" 200 537 "-" "Prometheus/2.47.2" "-"
127.0.0.6 - - [26/Mar/2024:06:11:10 +0000] "GET /metrics HTTP/1.1" 200 537 "-" "Prometheus/2.47.2" "-"
127.0.0.6 - - [26/Mar/2024:06:11:20 +0000] "GET /metrics HTTP/1.1" 200 537 "-" "Prometheus/2.47.2" "-"
127.0.0.6 - - [26/Mar/2024:06:11:30 +0000] "GET /metrics HTTP/1.1" 200 537 "-" "Prometheus/2.47.2" "-"
127.0.0.6 - - [26/Mar/2024:06:11:40 +0000] "GET /metrics HTTP/1.1" 200 537 "-" "Prometheus/2.47.2" "-"
127.0.0.6 - - [26/Mar/2024:06:11:50 +0000] "GET /metrics HTTP/1.1" 200 537 "-" "Prometheus/2.47.2" "-"
127.0.0.6 - - [26/Mar/2024:06:12:00 +0000] "GET /metrics HTTP/1.1" 200 537 "-" "Prometheus/2.47.2" "-"
127.0.0.6 - - [26/Mar/2024:06:12:10 +0000] "GET /metrics HTTP/1.1" 200 537 "-" "Prometheus/2.47.2" "-"
127.0.0.6 - - [26/Mar/2024:06:12:20 +0000] "GET /metrics HTTP/1.1" 200 537 "-" "Prometheus/2.47.2" "-"
127.0.0.6 - - [26/Mar/2024:06:12:30 +0000] "GET /metrics HTTP/1.1" 200 537 "-" "Prometheus/2.47.2" "-"
127.0.0.6 - - [26/Mar/2024:06:12:40 +0000] "GET /metrics HTTP/1.1" 200 537 "-" "Prometheus/2.47.2" "-"
127.0.0.6 - - [26/Mar/2024:06:12:50 +0000] "GET /metrics HTTP/1.1" 200 537 "-" "Prometheus/2.47.2" "-"
127.0.0.6 - - [26/Mar/2024:06:13:00 +0000] "GET /metrics HTTP/1.1" 200 537 "-" "Prometheus/2.47.2" "-"
127.0.0.6 - - [26/Mar/2024:06:13:10 +0000] "GET /metrics HTTP/1.1" 200 537 "-" "Prometheus/2.47.2" "-"

在这里插入图片描述

解决

删除了添加这种pod的注释,改为手动添加

      annotations:
        prometheus.io/scrape: "true"
        prometheus.io/path: /metrics
        prometheus.io/port: "3000"

此时,istio代理的服务没有出现以上错误请求,具体原因还在查找中

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

运维归一

整理不易,请个辣条吃吧

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值