[ 
https://issues.apache.org/jira/browse/HDFS-16242?focusedWorklogId=658791&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-658791
 ]

ASF GitHub Bot logged work on HDFS-16242:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 01/Oct/21 07:36
            Start Date: 01/Oct/21 07:36
    Worklog Time Spent: 10m 
      Work Description: adamantal commented on pull request #3494:
URL: https://github.com/apache/hadoop/pull/3494#issuecomment-931984140


   Merged to trunk, thanks for the contribution @Neilxzn 


-- 
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]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 658791)
    Time Spent: 3.5h  (was: 3h 20m)

> JournalMetrics should add JournalId  MetricTag to distinguish different 
> nameservice journal metrics.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-16242
>                 URL: https://issues.apache.org/jira/browse/HDFS-16242
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: journal-node
>    Affects Versions: 3.4.0
>            Reporter: Max  Xie
>            Assignee: Max  Xie
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 3.4.0
>
>          Time Spent: 3.5h
>  Remaining Estimate: 0h
>
> JournalMetrics should add JournalId MetricTag to distinguish different 
> nameservice journal metrics  when JournalNode use ganglia sink or  prometheus 
> sink.
> *JMX*
> Before this patch, journal' jmx :
> {code:java}
> // jmx json
>     {
>     "name" : "Hadoop:service=JournalNode,name=Journal-nntest1",
>     "Syncs60sNumOps" : 0,
>     ...
>     },
>     {
>    "name" : "Hadoop:service=JournalNode,name=Journal-nntest2",
>    "Syncs60sNumOps" : 0,
>    ... 
>    }
> {code}
>  
> After this patch, journal' jmx :
>  
> {code:java}
> // jmx json
>     {
>     "name" : "Hadoop:service=JournalNode,name=Journal-nntest1",
>     "tag.JournalId" : "nntest1",  // add this tag
>     "Syncs60sNumOps" : 0,
>    ...
>     },
>     {
>    "name" : "Hadoop:service=JournalNode,name=Journal-nntest2", 
>     "tag.JournalId" : "nntest2",
>    "Syncs60sNumOps" : 0,
>   ... 
>     }
> {code}
>  
> *PrometheusSink*
> Before this patch, journal' prometheus export :
>  
> {code:java}
> journal_node_syncs60s_num_ops{context="dfs",hostname="host"} 2
> {code}
> After this patch, journal' prometheus export :
> {code:java}
> journal_node_syncs60s_num_ops{context="dfs",journalid="nntest2",hostname="host"}
>  2
> journal_node_syncs60s_num_ops{context="dfs",journalid="nntest1",hostname="host"}
>  75
> {code}
>  
>  
>  
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to