This repository has been archived by the owner on Mar 17, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ability to extend and configure desired sink to report lag metrics, a…
…dding support to push lag metrics into InfluxDB as well (#157) * Changes to support pushing lag metrics into InfluxDB Merge 3e2f0bfaa3e646c27cb4158c0b547a2fcdd8fdea Merge Cosmetics Syntax Removing files Refactored dependencies Create db test Removed unused import Remove unused Syntax Cosmetics Syntax Removing files Refactored dependencies Create db test Removed unused import Changes to support pushing lag metrics into InfluxDB Removed libraryDependencies from build.sbt * Ignore sending Infinite data for InfluxDB * Addressed review comments to report MetricSink/EndPointSink name and use ScalaTest eventually instead of a sleep. * Addressed latest review comments on InfluxDBPusherSink tests * Update src/main/scala/com/lightbend/kafkalagexporter/AppConfig.scala * Updated README for influxDB reporter support with related configurations * Fixed InfluxDB config to be lowercase as per review comments. Co-authored-by: Sean Glover <[email protected]>
- Loading branch information
1 parent
465437b
commit 998d58d
Showing
19 changed files
with
459 additions
and
128 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
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
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
7 changes: 0 additions & 7 deletions
7
src/main/scala/com/lightbend/kafkalagexporter/GraphiteConfig.scala
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
src/main/scala/com/lightbend/kafkalagexporter/GraphiteEndpointConfig.scala
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,25 @@ | ||
/* | ||
* Copyright (C) 2019 Lightbend Inc. <http://www.lightbend.com> | ||
*/ | ||
|
||
package com.lightbend.kafkalagexporter | ||
|
||
import com.typesafe.config.Config | ||
import scala.util.Try | ||
|
||
class GraphiteEndpointConfig(sinkType: String, metricWhitelist: List[String], config: Config) extends SinkConfig(sinkType, metricWhitelist, config) | ||
{ | ||
val port: Int = config.getInt("reporters.graphite.port") | ||
val host: String = config.getString("reporters.graphite.host") | ||
val prefix: Option[String] = Try(config.getString("reporters.graphite.prefix")).toOption | ||
|
||
override def toString(): String = { | ||
s""" | ||
|Graphite: | ||
| host: ${host} | ||
| port: ${port} | ||
| prefix: ${prefix} | ||
""" | ||
} | ||
|
||
} |
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
Oops, something went wrong.