metrics.properties 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Copyright 2011 The Apache Software Foundation
  2. #
  3. # Licensed to the Apache Software Foundation (ASF) under one
  4. # or more contributor license agreements. See the NOTICE file
  5. # distributed with this work for additional information
  6. # regarding copyright ownership. The ASF licenses this file
  7. # to you under the Apache License, Version 2.0 (the
  8. # "License"); you may not use this file except in compliance
  9. # with the License. You may obtain a copy of the License at
  10. #
  11. # http://www.apache.org/licenses/LICENSE-2.0
  12. #
  13. # Unless required by applicable law or agreed to in writing, software
  14. # distributed under the License is distributed on an "AS IS" BASIS,
  15. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. # See the License for the specific language governing permissions and
  17. # limitations under the License.
  18. #################### Metrics Source Configs #####################
  19. #Metric sources : jvm,database
  20. metric.sources=jvm
  21. #### JVM Source Configs ###
  22. source.jvm.class=org.apache.ambari.server.metrics.system.impl.JvmMetricsSource
  23. source.jvm.interval=10
  24. #### Database Source Configs ###
  25. # Note : To enable Database metrics source completely, add the following property to ambari.properties as well
  26. # server.persistence.properties.eclipselink.profiler=org.apache.ambari.server.metrics.system.impl.AmbariPerformanceMonitor
  27. source.database.class=org.apache.ambari.server.metrics.system.impl.DatabaseMetricsSource
  28. # Ambari performance monitor granularity : NONE / NORMAL / HEAVY / ALL
  29. source.database.performance.monitor.query.weight=HEAVY
  30. # Collection interval in milliseconds
  31. source.database.monitor.dumptime=60000
  32. # Include entities to be tracked.
  33. source.database.monitor.entities=Cluster(.*)Entity,Host(.*)Entity,ExecutionCommandEntity,ServiceComponentDesiredStateEntity,Alert(.*)Entity,StackEntity,StageEntity
  34. # Include some metrics which have the keyword even if they are not part of requested Entities.
  35. # Examples
  36. # Query Types
  37. # ReadAllQuery,ReadObjectQuery,UpdateObjectQuery,ReportQuery,InsertObjectQuery,ValueReadQuery,DataModifyQuery,DoesExistQuery
  38. # Query stages
  39. # ObjectBuilding,QueryPreparation,SqlPrepare,SqlGeneration,StatementExecute,RowFetch,ConnectCalls,UnitOfWorkCommit,ClientSessionReleases,ConnectionManagement,CacheHits
  40. # Sequences
  41. # host_role_command_id_seq,alert_history_id_seq
  42. source.database.monitor.query.keywords.include=CacheMisses
  43. ################################################################
  44. ############## General Metrics Service Configs #################
  45. #ambariserver.hostname.override=
  46. ################################################################