----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/75014/ -----------------------------------------------------------
(Updated May 28, 2024, 1:40 p.m.) Review request for atlas, Mandar Ambawane and Pinal Shah. Bugs: ATLAS-4867 https://issues.apache.org/jira/browse/ATLAS-4867 Repository: atlas Description ------- Metrics API : http://<>/api/atlas/admin/metrics 1. There is some information in the Metrics API response, which is not been used like Count of the typeAndSubTypes, Active, deleted, Shell Approach: Identify time taken by the above counts Take reading of metric api Take reading of metric api without the above counts 2. Also we can get the total number of count of vertices and edges present in graph This helps in estimating the time on Reindexing Patch. Also it may be helpful while debugging the escalations Approach: Embed this count in MetricUtil Or Create seperate API Diffs ----- dashboardv2/public/js/templates/site/Statistics_Timeline_tmlp.html 09f76a0a8 dashboardv2/public/js/utils/Enums.js 00bbe103d dashboardv2/public/js/views/site/StatisticsTimelineView.js d7caa60e7 dashboardv3/public/js/templates/site/Statistics_Timeline_tmlp.html 09f76a0a8 dashboardv3/public/js/utils/Enums.js 00bbe103d dashboardv3/public/js/views/site/StatisticsTimelineView.js d7caa60e7 graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/AtlasJanusGraph.java 004cab9c8 intg/src/main/java/org/apache/atlas/model/metrics/AtlasMetrics.java c968302b7 repository/src/main/java/org/apache/atlas/services/MetricsService.java 9ec2cd2cb repository/src/main/java/org/apache/atlas/util/AtlasMetricsUtil.java a13e07387 Diff: https://reviews.apache.org/r/75014/diff/1/ Testing (updated) ------- With typeAndSubTypes data it took 217ms for Metric API Without typeAndSubTypes data, it took 180ms for Metric API Without typeAndSubTypes and include the graph vertex and edge count took almost 300++ ms Also Vertex and Edge count include in Statstics UI > Server Statstics > Graph Details Thanks, Paresh Devalia