Skip to content
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

Add resource_exhausted_cause metrics tag #2423

Merged
merged 5 commits into from
Jan 28, 2022

Conversation

yiminc
Copy link
Member

@yiminc yiminc commented Jan 27, 2022

What changed?
Add resource_exhausted_cause metrics tag for ResourceExhaustedError metrics.

Why?
easer for oncall to handle error based on different resource type.

How did you test it?
manual verify metrics

Potential risks
no

Is hotfix candidate?
no

@yiminc yiminc requested a review from a team January 27, 2022 03:31
@yiminc yiminc changed the title Resource exhausted Add resource_exhausted_cause metrics tag Jan 27, 2022
@yiminc yiminc force-pushed the resource_exhausted branch from ce84979 to b1e6a7d Compare January 27, 2022 03:35
@yiminc yiminc force-pushed the resource_exhausted branch from b1e6a7d to 8cb82bd Compare January 27, 2022 17:05
common/metrics/tags.go Outdated Show resolved Hide resolved
common/persistence/visibility/visiblity_manager_metrics.go Outdated Show resolved Hide resolved
service/matching/taskWriter.go Outdated Show resolved Hide resolved
@@ -34,7 +35,7 @@ import (

var (
// ErrPersistenceLimitExceeded is the error indicating QPS limit reached.
ErrPersistenceLimitExceeded = serviceerror.NewResourceExhausted("Persistence Max QPS Reached.")
ErrPersistenceLimitExceeded = serviceerror.NewResourceExhausted(enumspb.RESOURCE_EXHAUSTED_CAUSE_SYSTEM_OVERLOADED, "Persistence Max QPS Reached.")
Copy link
Member

Choose a reason for hiding this comment

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

should this be RESOURCE_EXHAUSTED_CAUSE_RPS_LIMIT?

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

Successfully merging this pull request may close these issues.

4 participants