-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate logic for Kafka and Yammer metrics (#49)
Signed-off-by: Mickael Maison <[email protected]>
- Loading branch information
Showing
24 changed files
with
918 additions
and
519 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
21 changes: 21 additions & 0 deletions
21
src/main/java/io/strimzi/kafka/metrics/MetricsCollector.java
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,21 @@ | ||
/* | ||
* Copyright Strimzi authors. | ||
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). | ||
*/ | ||
package io.strimzi.kafka.metrics; | ||
|
||
import io.prometheus.metrics.model.snapshots.MetricSnapshot; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Interface for both Kafka and Yammer collectors | ||
*/ | ||
public interface MetricsCollector { | ||
|
||
/** | ||
* Collect all the metrics added to this Collector | ||
* @return the list of metrics of this collector | ||
*/ | ||
List<MetricSnapshot> collect(); | ||
} |
Oops, something went wrong.