aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorlukasz-jarocki-sonarsource <lukasz.jarocki@sonarsource.com>2024-07-29 12:29:45 +0200
committersonartech <sonartech@sonarsource.com>2024-07-31 20:02:43 +0000
commitcd9dbb3d446b40de752b4e8ef6a284878c85a5ce (patch)
tree63cb901ae09cd322a8555272648ce3f265167508 /server
parent6af98df51f5f85bb47e3661a471637133cdf97f2 (diff)
downloadsonarqube-cd9dbb3d446b40de752b4e8ef6a284878c85a5ce.tar.gz
sonarqube-cd9dbb3d446b40de752b4e8ef6a284878c85a5ce.zip
SONAR-22645 improving documentation about prometheus metrics
Diffstat (limited to 'server')
-rw-r--r--server/sonar-webserver-webapi/src/main/java/org/sonar/server/platform/ws/SafeModeMonitoringMetricAction.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/platform/ws/SafeModeMonitoringMetricAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/platform/ws/SafeModeMonitoringMetricAction.java
index e9948472929..d05d2084672 100644
--- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/platform/ws/SafeModeMonitoringMetricAction.java
+++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/platform/ws/SafeModeMonitoringMetricAction.java
@@ -54,9 +54,9 @@ public class SafeModeMonitoringMetricAction implements MonitoringWsAction {
context.createAction("metrics")
.setSince("9.3")
.setDescription("""
- Return monitoring metrics in Prometheus format.\s
- Support content type 'text/plain' (default) and 'application/openmetrics-text'.
- this endpoint can be access using a Bearer token, that needs to be defined in sonar.properties with the 'sonar.web.systemPasscode' key.""")
+ Return monitoring metrics in Prometheus format. \s
+ Support content type 'text/plain' (default) and 'application/openmetrics-text'.
+ This endpoint can be accessed using a Bearer token, which needs to be defined in sonar.properties with the 'sonar.web.systemPasscode' key.""")
.setResponseExample(Resources.getResource(this.getClass(), "monitoring-metrics.txt"))
.setHandler(this);
isWebUpGauge.set(1D);