404 on prometheus endpoint

Hey there,

I was trying to configure prometheus for shinyproxy 2.6.0 but I am getting 404 when i try to access the endpoint. Implementation details-

  • Shinyproxy is running as a docker container on a remote machine.
  • Application.yml
proxy:
  landing-page: /
  port: 8080
  admin-groups: admins
  heartbeat-enabled: true
  heartbeat-rate: 3600
  heartbeat-timeout: 3600
  container-wait-time: 80000
  container-wait-timeout: 20000
  authentication: ldap
  usage-stats-url: micrometer
  users:
  - name: jack
    password: password
    groups: admins
  - name: jeff
    password: password
  ldap:
  - (ldap details)
  docker:
      internal-networking: true
  specs:
  - id: 01_hello
    display-name: Hello Application
    description: Application which demonstrates the basics of a Shiny app
    container-cmd: ["R", "-e", "shinyproxy::run_01_hello()"]
    container-image: openanalytics/shinyproxy-demo
logging:
  file:
    shinyproxy.log
management:
  metrics:
    export:
      prometheus:
        enabled: true

I am trying to access the prometheus endpoint at machineIP:8080/actuator/prometheus but getting the following error–>

Hi

The Prometheus endpoint is available on port 9090 instead of 8080, i.e. machineIP:9090/actuator/prometheus
(the idea is that this way it is easier to make the actuator endpoints non-public)

@tdekoninck got it working. Thank you :smiley:

1 Like