From 196a4b74578151dc45fda68815203a2c666c6017 Mon Sep 17 00:00:00 2001 From: Stijn De Haes Date: Sun, 25 Jun 2017 14:01:06 +0200 Subject: [PATCH] Some changes to pom and added example project --- README.md | 15 +++++++++++++-- build.sbt | 37 ++++++++++++++++++------------------- 2 files changed, 31 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 3391cfb..5a97ae9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,15 @@ -# Play prometheus play.prometheus.filters +# Play prometheus filters This play library provides three types of filters that collect prometheus metrics. +A simple hello world application using these filters can be found in the following repo: +https://github.com/stijndehaes/play-prometheus-filters-example-app + +To use the library add the following to you build.sbt + +```scala +libraryDependencies += "com.github.stijndehaes" %% "play-prometheus-filters" % "0.1.0" + +``` ## The filters @@ -53,4 +62,6 @@ The project also provides a prometheus controller with a get metric method. If y GET /metrics play.prometheus.controllers.PrometheusController.getMetrics ``` -You should be able to immediately get the metrics \ No newline at end of file +You should be able to immediately get the metrics + +## Example \ No newline at end of file diff --git a/build.sbt b/build.sbt index fac667b..e9e1edb 100644 --- a/build.sbt +++ b/build.sbt @@ -18,25 +18,24 @@ lazy val root = (project in file(".")) pomIncludeRepository := { _ => false }, makePomConfiguration ~= { _.copy(configurations = Some(Seq(Compile, Runtime, Optional))) }, pomExtra := - https://github.com/stijndehaes/playPrometheusFilters - - - MIT License - http://www.opensource.org/licenses/mit-license.php - repo - - - - git@github.com:stijndehaes/playPrometheusFilters.git - scm:git:git@github.com:stijndehaes/playPrometheusFilters.git - - - - stijndehaesu - Stijn De Haes - + - - + https://github.com/stijndehaes/play-prometheus-filters + + + MIT License + http://www.opensource.org/licenses/mit-license.php + repo + + + + git@github.com:stijndehaes/play-prometheus-filters.git + scm:git:git@github.com:stijndehaes/play-prometheus-filters.git + + + + stijndehaes + Stijn De Haes + + ) scalaVersion := "2.11.11"