Custom Metrics #3662
Unanswered
aorlowskiddm
asked this question in
Q&A
Custom Metrics
#3662
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all.
I reviewed the monitoring documentation page, specifically the section towards the bottom titled "User-Provided/Custom Reporter".
I am currently registering the JanusGraph metrics to a unified
MetricRegistry
in my code that contains all reportable metrics:However, it looks like there's a race condition. the
@PostConstruct
executes before JanusGraph'sMetricManager.INSTANCE
has any metrics yet (I verified this through debugger), so typically zero metrics are registered to the unified metric registry.I can solve this by adding a timer that delays the registration for a fixed period of time, but am curious if there's a better way to approach this.
Further, I'm unsure if registering the metrics in this way would somehow stop the correct reporting of metrics, given that my reporter is attached to theunifiedMetricRegistry
and not directly to JanusGraph'sMetricManager.INSTANCE.getRegistry()
.Beta Was this translation helpful? Give feedback.
All reactions