[jira] [Commented] (FLINK-20388) Supports users setting operators' metrics name

2021-04-29 Thread Flink Jira Bot (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-20388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17336003#comment-17336003
 ] 

Flink Jira Bot commented on FLINK-20388:


This issue was labeled "stale-major" 7 ago and has not received any updates so 
it is being deprioritized. If this ticket is actually Major, please raise the 
priority and ask a committer to assign you the issue or revive the public 
discussion.


> Supports users setting operators' metrics name
> --
>
> Key: FLINK-20388
> URL: https://issues.apache.org/jira/browse/FLINK-20388
> Project: Flink
>  Issue Type: Improvement
>  Components: API / DataStream, Runtime / Metrics
>Reporter: hailong wang
>Priority: Major
>  Labels: stale-major
>
> Currently, we only support users setting operators name.
> And we use those in the topology to distinguish operators, at the same time,  
> as the operator metrics name.
> If the operator name length is larger than 80, we truncate it simply.
> I think we can allow users to set operator metrics name like operators name. 
> If the user is not set, use the current way.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FLINK-20388) Supports users setting operators' metrics name

2021-04-22 Thread Flink Jira Bot (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-20388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17327506#comment-17327506
 ] 

Flink Jira Bot commented on FLINK-20388:


This major issue is unassigned and itself and all of its Sub-Tasks have not 
been updated for 30 days. So, it has been labeled "stale-major". If this ticket 
is indeed "major", please either assign yourself or give an update. Afterwards, 
please remove the label. In 7 days the issue will be deprioritized.

> Supports users setting operators' metrics name
> --
>
> Key: FLINK-20388
> URL: https://issues.apache.org/jira/browse/FLINK-20388
> Project: Flink
>  Issue Type: Improvement
>  Components: API / DataStream, Runtime / Metrics
>Reporter: hailong wang
>Priority: Major
>  Labels: stale-major
>
> Currently, we only support users setting operators name.
> And we use those in the topology to distinguish operators, at the same time,  
> as the operator metrics name.
> If the operator name length is larger than 80, we truncate it simply.
> I think we can allow users to set operator metrics name like operators name. 
> If the user is not set, use the current way.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FLINK-20388) Supports users setting operators' metrics name

2021-03-18 Thread Andrew.D.lin (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-20388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17304188#comment-17304188
 ] 

Andrew.D.lin commented on FLINK-20388:
--

org.apache.flink.runtime.metrics.groups.TaskMetricGroup#taskName also has this 
problem, especially in sql tasks.

I hope it can be solved together

https://issues.apache.org/jira/browse/FLINK-21858

> Supports users setting operators' metrics name
> --
>
> Key: FLINK-20388
> URL: https://issues.apache.org/jira/browse/FLINK-20388
> Project: Flink
>  Issue Type: Improvement
>  Components: API / DataStream, Runtime / Metrics
>Reporter: hailong wang
>Priority: Major
>
> Currently, we only support users setting operators name.
> And we use those in the topology to distinguish operators, at the same time,  
> as the operator metrics name.
> If the operator name length is larger than 80, we truncate it simply.
> I think we can allow users to set operator metrics name like operators name. 
> If the user is not set, use the current way.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FLINK-20388) Supports users setting operators' metrics name

2021-03-13 Thread tim yu (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-20388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17301040#comment-17301040
 ] 

tim yu commented on FLINK-20388:


Hi [~jark] [~chesnay], What is the conclusion through above comments ?

Is the conclusion the following content ?
 # Introduce a dedicated operator description which we display in the UI when 
hovering or something.
 # If the generated operator name is greater than 80 characters, we truncate it 
simply. The full operator name is assigned to operator description.

> Supports users setting operators' metrics name
> --
>
> Key: FLINK-20388
> URL: https://issues.apache.org/jira/browse/FLINK-20388
> Project: Flink
>  Issue Type: Improvement
>  Components: API / DataStream, Runtime / Metrics
>Reporter: hailong wang
>Priority: Major
>
> Currently, we only support users setting operators name.
> And we use those in the topology to distinguish operators, at the same time,  
> as the operator metrics name.
> If the operator name length is larger than 80, we truncate it simply.
> I think we can allow users to set operator metrics name like operators name. 
> If the user is not set, use the current way.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FLINK-20388) Supports users setting operators' metrics name

2020-12-02 Thread Jark Wu (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-20388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17242445#comment-17242445
 ] 

Jark Wu commented on FLINK-20388:
-

Operator description sounds good to me [~chesnay].

> Supports users setting operators' metrics name
> --
>
> Key: FLINK-20388
> URL: https://issues.apache.org/jira/browse/FLINK-20388
> Project: Flink
>  Issue Type: Improvement
>  Components: API / DataStream, Runtime / Metrics
>Reporter: hailong wang
>Priority: Major
>
> Currently, we only support users setting operators name.
> And we use those in the topology to distinguish operators, at the same time,  
> as the operator metrics name.
> If the operator name length is larger than 80, we truncate it simply.
> I think we can allow users to set operator metrics name like operators name. 
> If the user is not set, use the current way.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FLINK-20388) Supports users setting operators' metrics name

2020-12-01 Thread Chesnay Schepler (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-20388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17241514#comment-17241514
 ] 

Chesnay Schepler commented on FLINK-20388:
--

That sounds like excellent operator name to me.

I think the underlying issue is that we have historically been using the 
operator _name_ (which, to me, is just a human-readable ID) as a form of 
description, detailing every little thing (*cough* window operator *cough*). 
Thus I would go in the opposite direction, and introduce a dedicated operator 
description that we log once, and display in the UI when hovering or something.

I don't want us starting to have a separate naming concepts for some 
components, and I think that 80 characters should be ample for a _name_.

> Supports users setting operators' metrics name
> --
>
> Key: FLINK-20388
> URL: https://issues.apache.org/jira/browse/FLINK-20388
> Project: Flink
>  Issue Type: Improvement
>  Components: API / DataStream, Runtime / Metrics
>Reporter: hailong wang
>Priority: Major
>
> Currently, we only support users setting operators name.
> And we use those in the topology to distinguish operators, at the same time,  
> as the operator metrics name.
> If the operator name length is larger than 80, we truncate it simply.
> I think we can allow users to set operator metrics name like operators name. 
> If the user is not set, use the current way.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FLINK-20388) Supports users setting operators' metrics name

2020-11-30 Thread Jark Wu (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-20388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17240738#comment-17240738
 ] 

Jark Wu commented on FLINK-20388:
-

I was thinking to generate an unique id for the operators in the topology tree 
order and append after the short name, e.g. "TableSourceScan#1", "Calc#2".

I think we need a mapping between the metric name and operator name. Would be 
great if the runtime can automantically handle this.  

> Supports users setting operators' metrics name
> --
>
> Key: FLINK-20388
> URL: https://issues.apache.org/jira/browse/FLINK-20388
> Project: Flink
>  Issue Type: Improvement
>  Components: API / DataStream, Runtime / Metrics
>Reporter: hailong wang
>Priority: Major
>
> Currently, we only support users setting operators name.
> And we use those in the topology to distinguish operators, at the same time,  
> as the operator metrics name.
> If the operator name length is larger than 80, we truncate it simply.
> I think we can allow users to set operator metrics name like operators name. 
> If the user is not set, use the current way.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FLINK-20388) Supports users setting operators' metrics name

2020-11-30 Thread Chesnay Schepler (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-20388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17240716#comment-17240716
 ] 

Chesnay Schepler commented on FLINK-20388:
--

And how will it generate that metric name? take the first N characters, and 
append a hash of the rest? (This idea came up in the past and could be done 
automatically in the metric system; no need to pollute the API any further)

> Supports users setting operators' metrics name
> --
>
> Key: FLINK-20388
> URL: https://issues.apache.org/jira/browse/FLINK-20388
> Project: Flink
>  Issue Type: Improvement
>  Components: API / DataStream, Runtime / Metrics
>Reporter: hailong wang
>Priority: Major
>
> Currently, we only support users setting operators name.
> And we use those in the topology to distinguish operators, at the same time,  
> as the operator metrics name.
> If the operator name length is larger than 80, we truncate it simply.
> I think we can allow users to set operator metrics name like operators name. 
> If the user is not set, use the current way.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FLINK-20388) Supports users setting operators' metrics name

2020-11-30 Thread Jark Wu (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-20388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17240713#comment-17240713
 ] 

Jark Wu commented on FLINK-20388:
-

[~chesnay], however, if we generate a shorter name for the operator name, then 
maybe lot's of operator will have the same name. It's hard to distinguish the 
operators in Web UI. 
You can see the discussion in FLINK-20375.

"Why would we want users to explicitly set the operator name for metrics"
This can be a public API of DataStream, but SQL will generate the metric name 
automantically (by using a shorter name with id), and keep the operator name 
with full information. 

> Supports users setting operators' metrics name
> --
>
> Key: FLINK-20388
> URL: https://issues.apache.org/jira/browse/FLINK-20388
> Project: Flink
>  Issue Type: Improvement
>  Components: API / DataStream, Runtime / Metrics
>Reporter: hailong wang
>Priority: Major
>
> Currently, we only support users setting operators name.
> And we use those in the topology to distinguish operators, at the same time,  
> as the operator metrics name.
> If the operator name length is larger than 80, we truncate it simply.
> I think we can allow users to set operator metrics name like operators name. 
> If the user is not set, use the current way.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FLINK-20388) Supports users setting operators' metrics name

2020-11-30 Thread Chesnay Schepler (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-20388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17240699#comment-17240699
 ] 

Chesnay Schepler commented on FLINK-20388:
--

I would argue that this is a problem of the operator name generation then 
(e.g., batch operators are notorious in this regard due to them including line 
numbers etc.).

Why would we want users to explicitly set the operator name for metrics, but 
not for the operator as a whole?

> Supports users setting operators' metrics name
> --
>
> Key: FLINK-20388
> URL: https://issues.apache.org/jira/browse/FLINK-20388
> Project: Flink
>  Issue Type: Improvement
>  Components: API / DataStream, Runtime / Metrics
>Reporter: hailong wang
>Priority: Major
>
> Currently, we only support users setting operators name.
> And we use those in the topology to distinguish operators, at the same time,  
> as the operator metrics name.
> If the operator name length is larger than 80, we truncate it simply.
> I think we can allow users to set operator metrics name like operators name. 
> If the user is not set, use the current way.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FLINK-20388) Supports users setting operators' metrics name

2020-11-29 Thread Jark Wu (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-20388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17240425#comment-17240425
 ] 

Jark Wu commented on FLINK-20388:
-

[~chesnay], yes, this is original from SQL, because the generated operator name 
can be very large. But I think DataStream users will also have this problem 
when the operator name is generated, not defined manually. 

> Supports users setting operators' metrics name
> --
>
> Key: FLINK-20388
> URL: https://issues.apache.org/jira/browse/FLINK-20388
> Project: Flink
>  Issue Type: Improvement
>  Components: API / DataStream, Runtime / Metrics
>Reporter: hailong wang
>Priority: Major
>
> Currently, we only support users setting operators name.
> And we use those in the topology to distinguish operators, at the same time,  
> as the operator metrics name.
> If the operator name length is larger than 80, we truncate it simply.
> I think we can allow users to set operator metrics name like operators name. 
> If the user is not set, use the current way.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FLINK-20388) Supports users setting operators' metrics name

2020-11-29 Thread Chesnay Schepler (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-20388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17240404#comment-17240404
 ] 

Chesnay Schepler commented on FLINK-20388:
--

Is this purely about SQL? The operator name used for metrics is derived from 
the actual operator name, and I see little reason to change this behavior.

> Supports users setting operators' metrics name
> --
>
> Key: FLINK-20388
> URL: https://issues.apache.org/jira/browse/FLINK-20388
> Project: Flink
>  Issue Type: Improvement
>  Components: API / DataStream, Runtime / Metrics
>Reporter: hailong wang
>Priority: Major
>
> Currently, we only support users setting operators name.
> And we use those in the topology to distinguish operators, at the same time,  
> as the operator metrics name.
> If the operator name length is larger than 80, we truncate it simply.
> I think we can allow users to set operator metrics name like operators name. 
> If the user is not set, use the current way.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)