This is an automated email from the ASF dual-hosted git repository.

zhouky pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-celeborn.git


The following commit(s) were added to refs/heads/main by this push:
     new 9c07ceddb [CELEBORN-1028][FOLLOWUP][DOCS] Make prometheus path 
configurable
9c07ceddb is described below

commit 9c07ceddb0abc9a4f288f719952c844aa53c5b99
Author: sychen <[email protected]>
AuthorDate: Tue Oct 10 22:59:22 2023 +0800

    [CELEBORN-1028][FOLLOWUP][DOCS] Make prometheus path configurable
    
    ### What changes were proposed in this pull request?
    
    ### Why are the changes needed?
    
https://github.com/apache/incubator-celeborn/pull/1965#issuecomment-1755345813
    
    ### Does this PR introduce _any_ user-facing change?
    
    ### How was this patch tested?
    
    <img width="1410" alt="image" 
src="https://github.com/apache/incubator-celeborn/assets/3898450/6454133a-040b-4dde-84b7-dbf08fb15b13";>
    
    <img width="1401" alt="image" 
src="https://github.com/apache/incubator-celeborn/assets/3898450/3cdfa9f2-9a7a-43cb-9006-77810a350669";>
    
    Closes #1974 from cxzl25/CELEBORN-1028-FOLLOWUP.
    
    Authored-by: sychen <[email protected]>
    Signed-off-by: zky.zhoukeyong <[email protected]>
---
 .../org/apache/celeborn/common/CelebornConf.scala  |  2 +-
 docs/configuration/metrics.md                      |  2 +-
 docs/monitoring.md                                 | 54 +++++++++++-----------
 3 files changed, 29 insertions(+), 29 deletions(-)

diff --git 
a/common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala 
b/common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala
index babc7baf3..de7a9da74 100644
--- a/common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala
+++ b/common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala
@@ -3664,7 +3664,7 @@ object CelebornConf extends Logging {
   val METRICS_PROMETHEUS_PATH: ConfigEntry[String] =
     buildConf("celeborn.metrics.prometheus.path")
       .categories("metrics")
-      .doc("URI context path of prometheus metrics HTTP server")
+      .doc("URI context path of prometheus metrics HTTP server.")
       .version("0.4.0")
       .stringConf
       .checkValue(path => path.startsWith("/"), "Context path must start with 
'/'")
diff --git a/docs/configuration/metrics.md b/docs/configuration/metrics.md
index 8015795ed..43759c8f6 100644
--- a/docs/configuration/metrics.md
+++ b/docs/configuration/metrics.md
@@ -29,7 +29,7 @@ license: |
 | celeborn.metrics.extraLabels |  | If default metric labels are not enough, 
extra metric labels can be customized. Labels' pattern is: 
`<label1_key>=<label1_value>[,<label2_key>=<label2_value>]*`; e.g. 
`env=prod,version=1` | 0.3.0 | 
 | celeborn.metrics.master.prometheus.host | &lt;localhost&gt; | Master's 
Prometheus host. | 0.3.0 | 
 | celeborn.metrics.master.prometheus.port | 9098 | Master's Prometheus port. | 
0.3.0 | 
-| celeborn.metrics.prometheus.path | /metrics/prometheus | URI context path of 
prometheus metrics HTTP server | 0.4.0 | 
+| celeborn.metrics.prometheus.path | /metrics/prometheus | URI context path of 
prometheus metrics HTTP server. | 0.4.0 | 
 | celeborn.metrics.sample.rate | 1.0 | It controls if Celeborn collect timer 
metrics for some operations. Its value should be in [0.0, 1.0]. | 0.2.0 | 
 | celeborn.metrics.timer.slidingWindow.size | 4096 | The sliding window size 
of timer metric. | 0.2.0 | 
 | celeborn.metrics.worker.pauseSpentTime.forceAppend.threshold | 10 | Force 
append worker pause spent time even if worker still in pause serving state.Help 
user can find worker pause spent time increase, when worker always been pause 
state. |  | 
diff --git a/docs/monitoring.md b/docs/monitoring.md
index d6a7cf17e..9e73b05d2 100644
--- a/docs/monitoring.md
+++ b/docs/monitoring.md
@@ -287,33 +287,33 @@ API path listed as below:
 
 #### Master
 
-| Path                  | Meaning                                              
                                                       |
-|-----------------------|-------------------------------------------------------------------------------------------------------------|
-| /metrics/prometheus   | List the metrics data in prometheus format of the 
master.                                                   |
-| /conf                 | List the conf setting of the master.                 
                                                       |
-| /masterGroupInfo      | List master group information of the service. It 
will list all master's LEADER, FOLLOWER information.       |
-| /workerInfo           | List worker information of the service. It will list 
all registered workers 's information.                 |
-| /lostWorkers          | List all lost workers of the master.                 
                                                       |
-| /excludedWorkers      | List all excluded workers of the master.             
                                                       |
-| /shutdownWorkers      | List all shutdown workers of the master.             
                                                       |
-| /threadDump           | List the current thread dump of the master.          
                                                       |
-| /hostnames            | List all running application's LifecycleManager's 
hostnames of the cluster.                                 |
-| /applications         | List all running application's ids of the cluster.   
                                                       |
-| /shuffles             | List all running shuffle keys of the service. It 
will return all running shuffle's key of the cluster.      |
-| /listTopDiskUsedApps  | List the top disk usage application ids. It will 
return the top disk usage application ids for the cluster. |
+| Path                  | Meaning                                              
                                                                               |
+|-----------------------|-------------------------------------------------------------------------------------------------------------------------------------|
+| /metrics/prometheus   | List the metrics data in prometheus format of the 
master.(The url path is defined by configure 
`celeborn.metrics.prometheus.path`.) |
+| /conf                 | List the conf setting of the master.                 
                                                                               |
+| /masterGroupInfo      | List master group information of the service. It 
will list all master's LEADER, FOLLOWER information.                            
   |
+| /workerInfo           | List worker information of the service. It will list 
all registered workers 's information.                                         |
+| /lostWorkers          | List all lost workers of the master.                 
                                                                               |
+| /excludedWorkers      | List all excluded workers of the master.             
                                                                               |
+| /shutdownWorkers      | List all shutdown workers of the master.             
                                                                               |
+| /threadDump           | List the current thread dump of the master.          
                                                                               |
+| /hostnames            | List all running application's LifecycleManager's 
hostnames of the cluster.                                                       
  |
+| /applications         | List all running application's ids of the cluster.   
                                                                               |
+| /shuffles             | List all running shuffle keys of the service. It 
will return all running shuffle's key of the cluster.                           
   |
+| /listTopDiskUsedApps  | List the top disk usage application ids. It will 
return the top disk usage application ids for the cluster.                      
   |
 
 #### Worker
 
-| Path                       | Meaning                                         
                                                         |
-|----------------------------|----------------------------------------------------------------------------------------------------------|
-| /metrics/prometheus        | List the metrics data in prometheus format of 
the worker.                                                |
-| /conf                      | List the conf setting of the worker.            
                                                         |
-| /workerInfo                | List the worker information of the worker.      
                                                         |
-| /threadDump                | List the current thread dump of the worker.     
                                                         |
-| /shuffles                  | List all the running shuffle keys of the 
worker. It only return keys of shuffles running in that worker. |
-| /listTopDiskUsedApps       | List the top disk usage application ids. It 
only return application ids running in that worker.          |
-| /listPartitionLocationInfo | List all the living PartitionLocation 
information in that worker.                                        |
-| /unavailablePeers          | List the unavailable peers of the worker, this 
always means the worker connect to the peer failed.       |
-| /isShutdown                | Show if the worker is during the process of 
shutdown.                                                    |
-| /isRegistered              | Show if the worker is registered to the master 
success.                                                  |
-| /exit?type=${TYPE}         | Trigger this worker to exit. Legal `type`s are 
'DECOMMISSION‘, 'GRACEFUL' and 'IMMEDIATELY'              |
+| Path                       | Meaning                                         
                                                                                
    |
+|----------------------------|-------------------------------------------------------------------------------------------------------------------------------------|
+| /metrics/prometheus        | List the metrics data in prometheus format of 
the worker.(The url path is defined by configure 
`celeborn.metrics.prometheus.path`.) |
+| /conf                      | List the conf setting of the worker.            
                                                                                
    |
+| /workerInfo                | List the worker information of the worker.      
                                                                                
    |
+| /threadDump                | List the current thread dump of the worker.     
                                                                                
    |
+| /shuffles                  | List all the running shuffle keys of the 
worker. It only return keys of shuffles running in that worker.                 
           |
+| /listTopDiskUsedApps       | List the top disk usage application ids. It 
only return application ids running in that worker.                             
        |
+| /listPartitionLocationInfo | List all the living PartitionLocation 
information in that worker.                                                     
              |
+| /unavailablePeers          | List the unavailable peers of the worker, this 
always means the worker connect to the peer failed.                             
     |
+| /isShutdown                | Show if the worker is during the process of 
shutdown.                                                                       
        |
+| /isRegistered              | Show if the worker is registered to the master 
success.                                                                        
     |
+| /exit?type=${TYPE}         | Trigger this worker to exit. Legal `type`s are 
'DECOMMISSION‘, 'GRACEFUL' and 'IMMEDIATELY'                                    
     |

Reply via email to