You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2018/09/28 07:41:24 UTC

[incubator-skywalking-oal-tool] branch master updated: New oal template.

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking-oal-tool.git


The following commit(s) were added to refs/heads/master by this push:
     new 3e6bad1  New oal template.
3e6bad1 is described below

commit 3e6bad1dbaba94ce3e0616dc2d76767cb3867513
Author: Wu Sheng <wu...@foxmail.com>
AuthorDate: Fri Sep 28 15:41:14 2018 +0800

    New oal template.
---
 oal-parser/src/test/resources/oal_test.oal | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/oal-parser/src/test/resources/oal_test.oal b/oal-parser/src/test/resources/oal_test.oal
index 4c067ed..c87d5bd 100644
--- a/oal-parser/src/test/resources/oal_test.oal
+++ b/oal-parser/src/test/resources/oal_test.oal
@@ -43,11 +43,11 @@ service_relation_client_resp_time = from(ServiceRelation.latency).filter(detectP
 service_relation_server_resp_time = from(ServiceRelation.latency).filter(detectPoint == DetectPoint.SERVER).longAvg();
 
 // Service Instance Scope metric
-serviceInstance_resp_time= from(ServiceInstance.latency).longAvg();
+service_instance_resp_time= from(ServiceInstance.latency).longAvg();
 service_instance_cpm = from(ServiceInstance.*).cpm();
 
 // Endpoint scope metric
-endpoint_Avg = from(Endpoint.latency).longAvg();
+endpoint_avg = from(Endpoint.latency).longAvg();
 endpoint_sla = from(Endpoint.*).percent(status == true);
 endpoint_p99 = from(Endpoint.latency).p99(10);
 endpoint_p95 = from(Endpoint.latency).p95(10);
@@ -61,8 +61,10 @@ endpoint_relation_resp_time = from(EndpointRelation.rpcLatency).filter(detectPoi
 
 // JVM instance metric
 instance_jvm_cpu = from(ServiceInstanceJVMCPU.usePercent).doubleAvg();
-instance_jvm_memory_heap = from(ServiceInstanceJVMMemory.max).filter(heapStatus == true).longAvg();
-instance_jvm_memory_noheap = from(ServiceInstanceJVMMemory.max).filter(heapStatus == false).longAvg();
+instance_jvm_memory_heap = from(ServiceInstanceJVMMemory.used).filter(heapStatus == true).longAvg();
+instance_jvm_memory_noheap = from(ServiceInstanceJVMMemory.used).filter(heapStatus == false).longAvg();
+instance_jvm_memory_heap_max = from(ServiceInstanceJVMMemory.max).filter(heapStatus == true).longAvg();
+instance_jvm_memory_noheap_max = from(ServiceInstanceJVMMemory.max).filter(heapStatus == false).longAvg();
 instance_jvm_young_gc_time = from(ServiceInstanceJVMGC.time).filter(phrase == GCPhrase.NEW).longAvg();
 instance_jvm_old_gc_time = from(ServiceInstanceJVMGC.time).filter(phrase == GCPhrase.OLD).longAvg();
 instance_jvm_young_gc_count = from(ServiceInstanceJVMGC.count).filter(phrase == GCPhrase.NEW).sum();