Skip to content

Commit

Permalink
fix metrics, everything was severe
Browse files Browse the repository at this point in the history
  • Loading branch information
tuantrannav committed Jan 10, 2024
1 parent 9af4926 commit 7e6e013
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class River(rapidsConnection: RapidsConnection, private val riverMetrics: RiverM
riverMetrics.timer(context.rapidName(), it.name(), eventName) {
it.onPacket(packet, context)
}
riverMetrics.messageCounter(context.rapidName(), it.name(), "success")
riverMetrics.messageCounter(context.rapidName(), it.name(), "ok")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class RiverMetrics: MeterBinder {

fun messageCounter(rapidName:String, riverName: String, status: String) {
LOG.debug("Incrementing message counter for rapid {} and river {} with status {}", rapidName, riverName, status)
Counter.builder("message_counter").tags("rapid",rapidName, "river", riverName, "status", "severe")
Counter.builder("message_counter").tags("rapid",rapidName, "river", riverName, "status", status)
.register(meterRegistry)
.increment()
}
Expand Down

0 comments on commit 7e6e013

Please sign in to comment.