dongjoon-hyun opened a new pull request, #483:
URL: https://github.com/apache/spark-kubernetes-operator/pull/483

   ### What changes were proposed in this pull request?
   
   This PR aims to support `spark.kubernetes.operator.metrics.path`.
   
   ### Why are the changes needed?
   
   This allows users to use a standard `/metrics` path in their installation.
   ```
   spark.kubernetes.operator.metrics.path=/metrics
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Pass the CIs and manual tests.
   
   1. Setting like the following.
   ```
   build-tools/helm/spark-kubernetes-operator/values.yaml
   @@ -201,6 +201,8 @@ operatorConfiguration:
      spark-operator.properties: |+
        # Property Overrides. e.g.
        # spark.kubernetes.operator.reconciler.intervalSeconds=60
   +    spark.kubernetes.operator.metrics.path=/metrics
   +    spark.kubernetes.operator.metrics.port=9090
   ```
   
   ```
   $ curl http://localhost:9090/metrics/
   # HELP jvm_bufferpool_direct_capacity Gauge metric
   # TYPE jvm_bufferpool_direct_capacity gauge
   jvm_bufferpool_direct_capacity 0
   
   # HELP jvm_bufferpool_direct_count Gauge metric
   # TYPE jvm_bufferpool_direct_count gauge
   jvm_bufferpool_direct_count 1
   ...
   ```
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to