Prometheus exporter - interpret ::1 as 0:0:0:0:0:0:0:1
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 1.4k
- Avg merge
- 6d 19h
- Merged PRs (30d)
- 32
Description
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.
Contributor guide
Research direction
The issue names the Prometheus exporter and its request allowlist but no file or test. Locate the allowlist handling and reproduce a request from ::1, then verify that the configured short form is accepted when the client address is logged as 0:0:0:0:0:0:0:1.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, prometheus
- Domain
- observability
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100