Skip to content

Commit

Permalink
Adding more access log metrics into k8s dashboards (#12018)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrproliu authored Mar 14, 2024
1 parent 52d5b25 commit 8fad0cc
Show file tree
Hide file tree
Showing 4 changed files with 238 additions and 130 deletions.
1 change: 1 addition & 0 deletions docs/en/changes/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
* Enhance VNode logic and support multiple Trace IDs in span's ref.
* Add the layers filed and associate layers dashboards for the service topology nodes.
* Fix `Nginx-Instance` metrics to instance level.
* Update tabs of the Kubernetes service page.

#### Documentation

Expand Down
1 change: 1 addition & 0 deletions oap-server/server-starter/src/main/resources/oal/ebpf.oal
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ kubernetes_service_instance_read_netfilter_duration = from(K8SServiceInstance.re

kubernetes_service_instance_http_call_cpm = from(K8SServiceInstance.*).filter(detectPoint == DetectPoint.SERVER).filter(type == "protocol").filter(protocol.type == "http").cpm();
kubernetes_service_instance_http_call_duration = from(K8SServiceInstance.protocol.http.latency).filter(detectPoint == DetectPoint.SERVER).filter(type == "protocol").filter(protocol.type == "http").sum();
kubernetes_service_instance_http_call_success_count = from(K8SServiceInstance.*).filter(detectPoint == DetectPoint.SERVER).filter(type == "protocol").filter(protocol.type == "http").filter(protocol.success == true).cpm();
kubernetes_service_instance_http_req_header_size = from(K8SServiceInstance.protocol.http.sizeOfRequestHeader).filter(detectPoint == DetectPoint.SERVER).filter(type == "protocol").filter(protocol.type == "http").sum();
kubernetes_service_instance_http_req_body_size = from(K8SServiceInstance.protocol.http.sizeOfRequestBody).filter(detectPoint == DetectPoint.SERVER).filter(type == "protocol").filter(protocol.type == "http").sum();
kubernetes_service_instance_http_resp_header_size = from(K8SServiceInstance.protocol.http.sizeOfResponseHeader).filter(detectPoint == DetectPoint.SERVER).filter(type == "protocol").filter(protocol.type == "http").sum();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,18 @@
"type": "Widget",
"metricMode": "Expression",
"typesOfMQE": [
"TIME_SERIES_VALUES",
"TIME_SERIES_VALUES",
"TIME_SERIES_VALUES",
"TIME_SERIES_VALUES",
"TIME_SERIES_VALUES"
],
"expressions": [
"latest(k8s_service_pod_total)",
"latest(k8s_service_cpu_cores_requests)",
"latest(k8s_service_cpu_cores_limits)"
"latest(k8s_service_cpu_cores_limits)",
"latest(kubernetes_service_http_call_cpm)",
"latest(kubernetes_service_http_call_success_count/kubernetes_service_http_call_cpm*100)"
],
"graph": {
"type": "ServiceList",
Expand All @@ -75,6 +79,14 @@
{
"label": "CPU Limits",
"unit": "m"
},
{
"label": "HTTP Load",
"unit": "calls / min"
},
{
"label": "HTTP Success Rate",
"unit": "%"
}
]
}
Expand Down Expand Up @@ -211,4 +223,4 @@
"path": "/Kubernetes/Service"
}
}
]
]
Loading

0 comments on commit 8fad0cc

Please sign in to comment.