yugabyte/yugabyte-db

[DocDB] Duplicate entries in yb.master metrics for 'rpcs_in_queue_yb_master_MasterService'.

Closed

#15,538 opened on Jan 6, 2023

 (2 comments) (0 reactions) (0 assignees)C (1,003 forks)batch import
area/docdbgood first issuekind/bugpriority/medium

Repository metrics

Stars
 (8,229 stars)
PR merge metrics
 (Avg merge 17d 21h) (92 merged PRs in 30d)

Description

Jira Link: DB-4933

Description

Yugabyte version: 2.17.0.0b24 (public version) OS: Linux (Alma 8.7, x86_64)

The master /metrics endpoint contains several entries for the rpcs_in_queue_yb_master_MasterService metric in yb.master, which should be one.

This can be tested/verified using: curl -s http://192.168.66.80:7000/metrics | grep -e \"id\" -e rpcs_in_queue_yb_master_MasterService:

$ curl -s http://192.168.66.80:7000/metrics | grep -e \"id\" -e rpcs_in_queue_yb_master_MasterService
        "id": "yb.master",
                "name": "rpcs_in_queue_yb_master_MasterService",
                "name": "rpcs_in_queue_yb_master_MasterService",
                "name": "rpcs_in_queue_yb_master_MasterService",
                "name": "rpcs_in_queue_yb_master_MasterService",
                "name": "rpcs_in_queue_yb_master_MasterService",
                "name": "rpcs_in_queue_yb_master_MasterService",
                "name": "rpcs_in_queue_yb_master_MasterService",
                "name": "rpcs_in_queue_yb_master_MasterService",
        "id": "sys.catalog.uuid",
        "id": "00000000000000000000000000000000",
        "id": "yb.cluster",

This shows 8 statistics rpcs_in_queue_yb_master_MasterService metrics for yb.master.

Equally, 8 entries are shown in the /prometheus-metrics endpoint.

Contributor guide