We can use the monitoring dashboard to keep track of metrics for API performance, such as the number of successful and failed runs, size of runs etc.
This would require a "/metrics" endpoint that returns statistics in prometheus standard format
Approach:
create a module that provides a singleton service that keeps track of the various metrics via private variables. The module should declare a controller that exposes the metrics through an endpoint. The module should export a service that exposes methods to increment the counters.
There are probably libraries that make the output format easier
We can use the monitoring dashboard to keep track of metrics for API performance, such as the number of successful and failed runs, size of runs etc. This would require a "/metrics" endpoint that returns statistics in prometheus standard format
Approach:
create a module that provides a singleton service that keeps track of the various metrics via private variables. The module should declare a controller that exposes the metrics through an endpoint. The module should export a service that exposes methods to increment the counters.
There are probably libraries that make the output format easier