docs
docs copied to clipboard
Add ARM HWCPipe Exporter
ARM HWCPipe Exporter
ARM® HWCPipe Exporter is a Prometheus exporter written in Java and C++ that retrieves metrics from Android devices running on ARM® Hardware components and exports them to the Prometheus monitoring system.
For more info, please see ylz-at/arm-hwcpipe-exporter.
Sample:
- Prometheus metrics response sample
$ curl -i http://<android-device-ip>:9998/metrics
HTTP/1.1 200 OK
Content-Type: text/plain; version=0.0.4; charset=utf-8
Content-Length: 3761
# HELP hwcpipe_gpu_mali_ext_bus_wr_by_total ARM HWCPipe Counter. Bytes written to external memory. Unit B.
# TYPE hwcpipe_gpu_mali_ext_bus_wr_by_total counter
hwcpipe_gpu_mali_ext_bus_wr_by_total 1.680171808E9
# HELP hwcpipe_gpu_mali_ext_bus_rd_stall_cy_total ARM HWCPipe Counter. Stalls when reading from external memory. Unit stalls.
# TYPE hwcpipe_gpu_mali_ext_bus_rd_stall_cy_total counter
hwcpipe_gpu_mali_ext_bus_rd_stall_cy_total 5.24075489E8
# HELP hwcpipe_cpu_branch_instructions_total ARM HWCPipe Counter. Number of branch instructions. Unit instructions.
# TYPE hwcpipe_cpu_branch_instructions_total counter
hwcpipe_cpu_branch_instructions_total 3.5345818E7
# HELP hwcpipe_cpu_branch_misses_total ARM HWCPipe Counter. Number of branch misses. Unit misses.
# TYPE hwcpipe_cpu_branch_misses_total counter
hwcpipe_cpu_branch_misses_total 2499210.0
# HELP hwcpipe_gpu_mali_gpu_active_cy_total ARM HWCPipe Counter. Number of GPU cycles. Unit cycles.
# TYPE hwcpipe_gpu_mali_gpu_active_cy_total counter
hwcpipe_gpu_mali_gpu_active_cy_total 5.06301471E8
# HELP hwcpipe_gpu_mali_tiler_active_cy_total ARM HWCPipe Counter. Number of tiler cycles. Unit cycles.
# TYPE hwcpipe_gpu_mali_tiler_active_cy_total counter
hwcpipe_gpu_mali_tiler_active_cy_total 3.1594886E7
# HELP hwcpipe_cpu_cache_references_total ARM HWCPipe Counter. Number of cache references. Unit references.
# TYPE hwcpipe_cpu_cache_references_total counter
hwcpipe_cpu_cache_references_total 1.13142216E8
# HELP hwcpipe_cpu_cycles_total ARM HWCPipe Counter. Number of CPU cycles. Unit cycles.
# TYPE hwcpipe_cpu_cycles_total counter
hwcpipe_cpu_cycles_total 3.42261195E8
# HELP hwcpipe_gpu_mali_ext_bus_wr_total ARM HWCPipe Counter. Writes to external memory. Unit accesses.
# TYPE hwcpipe_gpu_mali_ext_bus_wr_total counter
hwcpipe_gpu_mali_ext_bus_wr_total 2.6476363E7
# HELP hwcpipe_cpu_cache_misses_total ARM HWCPipe Counter. Number of cache misses. Unit misses.
# TYPE hwcpipe_cpu_cache_misses_total counter
hwcpipe_cpu_cache_misses_total 5929659.0
# HELP hwcpipe_gpu_mali_ext_bus_rd_by_total ARM HWCPipe Counter. Bytes read to external memory. Unit B.
# TYPE hwcpipe_gpu_mali_ext_bus_rd_by_total counter
hwcpipe_gpu_mali_ext_bus_rd_by_total 6.764747248E9
# HELP hwcpipe_gpu_mali_frag_queue_active_cy_total ARM HWCPipe Counter. Number of fragment cycles. Unit cycles.
# TYPE hwcpipe_gpu_mali_frag_queue_active_cy_total counter
hwcpipe_gpu_mali_frag_queue_active_cy_total 4.69676585E8
# HELP hwcpipe_gpu_mali_l2cache_rd_lookup_total ARM HWCPipe Counter. Cache read lookups. Unit lookups.
# TYPE hwcpipe_gpu_mali_l2cache_rd_lookup_total counter
hwcpipe_gpu_mali_l2cache_rd_lookup_total 5.63936811E8
# HELP hwcpipe_gpu_mali_non_frag_queue_active_cy_total ARM HWCPipe Counter. Number of vertex/compute cycles. Unit cycles.
# TYPE hwcpipe_gpu_mali_non_frag_queue_active_cy_total counter
hwcpipe_gpu_mali_non_frag_queue_active_cy_total 6.6450202E7
# HELP hwcpipe_cpu_instructions_total ARM HWCPipe Counter. Number of CPU instructions. Unit instructions.
# TYPE hwcpipe_cpu_instructions_total counter
hwcpipe_cpu_instructions_total 2.80965725E8
# HELP hwcpipe_gpu_mali_ext_bus_wr_stall_cy_total ARM HWCPipe Counter. Stalls when writing to external memory. Unit stalls.
# TYPE hwcpipe_gpu_mali_ext_bus_wr_stall_cy_total counter
hwcpipe_gpu_mali_ext_bus_wr_stall_cy_total 9.3863651E7
# HELP hwcpipe_gpu_mali_l2cache_wr_lookup_total ARM HWCPipe Counter. Cache write lookups. Unit lookups.
# TYPE hwcpipe_gpu_mali_l2cache_wr_lookup_total counter
hwcpipe_gpu_mali_l2cache_wr_lookup_total 9.6343046E7
# HELP hwcpipe_gpu_mali_ext_bus_rd_total ARM HWCPipe Counter. Reads from external memory. Unit accesses.
# TYPE hwcpipe_gpu_mali_ext_bus_rd_total counter
hwcpipe_gpu_mali_ext_bus_rd_total 1.05690232E8
- OpenMetrics response sample
$ curl -i http://<android-device-ip>:9998/metrics -H "Accept: application/openmetrics-text; version=0.0.1,text/plain;version=0.0.4;q=0.5,*/*;q=0.1"
HTTP/1.1 200 OK
Content-Type: application/openmetrics-text; version=1.0.0; charset=utf-8
Content-Length: 3551
# TYPE hwcpipe_gpu_mali_ext_bus_wr_by counter
# HELP hwcpipe_gpu_mali_ext_bus_wr_by ARM HWCPipe Counter. Bytes written to external memory. Unit B.
hwcpipe_gpu_mali_ext_bus_wr_by_total 1.712190736E9
# TYPE hwcpipe_gpu_mali_ext_bus_rd_stall_cy counter
# HELP hwcpipe_gpu_mali_ext_bus_rd_stall_cy ARM HWCPipe Counter. Stalls when reading from external memory. Unit stalls.
hwcpipe_gpu_mali_ext_bus_rd_stall_cy_total 5.24346265E8
# TYPE hwcpipe_cpu_branch_instructions counter
# HELP hwcpipe_cpu_branch_instructions ARM HWCPipe Counter. Number of branch instructions. Unit instructions.
hwcpipe_cpu_branch_instructions_total 3.5345818E7
# TYPE hwcpipe_cpu_branch_misses counter
# HELP hwcpipe_cpu_branch_misses ARM HWCPipe Counter. Number of branch misses. Unit misses.
hwcpipe_cpu_branch_misses_total 2499210.0
# TYPE hwcpipe_gpu_mali_gpu_active_cy counter
# HELP hwcpipe_gpu_mali_gpu_active_cy ARM HWCPipe Counter. Number of GPU cycles. Unit cycles.
hwcpipe_gpu_mali_gpu_active_cy_total 5.09585498E8
# TYPE hwcpipe_gpu_mali_tiler_active_cy counter
# HELP hwcpipe_gpu_mali_tiler_active_cy ARM HWCPipe Counter. Number of tiler cycles. Unit cycles.
hwcpipe_gpu_mali_tiler_active_cy_total 3.1822084E7
# TYPE hwcpipe_cpu_cache_references counter
# HELP hwcpipe_cpu_cache_references ARM HWCPipe Counter. Number of cache references. Unit references.
hwcpipe_cpu_cache_references_total 1.13142216E8
# TYPE hwcpipe_cpu_cycles counter
# HELP hwcpipe_cpu_cycles ARM HWCPipe Counter. Number of CPU cycles. Unit cycles.
hwcpipe_cpu_cycles_total 3.42261195E8
# TYPE hwcpipe_gpu_mali_ext_bus_wr counter
# HELP hwcpipe_gpu_mali_ext_bus_wr ARM HWCPipe Counter. Writes to external memory. Unit accesses.
hwcpipe_gpu_mali_ext_bus_wr_total 2.6980861E7
# TYPE hwcpipe_cpu_cache_misses counter
# HELP hwcpipe_cpu_cache_misses ARM HWCPipe Counter. Number of cache misses. Unit misses.
hwcpipe_cpu_cache_misses_total 5929659.0
# TYPE hwcpipe_gpu_mali_ext_bus_rd_by counter
# HELP hwcpipe_gpu_mali_ext_bus_rd_by ARM HWCPipe Counter. Bytes read to external memory. Unit B.
hwcpipe_gpu_mali_ext_bus_rd_by_total 6.77213856E9
# TYPE hwcpipe_gpu_mali_frag_queue_active_cy counter
# HELP hwcpipe_gpu_mali_frag_queue_active_cy ARM HWCPipe Counter. Number of fragment cycles. Unit cycles.
hwcpipe_gpu_mali_frag_queue_active_cy_total 4.72534923E8
# TYPE hwcpipe_gpu_mali_l2cache_rd_lookup counter
# HELP hwcpipe_gpu_mali_l2cache_rd_lookup ARM HWCPipe Counter. Cache read lookups. Unit lookups.
hwcpipe_gpu_mali_l2cache_rd_lookup_total 5.6431762E8
# TYPE hwcpipe_gpu_mali_non_frag_queue_active_cy counter
# HELP hwcpipe_gpu_mali_non_frag_queue_active_cy ARM HWCPipe Counter. Number of vertex/compute cycles. Unit cycles.
hwcpipe_gpu_mali_non_frag_queue_active_cy_total 6.6875891E7
# TYPE hwcpipe_cpu_instructions counter
# HELP hwcpipe_cpu_instructions ARM HWCPipe Counter. Number of CPU instructions. Unit instructions.
hwcpipe_cpu_instructions_total 2.80965725E8
# TYPE hwcpipe_gpu_mali_ext_bus_wr_stall_cy counter
# HELP hwcpipe_gpu_mali_ext_bus_wr_stall_cy ARM HWCPipe Counter. Stalls when writing to external memory. Unit stalls.
hwcpipe_gpu_mali_ext_bus_wr_stall_cy_total 1.00478982E8
# TYPE hwcpipe_gpu_mali_l2cache_wr_lookup counter
# HELP hwcpipe_gpu_mali_l2cache_wr_lookup ARM HWCPipe Counter. Cache write lookups. Unit lookups.
hwcpipe_gpu_mali_l2cache_wr_lookup_total 1.02473742E8
# TYPE hwcpipe_gpu_mali_ext_bus_rd counter
# HELP hwcpipe_gpu_mali_ext_bus_rd ARM HWCPipe Counter. Reads from external memory. Unit accesses.
hwcpipe_gpu_mali_ext_bus_rd_total 1.05805689E8
# EOF
Signed-off-by: Jinesi Yelizati [email protected]