Open chishui opened 6 months 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
@ylwu-amzn @dhrubo-os I can pick this up if nobody is going to
Whenever invoke a connector, record their count and failure count.
How are you planning to persist this information? In memory or in index?
Is there customer ask for this feature? I'm just wondering if that could be a redundant information?
We have model prediction count in the stats api. Does that satisfy this need?
After we measure the model prediction count here, documents could be chunked and there could be multiple requests sent to remote ML servers for a single prediction action. With ml/stats and profile API, we could only get prediction number, the actual number that we invoke connector is missing.
Is there customer ask for this feature?
I didn't see a customer asking for this feature. I personally feel this is an important information which is not provided yet. User can have a sense on how many times connectors are invoked or failed.
How are you planning to persist this information? In memory or in index?
Need a design, maybe it's more appropriate to be part of the current _ml/stats API or profile API
Can you assign this to me please?
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