You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by te...@apache.org on 2022/10/24 05:11:32 UTC

[pulsar] branch master updated: [fix][function] Fix invalid metric type `gauge ` (#18129)

This is an automated email from the ASF dual-hosted git repository.

technoboy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 39270f0439a [fix][function] Fix invalid metric type `gauge ` (#18129)
39270f0439a is described below

commit 39270f0439aeb73d65e90dac999a7cfcfbc257ab
Author: Cong Zhao <zh...@apache.org>
AuthorDate: Mon Oct 24 13:11:24 2022 +0800

    [fix][function] Fix invalid metric type `gauge ` (#18129)
---
 .../java/org/apache/pulsar/functions/worker/WorkerStatsManager.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/WorkerStatsManager.java b/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/WorkerStatsManager.java
index c9b7c1da8db..4c7d28cc70d 100644
--- a/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/WorkerStatsManager.java
+++ b/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/WorkerStatsManager.java
@@ -329,7 +329,8 @@ public class WorkerStatsManager {
     stream.write("# TYPE ");
     stream.write(PULSAR_FUNCTION_WORKER_METRICS_PREFIX);
     stream.write(metricName);
-    stream.write(" gauge \n");
+    stream.write(" gauge");
+    stream.write("\n");
 
     stream.write(PULSAR_FUNCTION_WORKER_METRICS_PREFIX);
     stream.write(metricName);