Hi @andra_nosa ,
you can try pulling a metric that contains the key requests and split the dimension accordingly.
Take e.g. following command (the output still has duplicates and is not well formatted, but contains only keyRequests)
curl -X GET "https://<tenant_id>/api/v2/metrics/query?metricSelector=builtin%3Aservice.keyRequest.cpu.perRequest%3AsplitBy%28%22dt.entity.service_method%22%29%3Aavg%3Aauto%3Asort%28value%28avg%2Cdescending%29%29" -H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token <token>" | tr 'dimension' '\n' | grep SERVICE_METHOD
Following metric query is being used here:
Hey did you checked this similar question mark solved already Solved: Re: Is there a way to get a list of all marked key requests & key user actions per tenant? -...
with Metrics v2 API and Key User action