Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-806

Openshift/k8s /metrics should be /q/metrics

    XMLWordPrintable

Details

    • Feature
    • Resolution: Duplicate
    • Major
    • None
    • 1.11.5.ER4
    • team/eng
    • Undefined
    • ---

    Description

      Description

      As nowadays we are doing with /health, that on k8s/Openshift is pointing to /q/health 

      For example:

      livenessProbe:
        failureThreshold: 3
        httpGet:
          path: "/q/health/live"
          port: 8080
          scheme: "HTTP"
      

      We should do the same with /metrics in order to avoid a client redirection to /q/metrics that could be `inconvenience` in terms of performance and also could give some troubles with security. 

      Expected behavior

      Currently, we are generating the following Openshift.yaml:

      metadata:
        annotations:
          prometheus.io/scheme: "http"
          prometheus.io/scrape: "true"
          prometheus.io/path: "/metrics"
          prometheus.io/port: "8080"

      Proposal:

      metadata:
        annotations:
          prometheus.io/scheme: "http"
          prometheus.io/scrape: "true"
          prometheus.io/path: "/q/metrics"
          prometheus.io/port: "8080"
      

       

       GitHub Ref

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rhn-support-pagonzal Pablo Gonzalez Granados (Inactive)
              Pablo Gonzalez Granados Pablo Gonzalez Granados (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: