-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Refactor Jolokia metrics to provide dynamic mapping #13316
Comments
Related discussion for the SQL case, where there are also multiple data types: #13257 (comment) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@jsoriano Are we still considering making this breaking change for 8.0? |
@kaiyan-sheng I wouldn't consider it so prioritary and I don't think we are going to have time for this. So I think we can close this. If at some moment we can dedicate a little of time to this I would consider #13604 more valuable for current users, and is probably a low-hanging fruit. And if we can or need to dedicate more efforts we can re-consider how we collect JMX metrics, and this could be done in a new module/integration (something like what was discussed in #18324). Agent opens the gates to have a native Java collector that could be used to avoid the requirement of Jolokia. Pinging @akshay-saraswat for awareness. |
Metrics collected by jolokia module are stored now in events with fields like
jolokia.<namespace>.<custom field name>
, with the field name allowed to have dots. This makes impossible to provide a mapping, and it can provoke fields explosion in complex deployments.This module could be refactored following the strategy followed in more recent "generic" metricsets implementations as prometheus collector or aws cloudwatch, where all metrics are stored under the same object (
prometheus.metrics.*
andaws.metrics.*.*
), so we can provide a mapping for all fields.There are two things that can condition the decision on the structure:
If it is done as a replacement of current implementation it will have to be done in 8.0, alternatively we can consider to make it as a new metricset, or add a flag to chose what naming to use.
We would still need to offer the possibility of define explicit mappings to continue supporting light modules like tomcat (see example) or other custom usages.
Possibly related issues:
The text was updated successfully, but these errors were encountered: