|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.flume.instrumentation.http.HTTPMetricsServer
public class HTTPMetricsServer
A Monitor service implementation that runs a web server on a configurable port and returns the metrics for components in JSON format.
Optional parameters:
port : The port on which the server should listen to.
Returns metrics in the following format:
{
"componentName1":{"metric1" : "metricValue1","metric2":"metricValue2"}
"componentName1":{"metric3" : "metricValue3","metric4":"metricValue4"}
}
Field Summary | |
---|---|
static String |
CONFIG_PORT
|
static int |
DEFAULT_PORT
|
Constructor Summary | |
---|---|
HTTPMetricsServer()
|
Method Summary | |
---|---|
void |
configure(Context context)
Request the implementing class to (re)configure itself. |
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int DEFAULT_PORT
public static String CONFIG_PORT
Constructor Detail |
---|
public HTTPMetricsServer()
Method Detail |
---|
public void start()
start
in interface MonitorService
public void stop()
stop
in interface MonitorService
public void configure(Context context)
Configurable
Request the implementing class to (re)configure itself.
When configuration parameters are changed, they must be reflected by the component asap.
There are no thread safety guarrantees on when configure might be called.
configure
in interface Configurable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |