I’m trying your suggestion with
DISCOURSE_PROMETHEUS_TRUSTED_IP_REGEX, and there is something quite strange. I’ve been checking logs and I’m getting the following:
Started GET "/metrics" for ::ffff:22.214.171.124 at 2020-04-27 10:43:04 +0000 ActionController::RoutingError (No route matches [GET] "/metrics") /discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-126.96.36.199/lib/action_dispatch/middleware/debug_exceptions.rb:36:in `call' Rendering exceptions/not_found.html.erb within layouts/no_ember Rendered exceptions/not_found.html.erb within layouts/no_ember (Duration: 0.2ms | Allocations: 18) Rendered layouts/_head.html.erb (Duration: 4.4ms | Allocations: 232) Rendered common/_discourse_stylesheet.html.erb (Duration: 0.8ms | Allocations: 310) Rendered application/_header.html.erb (Duration: 0.5ms | Allocations: 122) Rendering html template Rendered html template (Duration: 0.0ms | Allocations: 2)
Also, I did a try with
DISCOURSE_PROMETHEUS_TRUSTED_IP_REGEX=(/.*/), it means, let’s allow everything to see if at least it works, and no luck so far.