Skip to content

[DocDB] Duplicate Prometheus Metrics #25277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
yusong-yan opened this issue Dec 12, 2024 · 1 comment
Open
1 task done

[DocDB] Duplicate Prometheus Metrics #25277

yusong-yan opened this issue Dec 12, 2024 · 1 comment
Assignees
Labels

Comments

@yusong-yan
Copy link
Contributor

yusong-yan commented Dec 12, 2024

Jira Link: DB-14463

Description

We observed many server metrics with the same name rpcs_in_queue_yb_master_MasterService

rpcs_in_queue_yb_master_MasterService{exported_instance="dev-n3",metric_type="server",metric_id="yb.master"} 0 1733761038868
rpcs_in_queue_yb_master_MasterService{exported_instance="dev-n3",metric_type="server",metric_id="yb.master"} 0 1733761038868
rpcs_in_queue_yb_master_MasterService{exported_instance="dev-n3",metric_type="server",metric_id="yb.master"} 0 1733761038868
rpcs_in_queue_yb_master_MasterService{exported_instance="dev-n3",metric_type="server",metric_id="yb.master"} 0 1733761038868
rpcs_in_queue_yb_master_MasterService{exported_instance="dev-n3",metric_type="server",metric_id="yb.master"} 0 1733761038868
rpcs_in_queue_yb_master_MasterService{exported_instance="dev-n3",metric_type="server",metric_id="yb.master"} 0 1733761038868
rpcs_in_queue_yb_master_MasterService{exported_instance="dev-n3",metric_type="server",metric_id="yb.master"} 0 1733761038868
rpcs_in_queue_yb_master_MasterService{exported_instance="dev-n3",metric_type="server",metric_id="yb.master"} 0 1733761038868
rpcs_in_queue_yb_master_MasterService{exported_instance="dev-n3",metric_type="server",metric_id="yb.master"} 0 1733761038868

Issue Type

kind/bug

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.
@yusong-yan yusong-yan added area/docdb YugabyteDB core features status/awaiting-triage Issue awaiting triage labels Dec 12, 2024
@yugabyte-ci yugabyte-ci added kind/bug This issue is a bug priority/medium Medium priority issue labels Dec 12, 2024
@yusong-yan
Copy link
Contributor Author

A rpcs_in_queue_+<service_name()> metric is created within each of those services’ ServicePool. The reason are seeing these “duplicated metrics” is because, those services all have the same service_name yb.master.MasterService

std::unique_ptr<rpc::ServiceIf> MakeMasterAdminService(Master* master);
std::unique_ptr<rpc::ServiceIf> MakeMasterBackupService(Master* master);
std::unique_ptr<rpc::ServiceIf> MakeMasterClientService(Master* master);
std::unique_ptr<rpc::ServiceIf> MakeMasterClusterService(Master* master);
std::unique_ptr<rpc::ServiceIf> MakeMasterDclService(Master* master);
std::unique_ptr<rpc::ServiceIf> MakeMasterDdlService(Master* master);
std::unique_ptr<rpc::ServiceIf> MakeMasterEncryptionService(Master* master);
std::unique_ptr<rpc::ServiceIf> MakeMasterHeartbeatService(Master* master);
std::unique_ptr<rpc::ServiceIf> MakeMasterReplicationService(Master* master);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants