Skip to content

Conversation

morvencao
Copy link
Member

@morvencao morvencao commented Sep 19, 2025

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED

Summary

  1. added metric about grpc server registered subscribers
  2. addad back the consumer(cluster) for the grpc server metrics.
  3. removed original_source label for cloudevents metric of source side (for agent side, still keep it).

Related issue(s)

open-cluster-management-io/enhancements#153

Fixes #

@openshift-ci openshift-ci bot requested review from deads2k and qiujian16 September 19, 2025 02:00
Signed-off-by: morvencao <[email protected]>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
@morvencao morvencao force-pushed the br_grpc_subscribers_metric branch from 55a90fb to 262b3de Compare September 19, 2025 02:04
Signed-off-by: morvencao <[email protected]>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
@morvencao
Copy link
Member Author

/assign @qiujian16 @skeeey @clyang82

var grpcCEMetricsCommonLabels = []string{
grpcCEMetricsClusterLabel,
grpcCEMetricsDataTypeLabel,
grpcCEMetricsMethodLabel,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need method label?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for grpc_server_ce_subscribers, no need method label.
for other grpc_server_ce_* metrics, need method label, see it in grpcCEMetricsHandlerLabels

@clyang82
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Sep 23, 2025
"sync"
"time"

"open-cluster-management.io/sdk-go/pkg/cloudevents/server/grpc/heartbeat"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we also need to consider the heartbeat metrics, but we can use the other pr to handle it

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@skeeey
Copy link
Member

skeeey commented Sep 24, 2025

LGTM

@qiujian16
Copy link
Member

/approve

Copy link

openshift-ci bot commented Sep 24, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: morvencao, qiujian16

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 9633a0b into open-cluster-management-io:main Sep 24, 2025
12 checks passed
@morvencao morvencao deleted the br_grpc_subscribers_metric branch September 24, 2025 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants