Is there a prebuild processor/component which captures no. of records processed through stages and other logging events ? We have requirements to capture no. of records processed and other logging events and possibly store them to log files/MySQL stages
Logging mechanism for Data Transformer and Data Collector pipelines
Best answer by Giuseppe Mura
HI
/jobrunner/rest/v1/metrics/job/{jobId}
You can find the API from the Help menu, the little question mark icon in the toolbar at the top of the page.
When you call the metrics API you get a json document back which contains a number of objects, one is the “counters” which contains the information you’re after, including the following, for pipeline level inputs/outputs:
- pipeline.batchInputRecords.counter
- pipeline.batchOutputRecords.counter
- pipeline.batchErrorRecords.counter
You’ll also find stage level counters in there, if you need to retrieve information at stage level.
In terms of consuming the API, you can use your tool of choice, or indeed build a simple Data Collector pipeline to source from it and write any metrics you’re interested in to logs or MySQL as required.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.