Skip to content

Commit

Permalink
Update Prometheus Client To 0.10.0 And Fix Tests
Browse files Browse the repository at this point in the history
Prometheus is changing the naming scheme of some of their metrics in order to be compatible with the OpenMetrics standard. Part of this means that all counters will have `_total` or `_created` as a suffix. There is no way to create a counter without a `_total` suffix.

See: prometheus/client_java#615
  • Loading branch information
isomarcte committed Jan 25, 2021
1 parent 9f58f1c commit de50bde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion project/Http4sPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ object Http4sPlugin extends AutoPlugin {
val okio = "2.10.0"
val okhttp = "4.9.0"
val playJson = "2.9.2"
val prometheusClient = "0.9.0"
val prometheusClient = "0.10.0"
val reactiveStreams = "1.0.3"
val quasiquotes = "2.1.0"
val scalacheck = "1.15.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ object util {
case "2xx_responses" =>
registry
.getSampleValue(
s"${prefix}_request_count",
s"${prefix}_request_count_total",
Array("classifier", "method", "status"),
Array(classifier, method, "2xx"))
case "2xx_headers_duration" =>
Expand All @@ -79,7 +79,7 @@ object util {
case "4xx_responses" =>
registry
.getSampleValue(
s"${prefix}_request_count",
s"${prefix}_request_count_total",
Array("classifier", "method", "status"),
Array(classifier, method, "4xx"))
case "4xx_headers_duration" =>
Expand All @@ -95,7 +95,7 @@ object util {
case "5xx_responses" =>
registry
.getSampleValue(
s"${prefix}_request_count",
s"${prefix}_request_count_total",
Array("classifier", "method", "status"),
Array(classifier, method, "5xx"))
case "5xx_headers_duration" =>
Expand Down

0 comments on commit de50bde

Please sign in to comment.