Add a sane default for metrics which enables nothing by default.
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/73f8e897 Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/73f8e897 Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/73f8e897 Branch: refs/heads/metrics2-backwardscompat Commit: 73f8e8973cb3f6160aad9dc95186f40fa4ef01c2 Parents: 15b3aa7 Author: Josh Elser <[email protected]> Authored: Fri Dec 5 17:56:10 2014 -0500 Committer: Josh Elser <[email protected]> Committed: Fri Dec 5 17:56:10 2014 -0500 ---------------------------------------------------------------------- .../hadoop-metrics2-accumulo.properties | 86 ++++++++++++++++++++ 1 file changed, 86 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/73f8e897/assemble/conf/templates/hadoop-metrics2-accumulo.properties ---------------------------------------------------------------------- diff --git a/assemble/conf/templates/hadoop-metrics2-accumulo.properties b/assemble/conf/templates/hadoop-metrics2-accumulo.properties new file mode 100644 index 0000000..7e3c7c0 --- /dev/null +++ b/assemble/conf/templates/hadoop-metrics2-accumulo.properties @@ -0,0 +1,86 @@ +# 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. + +# Poll collectors every ten seconds +*.period=10 + +# +# MetricSink configuration +# +# Uncomment a sink (and configuration) to enable it. By default, +# no sinks are enabled. +# + +# +# Configure file logging +# + +# File sink for all metrics +# accumulo.sink.file-all.class=org.apache.hadoop.metrics2.sink.FileSink +# accumulo.sink.file-all.filename=all.metrics + +# File sink for tserver metrics +# accumulo.sink.file-tserver.class=org.apache.hadoop.metrics2.sink.FileSink +# accumulo.sink.file-tserver.context=tserver +# accumulo.sink.file-tserver.filename=tserver.metrics + +# File sink for master metrics +# accumulo.sink.file-master.class=org.apache.hadoop.metrics2.sink.FileSink +# accumulo.sink.file-master.context=master +# accumulo.sink.file-master.filename=master.metrics + +# File sink for thrift server metrics +# accumulo.sink.file-thrift.class=org.apache.hadoop.metrics2.sink.FileSink +# accumulo.sink.file-thrift.context=thrift +# accumulo.sink.file-thrift.filename=thrift.metrics + +# +# Configure Graphite +# + +# Configure all sources to be written to a Graphite instance +# accumulo.sink.graphite.class=org.apache.hadoop.metrics2.sink.GraphiteSink +# accumulo.sink.graphite.server_host=localhost +# accumulo.sink.graphite.server_port=2003 + +# +# Configure Ganglia +# + +# for Ganglia 3.0 support +# accumulo.sink.ganglia.class=org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 + +# for Ganglia 3.1 support +# accumulo.sink.ganglia.class=org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 + +# accumulo.sink.ganglia.period=10 + +# default for supportsparse is false +# accumulo.sink.ganglia.supportsparse=true + +# accumulo.sink.ganglia.slope=jvm.metrics.gcCount=zero,jvm.metrics.memHeapUsedM=both +# accumulo.sink.ganglia.dmax=jvm.metrics.threadsBlocked=70,jvm.metrics.memHeapUsedM=40 + +# Tag values to use for the ganglia prefix. If not defined no tags are used. +# If '*' all tags are used. If specifiying multiple tags separate them with +# commas. Note that the last segment of the property name is the context name. +# +# accumulo.sink.ganglia.tagsForPrefix.jvm=ProcesName +# accumulo.sink.ganglia.tagsForPrefix.tserver= +# accumulo.sink.ganglia.tagsForPrefix.master= +# accumulo.sink.ganglia.tagsForPrefix.thrift= + +# Ganglia host(s) +# accumulo.sink.ganglia.servers=yourgangliahost_1:8649,yourgangliahost_2:8649
