

For Data Center Edition, see Deploy a SonarQube Cluster on Kubernetes.Although Java has been around for 27 years, enterprise applications still favor it as one of their preferred platforms.For Community, Developer, and Enterprise Edition, see Deploy SonarQube on Kubernetes.username:password and JWT token: When SonarQube is fully operational, system admins logged in with local or delegated authentication can access the endpoint.įor more information on deploying SonarQube on Kubernetes:.

Define X-Sonar-passcode in the sonar.properties file using the property.
Jmx memory monitor upgrade#
X-Sonar-Passcode: xxxxx header: You can use X-Sonar-passcode during database upgrade and when SonarQube is fully operational.Define the bearer token in the sonar.properties file using the property. Authorization:Bearer xxxx header: You can use a bearer token during database upgrade and when SonarQube is fully operational.You can access the endpoint following ways: Monitoring through this endpoint requires authentication. See Prometheus' documentation on Exposition Formats for more information on the OpenMetrics text format. Results are returned in OpenMetrics text format. Prometheus monitors your SonarQube instance by collecting metrics from the /api/monitoring/metrics endpoint. Through this integration, you can ensure your instance is running properly and know if you need to take action to prevent future issues. You can monitor your SonarQube instance using SonarQube's native integration with Prometheus. Note: You should apply chmod 600 or 400 on the file jmxremote.password, for security reasons. =true .ssl=false .authenticate=true .port=10443 .rmi.port=10444 .password.file=/opt/sonarsource/sonar/conf/jmxremote.password .access.file=/opt/sonarsource/sonar/conf/jmxremote.accessįor the ComputeEngine, there is no specific javaAdditionalOpts entry, simply amend sonar.ce.javaOpts.Ĭreate .*.*.*.* \ Here are examples of configurations to activate remote access to JMX MBeans.įor the WebServer: # JMX WEB - 10443/10444 There is nothing to activate to view SonarQube MBeans if your tool is running on the same server as the SonarQube Server. SonarQube MBean How do I activate JMX? Local access

You can increase the maximum memory allocated to the appropriate process by increasing the -Xmx memory setting for the corresponding Java process in your /conf/sonar.properties file:
