Open chishui opened 1 month ago
Could you please check profile api if that satisfies your requirement. We have model level prediction count.
the count
field in profile API is the same with ml_action_request_count
of _ml/stats
, both measure the model level not the connector level
Is your feature request related to a problem? Today, the ML stats API only has total connector count metric, it doesn't report detailed connector invocation metrics. And the algorithm stats can't represent connector usage as for a single algorithm e.g. _predict, we could split docs into chunks and invoke connector multiple times and send multiple requests to remote server.
This connector metrics can help users to have a view on the count and success rate of the connector invocation. It also provides a way for us to have integration tests or end to end test to verify that we invoke the connector correctly.
What solution would you like? We can support new REST APIs:
/_plugins/_ml/connectors/stats
/_plugins/_ml/connectors/{connectorId}/stats
Whenever invoke a connector, record their count and failure count.
What alternatives have you considered? N/A
Do you have any additional context? N/A