Status
Current state: ["Under Discussion"]
Discussion thread: http://apache-flink-mailing-list-archive.1008284.n3.nabble.com/DISCUSS-FLIP-112-Support-User-Defined-Metrics-for-Python-UDF-td38609.html
JIRA:
...
Page properties | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).
...
A `get_metric_group` will be added to the FunctionContext class.
class FunctionContext(object): """ Used to obtain global runtime information about the context in which the user-defined function is executed. The information includes the metric group, and global job parameters, etc. """ def get_metric_group(self) -> MetricGroup: pass |
Implementation Plan
- Transmit metric group information from Java to Python
- Support define scopes and variables on Python metric group
- Support Counter/Gauge/Distribution metric type for Python UDF
- Support Meter metric type for Python UDF
- Support Metrics for UDTF