You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This discussion was converted from issue #9659 on November 06, 2021 09:43.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to monitor the latency of the lettuce client.
The latency indicators can be displayed, but the jvm related monitoring is not output.
the code
@bean()
DefaultClientResources lettuceClientResources() {
return (DefaultClientResources) getClientResources();
}
public ClientResources getClientResources() {
MicrometerOptions options = MicrometerOptions.create();
MicrometerCommandLatencyRecorder micrometerCommandLatencyRecorder = new MicrometerCommandLatencyRecorder(registry, options);
ClientResources resources = ClientResources.builder().commandLatencyRecorder(micrometerCommandLatencyRecorder).build();
return resources;
}
i find the problem,used up code , the code below don't work
What did you expect to see?
I want jvm to monitor normal output
Environment
Jdk 11
SpringBoot 2.2.13.RELEASE
lettuce 6.1.2.RELEASE
Beta Was this translation helpful? Give feedback.
All reactions