prometheus에서 discourse-prometheus 모니터링을 설정하는 방법

discourse와 discourse-prometheus 플러그인을 설치한 후, prometheus.yaml에 다음 구성을 추가했습니다:

- job_name: forums
  metrics_path: /metrics
  static_configs:
    - targets:
      - forums.kingsd.top
  scheme: https
  basic_auth:
    username: admin
    password: password

그런데 prometheus에서 해당 엔드포인트의 상태가 항상 DOWN으로 표시되고, server returned HTTP status 404 Not Found라는 에러 로그가 발생했습니다.

shared/standalone/log/rails/production.log 파일에는 다음 에러 로그가 계속 출력되고 있습니다:

Started GET "/metrics" for 123.184.31.122 at 2022-03-17 11:03:34 +0000
ActionController::RoutingError (No route matches [GET] "/metrics")
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
lib/middleware/request_tracker.rb:202:in `call'
  Rendered exceptions/not_found.html.erb within layouts/no_ember (Duration: 0.3ms | Allocations: 193)
  Rendered layout layouts/no_ember.html.erb (Duration: 4.1ms | Allocations: 2216)
  Rendered html template (Duration: 0.0ms | Allocations: 2)

제 설정에 문제가 있는 것일까요? 도움을 주십시오.

죄송합니다. DISCOURSE_PROMETHEUS_TRUSTED_IP_ALLOWLIST_REGEX를 설정하는 것을 잊었습니다.