Thanks @JammyDodger but unfortunately those resources didn’t help.
They have similar issue but slightly different to the point that they don’t apply in this case.
Just to be sure, I tried what one of those topics suggested (as well as @pfaffman) and played around with the DISCOURSE_PROMETHEUS_TRUSTED_IP_ALLOWLIST_REGEX env variable.
I tested:
- Commenting it out
- Added and with internal IP value
- Added and with external IP value
Tried also changing the Prometheus scrape job to address the Discourse installation as:
- direct internal IP
- docker internal hostname
- direct external IP
- public domain name
In every case, tried both http and https
In all cases, I’m getting a 404.
What I would expect, is the actual page response as the request is coming from an internal IP.