上一主题: 度量标准查询示例下一主题: 配置 Introscope 扩展


事务跟踪查询

基本的事务头查询语法是:

select * from trace_headers where timestamp between {starttime} and {endtime} and query={lucene query string} [limit {rows}]

其中,lucene query string 是有效的 Lucene 查询字符串,如同在 Workstation 的历史查询中一样(有关详细信息,请参阅《CA APM Workstation 用户指南》)。

可选的 limit 标志限制查询返回的行数。 如果未指定限制,则将使用服务器中定义的默认事务限制。

用于跟踪正文的查询是相同的,但引用一个不同的视图:

select * from traces where timestamp between {starttime} and {endtime} and query={lucene query string} [limit {rows}]

事务跟踪查询示例:

select * from trace_headers where timestamp between '01/01/01 00:00:00' and '01/01/07 00:00:00' and query='s*'

select * from trace_headers where timestamp between '01/01/01 00:00:00' and '01/01/07 00:00:00' and query='host:blinky'

select * from traces where timestamp between '01/01/01 00:00:00' and '01/01/07 00:00:00' and query='host:blinky' limit 100

跟踪查询返回的数据行包括代理信息,例如域、主机、进程和代理名称,以及事务跟踪的 XML 表示形式。