Skip to content
This repository has been archived by the owner on Dec 17, 2023. It is now read-only.

Commit

Permalink
Update metrics keys (#74)
Browse files Browse the repository at this point in the history
* added collector for sql monitor

* remove prefixes of metrics keys
  • Loading branch information
ThoralfHaensel authored Jan 12, 2021
1 parent cf06e31 commit d3e844f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/zamp_collector/zcl_amp_c_jobs.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ CLASS zcl_amp_c_jobs IMPLEMENTATION.
WHEN 'X' THEN 'unknown_state'
ELSE 'no status found' ).

metrics = VALUE #( BASE metrics ( metric_key = |jobs_{ status }| metric_value = <job>-count ) ).
metrics = VALUE #( BASE metrics ( metric_key = status metric_value = <job>-count ) ).

ENDLOOP.

Expand Down
2 changes: 1 addition & 1 deletion src/zamp_collector/zcl_amp_c_runtime_errors.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ CLASS zcl_amp_c_runtime_errors IMPLEMENTATION.
WHERE datum = @sy-datum
AND seqno = '000'.

metrics = VALUE #( BASE metrics ( metric_key = 'runtime_errors' metric_value = number_of_runtime_errors ) ).
metrics = VALUE #( BASE metrics ( metric_key = 'number' metric_value = number_of_runtime_errors ) ).

ENDMETHOD.

Expand Down
6 changes: 3 additions & 3 deletions src/zamp_collector/zcl_amp_c_workloads.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ CLASS zcl_amp_c_workloads IMPLEMENTATION.
ENDLOOP.

metrics = VALUE #( BASE metrics
( metric_key = 'workload_no_of_records' metric_value = no_of_records )
( metric_key = 'workload_response_time' metric_value = response_time )
( metric_key = 'workload_cpu_time' metric_value = cpu_time ) ).
( metric_key = 'no_of_records' metric_value = no_of_records )
( metric_key = 'response_time' metric_value = response_time )
( metric_key = 'cpu_time' metric_value = cpu_time ) ).


ELSE.
Expand Down

0 comments on commit d3e844f

Please sign in to comment.