Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-9739

Add WS api/system/health providing health status in standalone mode

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6-M3, 6.6
    • Component/s: Web API
    • Labels:

      Description

      Add WS api/system/health:

      • method: GET
      • no parameter
      • response:
        {
          "health": "RED",
          "causes": [
            "doh!",
            "oups"
          ]
        }
        

      Details will be empty when status is GREEN. Otherwise, all reasons health status is not GREEN must be provided.

      Health status is:

      • RED if
        • web server is not "UP"
        • and/or Compute Engine is not UP
        • and/or ES status is RED
        • and/or the instance can not connect to the DB
      • YELLOW if
        • ES status is YELLOW
      • GREEN
        • otherwise

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sebastien.lesaint Sebastien Lesaint
              Reporter:
              sebastien.lesaint Sebastien Lesaint
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: