Skip to content

Conversation

@win5923
Copy link
Collaborator

@win5923 win5923 commented Mar 25, 2025

Why are these changes needed?

Add ray_services_created_total metric to track the total number of RayServices created

Manual test

$ k apply -f config/samples/ray-service.sample.yaml
$ k apply -f config/samples/ray-service.sample.yaml -n test
$ k apply -f config/samples/ray-service.mobilenet.yaml

image

Related issue number

Closes #3176

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

Comment on lines 135 to 137
if len(rayServiceInstance.Status.Conditions) == 0 {
common.CreatedRayServicesCounterInc(rayServiceInstance.Namespace)
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The if statement is used to avoid recording duplicate metrics.

@win5923
Copy link
Collaborator Author

win5923 commented Mar 25, 2025

@troychiu PTAL, thx.

@win5923 win5923 force-pushed the metrics/ray_services_created_total branch from 5ad9846 to 469cade Compare March 31, 2025 13:17
@win5923 win5923 closed this Apr 28, 2025
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.

[Feature][metrics] ray_services_created_total

1 participant