Skip to content

Commit

Permalink
Add missing name label to modify metric (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
i-surkov committed Jun 9, 2023
1 parent 110a2ae commit 10f2320
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/com/evolution/scache/CacheMetrics.scala
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ object CacheMetrics {
val modifyCounter = collectorRegistry.counter(
name = s"${ prefix }_modify",
help = "Modify, labeled by modification input (entry was present or not), and output (put, keep, or remove)",
labels = LabelNames("existing_entry", "result")
labels = LabelNames("name", "existing_entry", "result")
)

val loadResultCounter = collectorRegistry.counter(
Expand Down Expand Up @@ -200,7 +200,7 @@ object CacheMetrics {
val put = putCounter1.inc()

def modify(entryExisted: Boolean, directive: Directive): F[Unit] = {
modifyCounter.labels(entryExisted.toString, directive.toString).inc()
modifyCounter.labels(name, entryExisted.toString, directive.toString).inc()
}

def size(size: Int) = {
Expand Down

0 comments on commit 10f2320

Please sign in to comment.