-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe metrics for Infinispan #985
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @pruivo this is a great addition, just a few comments.
doc/kubernetes/modules/ROOT/pages/running/metrics/hot_rod_metrics.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/hot_rod_metrics.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/ispn_metrics.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/ispn_metrics.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/ispn_metrics.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/jgrp_metrics.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/jgrp_metrics.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/jgrp_metrics.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/jgrp_metrics.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/jgrp_metrics.adoc
Outdated
Show resolved
Hide resolved
fbe64ef
to
3604446
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @pruivo !! This is great, I added a few comments but this is a great improvement for metrics docs.
Do you plan to update our Infinispan Grafana dashboard based on this?
doc/kubernetes/modules/ROOT/pages/running/metrics/hot_rod_metrics.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/ispn_metrics.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/ispn_metrics.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/jgrp_metrics.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/jgrp_metrics.adoc
Outdated
Show resolved
Hide resolved
@mhajas after agreeing on the metrics, I can start work on the dashboards. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! See below for some questions. The overall question to me is if we can have everything (embedded and external) in one document. Maybe we can as a start before we split it up. I'll leave it up to you.
If any of the metrics I ask for below isn't available, we'll continue without the for a first iteration.
doc/kubernetes/modules/ROOT/pages/running/metrics/hot_rod_metrics.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/hot_rod_metrics.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/ispn_metrics.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/ispn_metrics.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/ispn_metrics.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/jgrp_metrics.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/jgrp_metrics.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/hot_rod_metrics.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/jgrp_metrics.adoc
Outdated
Show resolved
Hide resolved
@ahus1 @mhajas @ryanemerson It looks like I had the wrong idea and only made it with the external Infinispan in mind. At the moment, Keycloak does not have any cache metrics in multi-site deployments ( If we are doing for every scenario, I would prefer to splits the pages (ignore naming for now 🤣 ):
wdyt? |
With the docs we need to start somewhere, and eventually all three scenarios should have documentation about their metrics. IMHO "Keycloak Single Site: jgroups + caches" would be the scenario most people would use, so with such a guide a lot of people can benefit. We can decide in our meeting later today which way we want to go. Whatever we decide, the guide should probably have a paragraph at the beginning describing what to find on this page :-)
Hm, I suppose users would still want to monitor the cache hit ratio for the user and realm cache to be able to tune it. |
I've created https://issues.redhat.com/browse/ISPN-16636 I agree to be more exhaustive and have more deployment and I just misunderstood the issue description. I'll reshuffle things around to have a "nicer" page with all deployments. |
@pruivo - thank you for creating the enhancement issue. An alternative could be not to use simple caches (just local caches) in Keycloak - either in the meantime, or in general? |
54d8730
to
d2cea3a
Compare
@pruivo - I rendered the pages locally, and I found that they are all part of the "running" category. As we are about to ask for feedback on metrics, please consider moving the items into their own category "metrics". We can then ask the community about feedback on that category, and not being confused by "Infinispan Deployment: Single Cluster" and similar topics. The "metrics" category might be a sub-category of "running", or its own top-level category. |
@ahus1 yes, that would work. Simple caches are usually more memory-friendly, but if the metrics are important, we can revert them to "normal" caches. |
I don't understand your suggestion, @ahus1. They are already a sub-category of |
Closes keycloak#984 Signed-off-by: Pedro Ruivo <[email protected]>
I've collected all the metrics that I think are relevant. I still need to review and fix grammar errors, but it should be complete now. Let me know what you think @ahus1 @mhajas @ryanemerson 👍 |
Signed-off-by: Alexander Schwartz <[email protected]>
OK, I was talking about the left navigation. I pushed d59d3fc and it now looks like the following: |
Hi @pruivo - thank you for this PR! I went through my previous review comments and resolved all except 3 of them. Please have a look at those last three open items. If they are simple to fix, please resolve them, otherwise go ahead with merging so we can start collecting feedback. About grammar checks: You can enable a grammar checsk in IntelliJ when you add the "Grazie Pro" plugin. It will then highlight the grammar checks in the editor and in the "Problems" tab in the IDE. |
doc/kubernetes/modules/ROOT/pages/running/metrics/external_infinispan.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/external_infinispan.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/keycloak_cluster.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/keycloak_cluster.adoc
Outdated
Show resolved
Hide resolved
doc/kubernetes/modules/ROOT/pages/running/metrics/keycloak_cluster.adoc
Outdated
Show resolved
Hide resolved
|
||
== Hot Rod client metrics | ||
|
||
IMPORTANT: Metrics available since {project_name} 27 or newer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
27?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably a bit pessimistic here, but I don't know where the metrics will be available. Optimistically, in 26.1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We usually don't do promises on features in a future release. Let's be less specific.
Closes keycloak#984 Signed-off-by: Pedro Ruivo <[email protected]>
My comments have all been resolved. Thanks! |
Thanks @pruivo |
Closes #984