flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zentol <...@git.apache.org>
Subject [GitHub] flink pull request #4307: [FLINK-7100] TaskManager metrics are registered tw...
Date Wed, 12 Jul 2017 10:31:44 GMT
Github user zentol commented on a diff in the pull request:

    --- Diff: flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/utils/TaskExecutorMetricsInitializer.java
    @@ -1,257 +0,0 @@
    - * 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.flink.runtime.taskexecutor.utils;
    -import com.sun.management.OperatingSystemMXBean;
    -import org.apache.flink.metrics.Gauge;
    -import org.apache.flink.metrics.MetricGroup;
    -import org.apache.flink.runtime.io.network.NetworkEnvironment;
    -import org.apache.flink.runtime.taskexecutor.TaskExecutor;
    -import org.apache.flink.util.Preconditions;
    -import org.slf4j.Logger;
    -import org.slf4j.LoggerFactory;
    -import javax.management.AttributeNotFoundException;
    -import javax.management.InstanceNotFoundException;
    -import javax.management.MBeanException;
    -import javax.management.MBeanServer;
    -import javax.management.MalformedObjectNameException;
    -import javax.management.ObjectName;
    -import javax.management.ReflectionException;
    -import java.lang.management.ClassLoadingMXBean;
    -import java.lang.management.GarbageCollectorMXBean;
    -import java.lang.management.ManagementFactory;
    -import java.lang.management.MemoryMXBean;
    -import java.lang.management.ThreadMXBean;
    -import java.util.List;
    - * Utility class ot initialize {@link TaskExecutor} specific metrics.
    - */
    -public class TaskExecutorMetricsInitializer {
    -	private static final Logger LOG = LoggerFactory.getLogger(TaskExecutorMetricsInitializer.class);
    -	public static void instantiateStatusMetrics(
    --- End diff --
    The code here is a more cleaned up version of `MetricUtils`, so let's keep this one and
just rename it. `MetricUtils` is a rather generic name anyway.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message