Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Some changes to pom and added example project
Browse files Browse the repository at this point in the history
  • Loading branch information
stijndehaes committed Jun 25, 2017
1 parent 207dd7f commit 196a4b7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 21 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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
You should be able to immediately get the metrics

## Example
37 changes: 18 additions & 19 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,24 @@ lazy val root = (project in file("."))
pomIncludeRepository := { _ => false },
makePomConfiguration ~= { _.copy(configurations = Some(Seq(Compile, Runtime, Optional))) },
pomExtra :=
<url>https://github.com/stijndehaes/playPrometheusFilters</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:stijndehaes/playPrometheusFilters.git</url>
<connection>scm:git:git@github.com:stijndehaes/playPrometheusFilters.git</connection>
</scm>
<developers>
<developer>
<id>stijndehaes</id>u
<name>Stijn De Haes</name>
<timezone>+</timezone>
</developer>
</developers>
<url>https://github.com/stijndehaes/play-prometheus-filters</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:stijndehaes/play-prometheus-filters.git</url>
<connection>scm:git:git@github.com:stijndehaes/play-prometheus-filters.git</connection>
</scm>
<developers>
<developer>
<id>stijndehaes</id>
<name>Stijn De Haes</name>
</developer>
</developers>

)
scalaVersion := "2.11.11"
Expand Down

0 comments on commit 196a4b7

Please sign in to comment.