You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: proxy-server/src/main/java/io/micrometer/prometheus/rsocket/PrometheusControllerProperties.java
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,12 @@ public class PrometheusControllerProperties {
33
33
*/
34
34
privateintwebsocketPort = 8081;
35
35
36
+
/**
37
+
* Whether to enable publishing of Prometheus metadata (lines "# HELP ..." and lines "# TYPE ...") in the payload returned by the /metrics/connected endpoint.
38
+
* Disabling metadata publishing reduces the amount of data sent sent on each scrape.
39
+
*/
40
+
privatebooleanconnectedMetricsMetadata = true;
41
+
36
42
publicintgetTcpPort() {
37
43
returntcpPort;
38
44
}
@@ -48,4 +54,12 @@ public int getWebsocketPort() {
0 commit comments