|
|
|
|
@ -43,7 +43,7 @@ public class MeterRegistryConfigurerTests {
@@ -43,7 +43,7 @@ public class MeterRegistryConfigurerTests {
|
|
|
|
|
.withPropertyValues("metrics.use-global-registry=false") |
|
|
|
|
.run((context) -> assertThat(context.getBean(MeterRegistry.class) |
|
|
|
|
.find("jvm.memory.used").tags("region", "us-east-1").gauge()) |
|
|
|
|
.isPresent()); |
|
|
|
|
.isPresent()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
@ -65,7 +65,6 @@ public class MeterRegistryConfigurerTests {
@@ -65,7 +65,6 @@ public class MeterRegistryConfigurerTests {
|
|
|
|
|
return (registry) -> registry.config().commonTags("region", "us-east-1"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private class MyThing {} |
|
|
|
|
|
|
|
|
|
@Bean |
|
|
|
|
public MyThing myThing(MeterRegistry registry) { |
|
|
|
|
@ -73,6 +72,9 @@ public class MeterRegistryConfigurerTests {
@@ -73,6 +72,9 @@ public class MeterRegistryConfigurerTests {
|
|
|
|
|
return new MyThing(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
class MyThing { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|