Package com.wavefront.agent.config
Class MetricMatcher
- java.lang.Object
-
- com.wavefront.agent.config.Configuration
-
- com.wavefront.agent.config.MetricMatcher
-
public class MetricMatcher extends Configuration
Object defining transformation between a log line into structured telemetry data.- Author:
- Mori Bellamy ([email protected])
-
-
Constructor Summary
Constructors Constructor Description MetricMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPattern()
String
getValueLabel()
boolean
hasCapture(String label)
void
setAdditionalPatterns(Map<String,String> additionalPatterns)
wavefront.report.TimeSeries
timeSeries(LogsMessage logsMessage, Double[] output)
Convert the given message to a timeSeries and a telemetry datum.void
verifyAndInit()
-
Methods inherited from class com.wavefront.agent.config.Configuration
ensure, equals, hashCode, toString
-
-
-
-
Field Detail
-
logger
protected static final Logger logger
-
-
Method Detail
-
getValueLabel
public String getValueLabel()
-
getPattern
public String getPattern()
-
timeSeries
public wavefront.report.TimeSeries timeSeries(LogsMessage logsMessage, Double[] output) throws NumberFormatException
Convert the given message to a timeSeries and a telemetry datum.- Parameters:
logsMessage
- The message to convert.output
- The telemetry parsed from the filebeat message.- Throws:
NumberFormatException
-
hasCapture
public boolean hasCapture(String label)
-
verifyAndInit
public void verifyAndInit() throws ConfigurationException
- Specified by:
verifyAndInit
in classConfiguration
- Throws:
ConfigurationException
-
-