com.alibaba.dubbo.monitor
Interface MonitorService
- All Known Subinterfaces:
- Monitor
- All Known Implementing Classes:
- DubboMonitor
public interface MonitorService
MonitorService. (SPI, Prototype, ThreadSafe)
- Author:
- william.liangf
APPLICATION
static final String APPLICATION
- See Also:
- Constant Field Values
INTERFACE
static final String INTERFACE
- See Also:
- Constant Field Values
METHOD
static final String METHOD
- See Also:
- Constant Field Values
GROUP
static final String GROUP
- See Also:
- Constant Field Values
VERSION
static final String VERSION
- See Also:
- Constant Field Values
CONSUMER
static final String CONSUMER
- See Also:
- Constant Field Values
PROVIDER
static final String PROVIDER
- See Also:
- Constant Field Values
TIMESTAMP
static final String TIMESTAMP
- See Also:
- Constant Field Values
SUCCESS
static final String SUCCESS
- See Also:
- Constant Field Values
FAILURE
static final String FAILURE
- See Also:
- Constant Field Values
INPUT
static final String INPUT
- See Also:
- Constant Field Values
OUTPUT
static final String OUTPUT
- See Also:
- Constant Field Values
ELAPSED
static final String ELAPSED
- See Also:
- Constant Field Values
CONCURRENT
static final String CONCURRENT
- See Also:
- Constant Field Values
MAX_INPUT
static final String MAX_INPUT
- See Also:
- Constant Field Values
MAX_OUTPUT
static final String MAX_OUTPUT
- See Also:
- Constant Field Values
MAX_ELAPSED
static final String MAX_ELAPSED
- See Also:
- Constant Field Values
MAX_CONCURRENT
static final String MAX_CONCURRENT
- See Also:
- Constant Field Values
collect
void collect(URL statistics)
- 监控数据采集.
1. 支持调用次数统计:count://host/interface?application=foo&method=foo&provider=10.20.153.11:20880&success=12&failure=2&elapsed=135423423
1.1 host,application,interface,group,version,method 记录监控来源主机,应用,接口,方法信息。
1.2 如果是消费者发送的数据,加上provider地址参数,反之,加上来源consumer地址参数。
1.3 success,faulure,elapsed 记录距上次采集,调用的成功次数,失败次数,成功调用总耗时,平均时间将用总耗时除以成功次数。
- Parameters:
statistics
-
lookup
List<URL> lookup(URL query)
- 监控数据查询.
1. 支持按天查询:count://host/interface?application=foo&method=foo&side=provider&view=chart&date=2012-07-03
1.1 host,application,interface,group,version,method 查询主机,应用,接口,方法的匹配条件,缺失的条件的表示全部,host用0.0.0.0表示全部。
1.2 side=consumer,provider 查询由调用的哪一端采集的数据,缺省为都查询。
1.3 缺省为view=summary,返回全天汇总信息,支持view=chart表示返回全天趋势图表图片的URL地址,可以进接嵌入其它系统的页面上展示。
1.4 date=2012-07-03 指定查询数据的日期,缺省为当天。
- Parameters:
query
-
- Returns:
- statistics
Copyright © 2012–2017 Alibaba. All rights reserved.