apache / apache/cloudstack

Prometheus exporter - interpret ::1 as 0:0:0:0:0:0:0:1

未关闭
#6,714 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
component:prometheus ipv6 Severity:Trivial status:stale type:bug
主要语言
Java
星标
3.1k
派生
1.4k
平均合并
6 天 19 小时
30 天内合并 PR
32

描述

Hi,

If I configure the Prometheus exporter to allow requests from ::1 (ipv6 localhost, short form) it doesn't actually honour requests.

In the logs you can see entries such as:
```Prometheus exporter received client request from: 0:0:0:0:0:0:0:1```

Indeed, once you add 0:0:0:0:0:0:0:1 (ipv6 localhost, medium form) it starts working.

It's a minor issue, but nice to get sorted as most people are used to ::1.

贡献指南

打开贡献指南

调研方向

该 issue 提到了 Prometheus exporter 及其 request allowlist,但没有指出文件或测试。定位 allowlist 的处理逻辑,并复现一个来自 ::1 的请求,然后验证当客户端地址记录为 0:0:0:0:0:0:0:1 时,配置的简写形式会被接受。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, prometheus
领域
observability
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。