public class WhiteListBasedConverter extends Object implements DruidToGraphiteEventConverter
Constructor and Description |
---|
WhiteListBasedConverter(String namespacePrefix,
Boolean ignoreHostname,
Boolean ignoreServiceName,
String mapPath,
com.fasterxml.jackson.databind.ObjectMapper mapper) |
Modifier and Type | Method and Description |
---|---|
GraphiteEvent |
druidEventToGraphite(com.metamx.emitter.service.ServiceMetricEvent serviceMetricEvent)
This function acts as a filter.
|
boolean |
equals(Object o) |
String |
getNamespacePrefix() |
com.google.common.collect.ImmutableSortedMap<String,com.google.common.collect.ImmutableSet<String>> |
getWhiteListDimsMapper() |
int |
hashCode() |
boolean |
isIgnoreHostname() |
boolean |
isIgnoreServiceName() |
public boolean isIgnoreHostname()
public boolean isIgnoreServiceName()
public String getNamespacePrefix()
public com.google.common.collect.ImmutableSortedMap<String,com.google.common.collect.ImmutableSet<String>> getWhiteListDimsMapper()
public GraphiteEvent druidEventToGraphite(com.metamx.emitter.service.ServiceMetricEvent serviceMetricEvent)
DruidToGraphiteEventConverter
druidEventToGraphite
in interface DruidToGraphiteEventConverter
serviceMetricEvent
- druid metric event to convertGraphiteEvent
The metric path of the graphite event is:
getOrderedDimValues()
Note that this path will be sanitized by replacing all the `.` or space by `_` GraphiteEmitter.sanitize(String)
Copyright © 2011–2017. All rights reserved.