| # Copyright 2011 The Apache Software Foundation |
| # |
| # 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. |
| |
| |
| #################### Metrics Source Configs ##################### |
| |
| #Metric sources : jvm,database |
| metric.sources=jvm |
| |
| #### JVM Source Configs ### |
| source.jvm.class=org.apache.ambari.server.metrics.system.impl.JvmMetricsSource |
| source.jvm.interval=10 |
| |
| #### Database Source Configs ### |
| |
| # Note : To enable Database metrics source completely, add the following property to ambari.properties as well |
| # server.persistence.properties.eclipselink.profiler=org.apache.ambari.server.metrics.system.impl.AmbariPerformanceMonitor |
| |
| source.database.class=org.apache.ambari.server.metrics.system.impl.DatabaseMetricsSource |
| |
| # Ambari performance monitor granularity : NONE / NORMAL / HEAVY / ALL |
| source.database.performance.monitor.query.weight=HEAVY |
| |
| # Collection interval in milliseconds |
| source.database.monitor.dumptime=60000 |
| |
| # Include entities to be tracked. |
| source.database.monitor.entities=Cluster(.*)Entity,Host(.*)Entity,ExecutionCommandEntity,ServiceComponentDesiredStateEntity,Alert(.*)Entity,StackEntity,StageEntity |
| |
| # Include some metrics which have the keyword even if they are not part of requested Entities. |
| # Examples |
| # Query Types |
| # ReadAllQuery,ReadObjectQuery,UpdateObjectQuery,ReportQuery,InsertObjectQuery,ValueReadQuery,DataModifyQuery,DoesExistQuery |
| |
| # Query stages |
| # ObjectBuilding,QueryPreparation,SqlPrepare,SqlGeneration,StatementExecute,RowFetch,ConnectCalls,UnitOfWorkCommit,ClientSessionReleases,ConnectionManagement,CacheHits,CacheMisses |
| |
| # Sequences |
| # host_role_command_id_seq,alert_history_id_seq |
| source.database.monitor.query.keywords.include=CacheMisses |
| |
| ################################################################ |
| |
| ############## General Metrics Service Configs ################# |
| |
| #ambariserver.hostname.override= |
| |
| ################################################################ |
| |