1 /** 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 8 * with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 package org.apache.hadoop.yarn.server.metrics; 20 21 import org.apache.hadoop.classification.InterfaceAudience.Private; 22 import org.apache.hadoop.classification.InterfaceStability.Unstable; 23 24 @Private 25 @Unstable 26 public class ContainerMetricsConstants { 27 28 public static final String ENTITY_TYPE = "YARN_CONTAINER"; 29 30 public static final String CREATED_EVENT_TYPE = "YARN_CONTAINER_CREATED"; 31 32 public static final String FINISHED_EVENT_TYPE = "YARN_CONTAINER_FINISHED"; 33 34 public static final String PARENT_PRIMARIY_FILTER = "YARN_CONTAINER_PARENT"; 35 36 public static final String ALLOCATED_MEMORY_ENTITY_INFO = 37 "YARN_CONTAINER_ALLOCATED_MEMORY"; 38 39 public static final String ALLOCATED_VCORE_ENTITY_INFO = 40 "YARN_CONTAINER_ALLOCATED_VCORE"; 41 42 public static final String ALLOCATED_HOST_ENTITY_INFO = 43 "YARN_CONTAINER_ALLOCATED_HOST"; 44 45 public static final String ALLOCATED_PORT_ENTITY_INFO = 46 "YARN_CONTAINER_ALLOCATED_PORT"; 47 48 public static final String ALLOCATED_PRIORITY_ENTITY_INFO = 49 "YARN_CONTAINER_ALLOCATED_PRIORITY"; 50 51 public static final String DIAGNOSTICS_INFO_EVENT_INFO = 52 "YARN_CONTAINER_DIAGNOSTICS_INFO"; 53 54 public static final String EXIT_STATUS_EVENT_INFO = 55 "YARN_CONTAINER_EXIT_STATUS"; 56 57 public static final String STATE_EVENT_INFO = 58 "YARN_CONTAINER_STATE"; 59 60 public static final String ALLOCATED_HOST_HTTP_ADDRESS_ENTITY_INFO = 61 "YARN_CONTAINER_ALLOCATED_HOST_HTTP_ADDRESS"; 62 } 63