Skip to content

Commit

Permalink
fix feat(RHIDP-872): Enable RHDH nodejs metrics (#88)
Browse files Browse the repository at this point in the history
Add metrics thate were missing from test phase

Co-authored-by: Pavel Macík <[email protected]>
  • Loading branch information
yogananth-subramanian and pmacik authored Sep 26, 2024
1 parent 29d2387 commit 7334f51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/cluster_read_config.test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ value }}

{% macro rhdh_nodejs_rate( query ) -%}
# Gather nodejs monitoring data about the {{ query }}
- name: measurements.nodejs.populate.{{ query }}
- name: measurements.nodejs.test.{{ query }}
monitoring_query: sum(rate({{ query }}{ job="rhdh-metrics" }[5m]))
monitoring_step: 15
{%- endmacro %}
Expand Down Expand Up @@ -284,15 +284,15 @@ value }}
{{ rhdh_nodejs(query) }}
{% endfor %}

- name: measurements.nodejs.populate.catalog_processing_queue_delay_seconds_average
- name: measurements.nodejs.test.catalog_processing_queue_delay_seconds_average
monitoring_query: sum(rate(catalog_processing_queue_delay_seconds_sum{job="rhdh-metrics"}[5m]))/sum(rate(catalog_processing_queue_delay_seconds_count{job="rhdh-metrics"}[5m]))
monitoring_step: 15

- name: measurements.nodejs.populate.catalog_processors_duration_seconds_failed_average
- name: measurements.nodejs.test.catalog_processors_duration_seconds_failed_average
monitoring_query: sum(rate(catalog_processors_duration_seconds_sum{result="failed",job="rhdh-metrics"}[5m]))/sum(rate(catalog_processors_duration_seconds_count{result="failed",job="rhdh-metrics"}[5m]))
monitoring_step: 15

- name: measurements.nodejs.populate.nodejs_gc_duration_seconds_major_average
- name: measurements.nodejs.test.nodejs_gc_duration_seconds_major_average
monitoring_query: sum(rate(nodejs_gc_duration_seconds_sum{kind="major",job="rhdh-metrics"}[5m]))/sum(rate(nodejs_gc_duration_seconds_count{kind="major",job="rhdh-metrics"}[5m]))
monitoring_step: 15

Expand Down

0 comments on commit 7334f51

Please sign in to comment.