b-slim commented on a change in pull request #7363: Implementing dropwizard 
emitter for druid
URL: https://github.com/apache/incubator-druid/pull/7363#discussion_r278643139
 
 

 ##########
 File path: docs/content/development/extensions-contrib/dropwizard.md
 ##########
 @@ -0,0 +1,86 @@
+---
+layout: doc_page
+title: "Dropwizard metrics emitter"
+---
+
+<!--
+  ~ 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.
+  -->
+
+# Dropwizard Emitter
+
+To use this extension, make sure to 
[include](../../operations/including-extensions.html) `dropwizard-emitter` 
extension.
+
+## Introduction
+
+This extension integrates 
[Dropwizard](http://metrics.dropwizard.io/3.1.0/getting-started/#) metrics 
library with druid so that dropwizard users can easily absorb druid into their 
monitoring ecosystem.
+It accumulates druid metrics as dropwizard metrics, and emits them to various 
sinks via dropwizard supported reporters.
+Currently supported dropwizard metrics types counter, gauge, meter, timer and 
histogram. 
+These metrics can be emitted using either Console or JMX reporter. 
+
+## Configuration
+
+All the configuration parameters for Dropwizard emitter are under 
`druid.emitter.dropwizard`.
+
+|property|description|required?|default|
+|--------|-----------|---------|-------|
+|`druid.emitter.dropwizard.reporters`|List of dropwizard reporters to be 
used.|yes|none|
+|`druid.emitter.dropwizard.prefix`|Optional prefix to be used for metrics 
name|no|none|
+|`druid.emitter.dropwizard.includeHost`|Flag to include the hostname as part 
of the metric name.|no|yes|
+|`druid.emitter.dropwizard.includeDimensionNames`|Flag to include the 
dimension names as part of the metric name.|no|yes|
+|`druid.emitter.dropwizard.dimensionMapPath`|Path to JSON file defining the 
StatsD type, and desired dimensions for every Druid metric|no|Default mapping 
provided. See below.|
+|`druid.emitter.dropwizard.alertEmitters`| List of emitters where alerts will 
be forwarded to. |no| empty list (no forwarding)|
+
+
+### Druid to Dropwizard Event Conversion
+
+Each metric emitted using Dropwizard must specify a type, one of `[timer, 
counter, guage, meter, histogram, ]`. Dropwizard Emitter expects this mapping to
+be provided as a JSON file.  Additionally, this mapping specifies which 
dimensions should be included for each metric.
+If the user does not specify their own JSON file, a default mapping is used.
+All metrics are expected to be mapped. Metrics which are not mapped will log 
an error.
 
 Review comment:
   how about ignored or warning ? seems like error is too much, especially in 
Druid we add metrics pretty often.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to