I want to keep collecting jvm
and other metrics, but just don't want to push all of them to cloudwatch or prometheus (or anything else).
If I do like this
@Bean
MeterRegistryCustomizer<MeterRegistry> customizer() {
return (registry) -> registry.config()
.meterFilter(MeterFilter.denyNameStartsWith("jvm"));
}
it stops publishing to cloudwatch but at the same time, the metrics are gone from /actuator/metrics/
as well.
Is there anyway I can keep them accessible under /actuator/metrics/
but stop pushing those to remote metrics collector ?