From cd9dbb3d446b40de752b4e8ef6a284878c85a5ce Mon Sep 17 00:00:00 2001 From: lukasz-jarocki-sonarsource Date: Mon, 29 Jul 2024 12:29:45 +0200 Subject: SONAR-22645 improving documentation about prometheus metrics --- .../sonar/server/platform/ws/SafeModeMonitoringMetricAction.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server') 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); -- cgit v1.2.3