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

ASF GitHub Bot logged work on HIVE-25959:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Feb/22 10:53
            Start Date: 17/Feb/22 10:53
    Worklog Time Spent: 10m 
      Work Description: vcsomor commented on a change in pull request #3032:
URL: https://github.com/apache/hive/pull/3032#discussion_r808916354



##########
File path: 
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/metrics/AcidMetricService.java
##########
@@ -93,12 +93,9 @@
 public class AcidMetricService implements MetastoreTaskThread {
 
   private static final Logger LOG = 
LoggerFactory.getLogger(AcidMetricService.class);
-  public static final String OBJECT_NAME_PREFIX = 
"metrics:type=compaction,name=";

Review comment:
       The `OBJECT_NAME_PREFIX` was only required for JMX exposure. Not needed 
at all for the json format. All the metrics following this pattern (see the 
below json).
   ```json
   {
       "version" : "1.0",
       "gauges" : {
         "compaction_num_workers" : {
           "value" : 0
         },
         "compaction_num_working" : {
           "value" : 0
         }
       },
       "mbeans" : {
         "compaction_num_active_deltas" : {
           "db.table1/partition2" : 1000,
           "db.table1/partition1" : 100
         },
         "compaction_num_obsolete_deltas" : {
           "db.table3/partition" : 300
         },
         "compaction_num_small_deltas" : {
           "db.table2/partition" : 200
         }
       }
   ```
   
   As you can see the type and all the name not required at all because it i 
defined by the object_key (e.g.: compaction_num_active_deltas).




-- 
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: 728841)
    Time Spent: 1h 10m  (was: 1h)

> Expose Compaction Observability delta metrics using the JsonReporter
> --------------------------------------------------------------------
>
>                 Key: HIVE-25959
>                 URL: https://issues.apache.org/jira/browse/HIVE-25959
>             Project: Hive
>          Issue Type: Improvement
>          Components: Metastore
>    Affects Versions: 4.0.0
>            Reporter: Viktor Csomor
>            Assignee: Viktor Csomor
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> As part of the HIVE-25897 the Delta metrics collection has been moved from 
> HiveServer2 to HMS. Hence the HMS does not have any jmx endpoint exposed by 
> default we'd like to expose these metrics through the JsonReporter



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to