File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
server/src/main/java/com/netflix/conductor/config Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import org .slf4j .Logger ;
4
4
import org .slf4j .LoggerFactory ;
5
+ import org .springframework .beans .factory .annotation .Autowired ;
5
6
import org .springframework .boot .CommandLineRunner ;
6
7
import org .springframework .context .annotation .Configuration ;
7
8
@@ -22,6 +23,8 @@ public class PrometheusIntegrationConfig
22
23
23
24
private static final Logger log = LoggerFactory .getLogger (PrometheusIntegrationConfig .class );
24
25
26
+ @ Autowired private static PrometheusMeterRegistry prometheusRegistry ;
27
+
25
28
@ Override
26
29
public void run (String ... args ) throws Exception {
27
30
setupPrometheusRegistry ();
@@ -31,9 +34,9 @@ public void run(String... args) throws Exception {
31
34
* To Register PrometheusRegistry
32
35
*/
33
36
private static void setupPrometheusRegistry () {
34
- final PrometheusMeterRegistry prometheusRegistry = new PrometheusMeterRegistry (PrometheusConfig .DEFAULT ,
35
- CollectorRegistry .defaultRegistry ,
36
- Clock .SYSTEM );
37
+ // final PrometheusMeterRegistry prometheusRegistry = new PrometheusMeterRegistry(PrometheusConfig.DEFAULT,
38
+ // CollectorRegistry.defaultRegistry,
39
+ // Clock.SYSTEM);
37
40
final MicrometerRegistry metricsRegistry = new MicrometerRegistry (prometheusRegistry );
38
41
prometheusRegistry .config ().meterFilter (new PrometheusRenameFilter ());
39
42
Spectator .globalRegistry ().add (metricsRegistry );
You can’t perform that action at this time.
0 commit comments