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

change metrics with micrometer in mantis-server #533

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

7ue5wu
Copy link

@7ue5wu 7ue5wu commented Aug 22, 2023

Context

Explain context and other details for this pull request.

Checklist

  • ./gradlew build compiles code correctly
  • Added new tests where applicable
  • ./gradlew test passes all tests
  • Extended README or added javadocs where applicable

@@ -58,25 +57,23 @@ public void call(Throwable throwable) {
// Use single netty thread
NettyUtils.setNettyThreads();

metricGroupId = new MetricGroupId(DROP_OPERATOR_INCOMING_METRIC_GROUP + "_SseWorkerMetricsConnectionFunction_withBuffer");
metricsSet.add(metricGroupId);
metricGroup = (DROP_OPERATOR_INCOMING_METRIC_GROUP + "_SseWorkerMetricsConnectionFunction_withBuffer");
Copy link
Collaborator

Choose a reason for hiding this comment

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

leaving a comment here to take a look at it later.

@@ -129,6 +132,11 @@ public TaskExecutorStarterBuilder rpcSystem(RpcSystem rpcSystem) {
return this;
}

public TaskExecutorStarterBuilder registry(MeterRegistry meterRegistry) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this method called anywhere? I don't think we'll pass MeterRegistry in TaskExecutorStarter.
Note to self: Investigate this more!

", onComplete=" + onComplete.value() + ", dropped=" + dropped.value()
for (String metricGroup : metricGroups) {
if (metricGroup != null) {
final Counter onNext = meterRegistry.counter(metricGroup + "_DropOperator_" + ("" + DropOperator.Counters.onNext));
Copy link
Collaborator

Choose a reason for hiding this comment

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

this will also be using Search.in(meterRegistry).name(n -> n.startsWith(metricGroup) && n.endsWith(DropOperator.Counters.onNext.toString())).counter()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants