-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from ringcentral/histogram-to-both-prometheus-…
…histogram-and-summary #33: support making both Prometheus.Summary and Prometheus.Histogram for com.ringcentral.platform.metrics.histogram.Histogram
- Loading branch information
Showing
27 changed files
with
1,827 additions
and
777 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
5 changes: 3 additions & 2 deletions
5
...e-base/src/main/java/com/ringcentral/platform/metrics/samples/AbstractInstanceSample.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
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
14 changes: 14 additions & 0 deletions
14
...-base/src/main/java/com/ringcentral/platform/metrics/samples/AbstractSamplesProducer.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,14 @@ | ||
package com.ringcentral.platform.metrics.samples; | ||
|
||
public abstract class AbstractSamplesProducer< | ||
S extends Sample, | ||
SS extends SampleSpec, | ||
ISS extends InstanceSampleSpec, | ||
IS extends InstanceSample<S>> implements SamplesProducer<S, SS, ISS, IS> { | ||
|
||
public void produceSamples(SS spec, ISS instanceSampleSpec, IS instanceSample) { | ||
instanceSample.add(makeSample(spec, instanceSampleSpec, instanceSample)); | ||
} | ||
|
||
protected abstract S makeSample(SS spec, ISS instanceSampleSpec, IS instanceSample); | ||
} |
4 changes: 3 additions & 1 deletion
4
.../main/java/com/ringcentral/platform/metrics/samples/CompositeInstanceSamplesProvider.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
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
5 changes: 0 additions & 5 deletions
5
metrics-facade-base/src/main/java/com/ringcentral/platform/metrics/samples/SampleMaker.java
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
...s-facade-base/src/main/java/com/ringcentral/platform/metrics/samples/SamplesProducer.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,10 @@ | ||
package com.ringcentral.platform.metrics.samples; | ||
|
||
public interface SamplesProducer< | ||
S extends Sample, | ||
SS extends SampleSpec, | ||
ISS extends InstanceSampleSpec, | ||
IS extends InstanceSample<S>> { | ||
|
||
void produceSamples(SS spec, ISS instanceSampleSpec, IS instanceSample); | ||
} |
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
Oops, something went wrong.