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

rainieli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 6d7e69ca2c [YUNIKORN-970] Add queue metrics with queue names as labels 
(#365)
6d7e69ca2c is described below

commit 6d7e69ca2c98954e5bb8e2c9737f753f0f03d270
Author: William Tom <[email protected]>
AuthorDate: Tue Nov 14 13:25:47 2023 -0800

    [YUNIKORN-970] Add queue metrics with queue names as labels (#365)
    
    Co-authored-by: William Tom <[email protected]>
---
 docs/metrics/queue.md | 61 +++++++++++++++++++++++++++++++++++++++++++++------
 1 file changed, 54 insertions(+), 7 deletions(-)

diff --git a/docs/metrics/queue.md b/docs/metrics/queue.md
index 0aa1f7cd36..4943fd3092 100644
--- a/docs/metrics/queue.md
+++ b/docs/metrics/queue.md
@@ -22,13 +22,37 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-## Queue
-### Application
-Eech queue has a `<queue_name> queue_app` metric to trace the applications in 
the queue.
+## Application
+Each queue has a `<queue_name> queue_app` metric to trace the applications in 
the queue.
 `<queue_name> queue_app` metrics records the number of applications in 
different states.
 These application states include `running`, `accepted`, `rejected`, `failed` 
and `completed`. 
-`<queue_name> queue_app` metrics record container states including `released`, 
`allocated`. 
-**Metric Type**: `guage`
+`<queue_name> queue_app` metrics record container states including `released`, 
`allocated`.
+
+Prior to `1.5.0` queue metrics were pushed to a separate subsystem for each 
queue. In `1.5.0` 
+fixed metrics with `<queue name>` labels were introduced. Metrics using 
`<queue name>` subsystems 
+will be **deprecated in `1.6.0` and removed in `1.7.0`** in favor of a `<queue 
name>` label based approach.
+
+### Label
+(Introduced in `1.5.0`)
+
+**Metric Type**: `gauge`
+
+**Namespace**: `yunikorn`
+
+**Label**: `queue: <queue name>`
+
+**TYPE**: `yunikorn_queue_app`
+
+```json
+yunikorn_queue_app{queue="root.default",state="accepted"} 3
+yunikorn_queue_app{queue="root.default",state="running"} 3
+```
+
+### Subsystem
+|:exclamation: To be deprecated in `1.6.0` and removed in `1.7.0`|
+|----------------------------------------------------------------|
+
+**Metric Type**: `gauge`
 
 **Namespace**: `yunikorn`
 
@@ -41,11 +65,34 @@ yunikorn_root_default_queue_app{state="accepted"} 3
 yunikorn_root_default_queue_app{state="running"} 3
 ```
 
-### Resource
+## Resource
 The `<queue_name> queue_resource` metric to trace the resource in the queue.
 These resource states include `guaranteed`, `max`, `allocated`, `pending`, 
`preempting`.
+### Label
+(Introduced in `1.5.0`)
+
+**Metric Type**: `gauge`
+
+**Namespace**: `yunikorn`
+
+**Label**: `queue: <queue name>`
+
+**TYPE**: `yunikorn_queue_resource`
+
+```json
+yunikorn_queue_resource{queue="root",resource="ephemeral-storage",state="max"} 
9.41009558e+10
+yunikorn_queue_resource{queue="root",resource="hugepages-1Gi",state="max"} 0
+yunikorn_queue_resource{queue="root",resource="hugepages-2Mi",state="max"} 0
+yunikorn_queue_resource{queue="root",resource="memory",state="max"} 
1.6223076352e+10
+yunikorn_queue_resource{queue="root",resource="pods",state="max"} 110
+yunikorn_queue_resource{queue="root",resource="vcore",state="max"} 8000
+```
+
+### Subsystem
+|:exclamation: To be deprecated in `1.6.0` and removed in `1.7.0`|
+|----------------------------------------------------------------|
 
-**Metric Type**: `guage`
+**Metric Type**: `gauge`
 
 **Namespace**: `yunikorn`
 


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

Reply via email to