[Feature] Add tutorial to explain how to collect metrics from operator for Prometheus #921
Open
2 tasks done
Labels
enhancement
New feature or request
Search before asking
Description
metrics from the operator:
As I see the code here:
kuberay/ray-operator/controllers/ray/common/metrics.go
Lines 9 to 39 in 7374e2c
And according to kubebuilder doc, It is possible to collect the above metrics (e.g
ray_operator_clusters_created_total
) and the default metrics created by the controller run time.How to collect the metrics from the operator:
Reason to also run
helm install raycluster kuberay/ray-cluster --version 0.4.0
:According to the code here:
kuberay/ray-operator/controllers/ray/raycluster_controller.go
Lines 390 to 398 in 4714892
Creating raycluster will increase some metrics and it is expected to see increased metrics in http://localhost:8080/metrics.
Some background I collect:
kuberay/ray-operator/main.go
Line 52 in 4714892
Use case
Collecting metrics from the operator is useful. It helps to debug/benchmark/visualize the operator.
Related issues
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: