Skip to content

Commit

Permalink
Update src/spootnik/reporter/impl.clj
Browse files Browse the repository at this point in the history
Co-authored-by: Sébastien Fievet <_@sebastien-fievet.net>
  • Loading branch information
mping-exo and zyegfryed committed Aug 9, 2023
1 parent 058f4bc commit d4f145c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spootnik/reporter/impl.clj
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@
[^Counter counter {:keys [value label-values] :or {value 1}}]
(-> counter
^Counter$Child (.labels (into-array String (map name label-values)))
(.inc (double (or value 1)))))
(.inc (double value))))

(defn push-pushgateway-metric!
[^PushGateway pg ^CollectorRegistry registry ^String job ^java.util.Map grouping-keys]
Expand Down

0 comments on commit d4f145c

Please sign in to comment.