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

[FLINK-4063] Add Metrics Support for Triggers #2106

Closed
wants to merge 1 commit into from

Conversation

aljoscha
Copy link
Contributor

R: @zentol for review. Is this the right way to do it?

@zentol
Copy link
Contributor

zentol commented Jun 15, 2016

well it would work, but i think we can improve it a little. :)

The AbstractStreamOperator contains a protected MetricGroup field which you can use in the WindowOperator instead of going through the RuntimeContext. You can access it directly or via getMetricGroup().

Also, you create 2 groups with a constant name. This means that all metrics that are registered in a trigger now contain "WindowOperator.Trigger" in their final metric name.

Now the Trigger group is probably fine, but is now also mandatory. I would prefer removing it; if users want to group their metrics by Trigger they can easily do so themselves.

The WindowOperator group should be removed. It is inconsistent with other operators and provides no really specific information. It will usually be redundant since the operator name often contains the String "window" somewhere.

@aljoscha
Copy link
Contributor Author

Ok, good to know. I'll change it. 😃

@aljoscha
Copy link
Contributor Author

@zentol updated, this is super minimal now.

@zentol
Copy link
Contributor

zentol commented Jun 15, 2016

+1

@aljoscha aljoscha closed this Jun 16, 2016
@aljoscha aljoscha deleted the trigger/metrics branch June 16, 2016 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants