Skip to content

Commit 2bfe29e

Browse files
authored
blank out prometheus argument label for http request, reduce # of time series tracked (#47)
1 parent 188ce57 commit 2bfe29e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

acdc-ws/app/utils/MetricFilter.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ class MetricFilter @Inject() (
2121
)(requestHeader: RequestHeader): Future[Result] = {
2222
metric.parseRequest(requestHeader) match {
2323
case Some((staticPath, argument)) =>
24-
val stopTimerCallback = metric.startApiTimer(staticPath, argument, requestHeader.method)
24+
// hardcode argument to "" so as to control the number of time series
25+
val stopTimerCallback = metric.startApiTimer(staticPath, "", requestHeader.method)
2526

2627
nextFilter(requestHeader)
2728
.transform(

version.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ThisBuild / version := "0.8.7"
1+
ThisBuild / version := "0.8.8"

0 commit comments

Comments
 (0)