Hey Guys,can someone provide me an example how to register metrics with spring boot acutator ?Greets.
--
You received this message because you are subscribed to the Google Groups "Axon Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@Autowired
private MetricRegistry metricRegistry;
@Bean
public GlobalMetricRegistry globalMetricRegistry() {
GlobalMetricRegistry globalMetricRegistry = new GlobalMetricRegistry(this.metricRegistry);
globalMetricRegistry.registerEventBus("eventBus");
return globalMetricRegistry;
}
--
You received this message because you are subscribed to the Google Groups "Axon Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframework+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Allard BuijzeCTOT: +31 6 34 73 99 89
--You received this message because you are subscribed to a topic in the Google Groups "Axon Framework Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/axonframework/QpUhVYwVnsM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to axonframework+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
----Allard BuijzeCTOT: +31 6 34 73 99 89
You received this message because you are subscribed to a topic in the Google Groups "Axon Framework Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/axonframework/QpUhVYwVnsM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to axonframewor...@googlegroups.com.
Hi Guys,
I am new to axon framework and prometheus I wanted to expose and enable axon metrics in prometheus for snapshot.
I refer the documentation below is link for the same
https://docs.axoniq.io/reference-guide/operations-guide/setting-up-axon-server/monitoring
So here it is mentioned it would be available under endpoint /actuator/metrics but when I try to hit that I found there was no metrics related to axon specific. So I added axon-micrometer dependency in my classpath and by adding that I saw metrics related to eventbus and querybus but not anything related to snapshots, commands or events.
I am using axon version 4.3.3 and spring boot version 2.3.0 and have added micrometer-registry dependency in my classpath.
And only change in my code is I have set my web base-path as /manage so in that case all metrics I will be seeing in /manage/metrics
can anyone guide me how to expose or enable metrics related to axon.snapshots.count and others related to commands and events. Is there anything else that needs to be added dependency or any property?
Thanks
--
You received this message because you are subscribed to the Google Groups "Axon Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/axonframework/b5db7f5f-1e2e-49ab-8b35-f0dc8c455573o%40googlegroups.com.