Start Free
Latest | Server installation and setup | Deploying on Kubernetes | Setting up monitoring | Introduction

SonarQube monitoring on Kubernetes

If you deploy SonarQube on Kubernetes, the following Prometheus metrics can be collected:

  • The metrics exposed on the SonarQube Web API’s monitoring endpoint. Results are returned in OpenMetrics text format.
  • The JMX metrics exposed by the Prometheus JMX exporter in a format understandable by Prometheus. The exposition of these metrics is disabled by default.

See the List of Prometheus metrics for more information.

The figure below shows in a simplified way the exposition of the Prometheus metrics. Note that:

  • The normal metrics are exposed at the /api/monitoring/metrics endpoint of the Web API.
  • The JMX metrics are exposed at two ports, one for the metrics related to the Compute Engine (CE) process and one for the metrics related to the Web server process of SonarQube.

You can collect the metrics in different ways, such as:


Was this page helpful?

© 2008-2024 SonarSource SA. All rights reserved. SONAR, SONARSOURCE, SONARLINT, SONARQUBE, SONARCLOUD, and CLEAN AS YOU CODE are trademarks of SonarSource SA.

Creative Commons License