From 3fa1e347f817be4296b333a2eb37ba0355a8314c Mon Sep 17 00:00:00 2001 From: yogananth subramanian Date: Thu, 26 Sep 2024 16:30:52 +0530 Subject: [PATCH] fix feat(RHIDP-872): Enable RHDH nodejs metrics (#88) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add metrics thate were missing from test phase Co-authored-by: Pavel MacĂ­k --- config/cluster_read_config.test.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/cluster_read_config.test.yaml b/config/cluster_read_config.test.yaml index cf6976b..cbe8bdc 100644 --- a/config/cluster_read_config.test.yaml +++ b/config/cluster_read_config.test.yaml @@ -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 %} @@ -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