-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uptake kineticpulse library for metrics logic in acdc (#51)
- Loading branch information
Showing
11 changed files
with
51 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import utils.MetricFilter | ||
|
||
import javax.inject.Inject | ||
|
||
import play.api.http.DefaultHttpFilters | ||
|
||
import com.salesforce.mce.kineticpulse.MetricFilter | ||
|
||
class Filters @Inject() ( | ||
metricsFilter: MetricFilter | ||
) extends DefaultHttpFilters(metricsFilter) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package utils | ||
|
||
import io.prometheus.client.Gauge | ||
|
||
object AcdcMetric { | ||
val dbCountGauge: Gauge = Gauge | ||
.build() | ||
.name("acdc_db_record_count") | ||
.labelNames("table") | ||
.help("acdc DB table records count") | ||
.register | ||
|
||
def countDB(table: String, cnt: Double): Unit = { | ||
dbCountGauge.labels(table).set(cnt) | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
GET /__status controllers.StatusController.status() | ||
GET /__metrics controllers.MetricController.collect() | ||
GET /__metrics com.salesforce.mce.kineticpulse.MetricController.collect() | ||
|
||
-> /api/v1 routers.ApiRouter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ThisBuild / version := "0.8.12" | ||
ThisBuild / version := "0.8.13" |