cameronlee314 opened a new pull request #1495:
URL: https://github.com/apache/samza/pull/1495


   Issues: In environments without an external metrics system, it is hard to 
access any metrics. It can be useful to have a MetricsReporter which logs 
metrics so that they can be accessed somewhere. This can be used to help verify 
certain flows are working.
   
   Changes: Added `LoggingMetricsReporter` which periodically logs metrics to a 
log file.
   
   Tests: Deployed a Samza job on my local machine and configured it to use the 
new reporter. Verified that logs showed some metrics.
   
   API changes and usage/upgrade instructions:
   Add a new metrics reporter in the config which uses 
`org.apache.samza.metrics.reporter.LoggingMetricsReporterFactory`.
   Example:
   `metrics.reporters=loggingReporter`
   
`metrics.reporter.loggingReporter.class=org.apache.samza.metrics.reporter.LoggingMetricsReporterFactory`
   `metrics.reporter.loggingReporter.log.regex=.*messages-read.*`


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to