Skip to content

Commit

Permalink
improve GraphiteExporter
Browse files Browse the repository at this point in the history
  • Loading branch information
t3hnar committed May 14, 2019
1 parent 49965c4 commit 4e5ae64
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ scalacOptions ++= Seq(

scalacOptions in (Compile,doc) ++= Seq("-groups", "-implicits", "-no-link-warnings")

val metricsVersion = "4.0.5"
val metricsVersion = "3.2.6"

libraryDependencies ++= Seq(
"io.dropwizard.metrics" % "metrics-core" % metricsVersion,
"io.dropwizard.metrics" % "metrics-graphite" % metricsVersion,
"com.typesafe" % "config" % "1.3.3",
"com.typesafe" % "config" % "1.3.4",
"com.evolutiongaming" %% "executor-tools" % "1.0.1")

licenses := Seq(("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0")))
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.4")
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.5")

addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ object GraphiteExporter {
config: Config
): Option[GraphiteReporter] = {

val host = config.getString("graphite.host")
if (!host.isEmpty) {
if (config.hasPath("graphite.host")) {
val host = config.getString("graphite.host")
val node = config.getString("graphite.node")
val port = config.getInt("graphite.port")
val graphite = new Graphite(new InetSocketAddress(host, port))
Expand Down

0 comments on commit 4e5ae64

Please sign in to comment.