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

feat: signer module adds metrics for each rpc interface #1237

Merged
merged 3 commits into from Nov 6, 2023

Conversation

sysvm
Copy link
Collaborator

@sysvm sysvm commented Nov 3, 2023

Description

Signer module adds metrics for each rpc interface.

Rationale

N/A

Example

N/A

Changes

Notable changes:

  • N/A

metrics.ReqTime.WithLabelValues(SignerFailureCreateGVG).Observe(time.Since(startTime).Seconds())
} else {
metrics.ReqCounter.WithLabelValues(SignerSuccessCreateGVG).Inc()
metrics.ReqTime.WithLabelValues(SignerSuccessCreateGVG).Observe(time.Since(startTime).Seconds())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Check other interfaces of the signer and add metrics together.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

@sysvm sysvm changed the title fix: add signer create gvg metrics feat: signer module adds metrics for each rpc interface Nov 3, 2023
SignerFailure = "signer_failure"
SignerSuccessBucketApproval = "signer_bucket_approval_success"
SignerFailureBucketApproval = "signer_bucket_approval_failure"
SignerSuccessMigrateBucketApproval = "signer_bucket_approval_success"
Copy link
Collaborator

Choose a reason for hiding this comment

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

migrate bucket.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

SignerSuccessBucketApproval = "signer_bucket_approval_success"
SignerFailureBucketApproval = "signer_bucket_approval_failure"
SignerSuccessMigrateBucketApproval = "signer_bucket_approval_success"
SignerFailureMigrateBucketApproval = "signer_bucket_approval_failure"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ditto.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

@@ -73,6 +71,8 @@ func (e *ExecuteModular) HandleReplicatePieceTask(ctx context.Context, task core
sealErr := e.sealObject(ctx, task, sealMsg)
metrics.PerfPutObjectTime.WithLabelValues("background_seal_object_cost").Observe(time.Since(sealTime).Seconds())
metrics.PerfPutObjectTime.WithLabelValues("background_task_seal_object_end").Observe(time.Since(startReplicateTime).Seconds())
metrics.PerfPutObjectTime.WithLabelValues("object_throughout_all_process").Observe(time.Since(
time.Unix(task.GetObjectInfo().GetCreateAt(), 0)).Seconds())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Also need to add in HandleSealObjectTask.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added

@sysvm sysvm merged commit e44a2e8 into develop Nov 6, 2023
9 checks passed
@sysvm sysvm deleted the fix-creategvgmetrics branch November 6, 2023 01:51
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.

None yet

3 participants