Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
[fix][function] Fix invalid metric type gauge (apache#18129)
Browse files Browse the repository at this point in the history
  • Loading branch information
coderzc authored Oct 24, 2022
1 parent e8db584 commit 39270f0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,8 @@ private void writeMetric(String metricName, long value, StringWriter stream) {
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);
Expand Down

0 comments on commit 39270f0

Please sign in to comment.