Skip to content
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

Introduce prometheus metrics in Solr for Solr Core registry #1

Closed
wants to merge 25 commits into from

Conversation

mlbiscoc
Copy link
Owner

DRAFT

Comment on lines +59 to +61
case ADMIN:
case QUERY:
case UPDATE:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious on your thoughts about why the other cases are empty instead of removing them?

String prometheusMetricName,
Map<String, String> labelsMap) {
Object dropwizardMetric = (dropwizardMetricRaw).getValue();
if (!copyOfGauges().containsKey(prometheusMetricName)) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why use copyOfGauges() in the check if it doesn't seem to be referenced again?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Going to remove this and just reference the map. Immutable map isn't allowed upstream anyways and breaks tests.

@mlbiscoc mlbiscoc closed this Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants