-
Notifications
You must be signed in to change notification settings - Fork 1.7k
AMBARI-26316: Add metrics for Agent Stomp and Api Stomp performance #3949
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
base: trunk
Are you sure you want to change the base?
Conversation
@sandeep318kumar Thank you for your contribution. I've been busy with the 3.0 release, testing, compiling all Rocky 9 component RPMs, writing new website documentation, and haven't had time to review. I will review it next week. |
@JiaLiangC Great work!! |
I really appreciate your contributions, and I have requested the Ambari PMC to nominate you as a committer. Ambari Development Status UpdateCurrent Issues and Tasks1. Trunk Branch Status
2. Documentation (3.0.0 Website)
3. Spring Branch
4. Infrastructure
|
Wow man!! Amazing work! @JiaLiangC 👏🏻 |
9b46bc9
to
70a7a84
Compare
@jojochuang can you review this? |
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 for the contribution! Looks almost ready to go! I think we should improve the nullity check in the configuration property. Having a better user doc would be nice but not required.
@@ -19,12 +19,13 @@ | |||
|
|||
#################### Metrics Source Configs ##################### | |||
|
|||
#Metric sources : jvm,database | |||
#Metric sources : jvm,database, stats |
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.
I'd suggest to add a section in user doc so users can discover this more easily.
*/ | ||
public static boolean isStompStatMetricsConfigured() { | ||
MetricsConfiguration configuration = getMetricsConfiguration(); | ||
String commaSeparatedSources = configuration.getProperty("metric.sources"); |
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.
no nullity check is a potential problem.
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.
I have handled null check for commaSeparatedSources. If stomp stats is not configured then it will return false.
} | ||
sourceName = sourceName.trim(); | ||
|
||
String className = configuration.getProperty("source." + sourceName + ".class"); |
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.
ditto.
} | ||
}, interval, interval, TimeUnit.SECONDS); | ||
} catch (Exception e) { | ||
LOG.info("Throwing exception when starting stomp stat source", e); |
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.
LOG.info("Throwing exception when starting stomp stat source", e); | |
LOG.info("Failed to start stomp stat source", e); |
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. I've updated it.
70a7a84
to
1f974d0
Compare
What changes were proposed in this pull request?
added stomp stats metrics in ambari-server and a grafana dashboard as well to observe & track
(Please fill in changes proposed in this fix)
How was this patch tested?
Tested on local cluster.



(Please explain how this patch was tested. Ex: unit tests, manual tests)
(If this patch involves UI changes, please attach a screen-shot; otherwise, remove this)
Please review Ambari Contributing Guide before opening a pull request.