Arber Katellari
unread,Jan 21, 2025, 4:58:51 AMJan 21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CGRateS
Hello,
To count processed requests per second, you can use a StatS profile, which, depending on your needs, can count how many specific or all requests coming from modules connected to StatS are processed. Here is an example:
{ "method": "APIerSv1.SetStatQueueProfile", "params": [{ "ID": "Count_Processed_RPS", "QueueLength": 0, "TTL": 1000000000, "MinItems": 0, "Metrics": [{"MetricID": "*sum#1" }] }], "id": 1 }
After you set that profile and start sending requests, at any point you can call {"method":"StatSv1.GetQueueStringMetrics","params":[{"Tenant":"","ID":"Count_Processed_RPS","APIOpts":{}}],"id":3} and see how many requests were processed in the last second.
About your Redis latency question, we don't have any tools that measure that, but you can most likely measure this latency by looking at stats of most packet tracing tools. For example, you can start packet tracing and use an APIerSv1.GetAccount API, which gets to Redis, collects needed data and replies back to CGRateS after, and see in the packet tracer how much time it took to do that.
Kind regards,
Arber