-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/70495/
-----------------------------------------------------------

Review request for atlas, Ashutosh Mestry, Aadarsh Jajodia, keval bhatt, 
Sridhar K, Le Ma, Nikhil Bonte, Nixon Rodrigues, and Sarath Subramanian.


Bugs: ATLAS-3147
    https://issues.apache.org/jira/browse/ATLAS-3147


Repository: atlas


Description
-------

added periodic logging of stats


Diffs
-----

  repository/src/main/java/org/apache/atlas/util/AtlasMetricsCounter.java 
acf9e34ff 
  
webapp/src/main/java/org/apache/atlas/notification/NotificationHookConsumer.java
 fcfbd21fb 


Diff: https://reviews.apache.org/r/70495/diff/1/


Testing
-------

Verified that stats, as shown below, are logged in Atlas server log file every 
hour.

2019-04-17 19:00:00,164 INFO  - [NotificationHookConsumer thread-0:] ~ STATS: 
{"Notification:lastMessageProcessedTime":1555527600150,"Notification:currentDayEntityUpdates":3594,"Notification:currentDayFailed":0,"Notification:currentHourStartTime":1555527600000,"Notification:previousDayEntityCreates":0,"Notification:currentHourAvgTime":565,"Notification:previousHour":1512,"Notification:totalUpdates":3594,"Notification:previousHourEntityUpdates":3593,"Server:statusIndexStore":"connected","Notification:offsetStart":0,"Notification:totalAvgTime":2116,"Notification:currentDayEntityDeletes":0,"Notification:currentHourEntityCreates":30,"Notification:totalDeletes":0,"Notification:previousHourEntityDeletes":0,"Server:startTimeStamp":1555524379689,"Notification:previousHourEntityCreates":127965,"Notification:currentDayStartTime":1555459200000,"Server:upTime":"53
 min 40 
sec","Notification:currentDay":1513,"Notification:currentHourEntityUpdates":1,"Notification:currentHour":1,"Notification:total
 
Failed":0,"Notification:currentDayEntityCreates":127995,"Notification:currentHourEntityDeletes":0,"Server:statusBackendStore":"connected","Notification:totalCreates":127995,"Notification:previousDayEntityUpdates":0,"Notification:currentHourFailed":0,"Notification:currentDayAvgTime":2116,"Notification:previousHourFailed":0,"Notification:total":1513,"Notification:previousDayEntityDeletes":0,"Server:activeTimeStamp":1555524379689,"Notification:previousDay":0,"Notification:offsetCurrent":1512,"Notification:previousHourAvgTime":2117,"Notification:previousDayFailed":0,"Notification:previousDayAvgTime":0}
 (NotificationHookConsumer:723)


Thanks,

Madhan Neethiraj

Reply via email to