[ 
https://issues.apache.org/jira/browse/BEAM-6165?focusedWorklogId=172340&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-172340
 ]

ASF GitHub Bot logged work on BEAM-6165:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 05/Dec/18 15:54
            Start Date: 05/Dec/18 15:54
    Worklog Time Spent: 10m 
      Work Description: ryan-williams commented on a change in pull request 
#7183: [BEAM-6165] send metrics to Flink in portable Flink runner
URL: https://github.com/apache/beam/pull/7183#discussion_r239123843
 
 

 ##########
 File path: 
runners/flink/src/main/java/org/apache/beam/runners/flink/metrics/FileReporter.java
 ##########
 @@ -0,0 +1,74 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.beam.runners.flink.metrics;
+
+import java.io.FileNotFoundException;
+import java.io.FileOutputStream;
+import java.io.PrintStream;
+import org.apache.flink.metrics.Metric;
+import org.apache.flink.metrics.MetricConfig;
+import org.apache.flink.metrics.MetricGroup;
+import org.apache.flink.metrics.reporter.AbstractReporter;
+
+/**
+ * Flink {@link org.apache.flink.metrics.reporter.MetricReporter metrics 
reporter} for writing
+ * metrics to a file (specified via the "metrics.reporter.test.file" config 
key).
+ */
+public class FileReporter extends AbstractReporter {
 
 Review comment:
   fwiw: "beam", "flink", "metrics", "file", and "reporter" are already in this 
class' name: `org.apache.beam.runners.flink.metrics.FileReporter` (and users 
would use this FQN in `flink-conf.yaml`, as in the example above).
   
   I generally dislike the Java convention of repeating package-name segments 
in class' basenames, but recognize that it's common and people seem to like it, 
so happy to add here, just wanted to float the idea that 
`org.apache.beam.runners.flink.metrics.BeamFlinkFileMetricReporter` is 
redundant.
   
   lmk if you still prefer it and I'll change it.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 172340)
    Time Spent: 5.5h  (was: 5h 20m)

> Send metrics to Flink in portable Flink runner
> ----------------------------------------------
>
>                 Key: BEAM-6165
>                 URL: https://issues.apache.org/jira/browse/BEAM-6165
>             Project: Beam
>          Issue Type: Improvement
>          Components: runner-flink
>    Affects Versions: 2.8.0
>            Reporter: Ryan Williams
>            Assignee: Ryan Williams
>            Priority: Major
>              Labels: metrics, portability, portability-flink
>          Time Spent: 5.5h
>  Remaining Estimate: 0h
>
> Metrics are sent from the fn harness to runnerĀ in the Python SDK (and likely 
> Java soon), but the portable Flink runner doesn't pass them on to Flink, 
> which it should, so that users can see them in e.g. the Flink UI or via any 
> Flink metrics reporters.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to