Created
December 30, 2020 17:03
-
-
Save girisagar46/9ffa46b7f251301576a7df9bd4e59c00 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // Just a service class which will provide the instance of PrometheusMeterRegistry | |
| public class MetricService { | |
| private static PrometheusMeterRegistry prometheusMeterRegistry = null; | |
| public static PrometheusMeterRegistry getRegistry() { | |
| if (prometheusMeterRegistry == null) { | |
| prometheusMeterRegistry = new PrometheusMeterRegistry(PrometheusConfig.DEFAULT); | |
| } | |
| return prometheusMeterRegistry; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment