Skip to content

Commit

Permalink
Merge pull request #11 from titou10titou10/master
Browse files Browse the repository at this point in the history
SimpleTimer "_elapsedTime" metrics must be of type "gauge" for Prometheus
  • Loading branch information
MBJuric authored Jun 11, 2021
2 parents f607a86 + 8222aa2 commit 9c322c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static void buildSimpleTimer(StringBuilder builder, String name, SimpleTi
String lineName = name + "_elapsedTime";
double value = simpleTimer.getElapsedTime().toNanos() * conversionFactor;

getPromTypeLine(builder, lineName, "simpletimer");
getPromTypeLine(builder, lineName, "gauge");
getPromValueLine(builder, lineName, value, tags, "_seconds");
}

Expand Down

0 comments on commit 9c322c6

Please sign in to comment.