[OpenSIPS-Users] Erasing statistics groups from memory
Bogdan-Andrei Iancu
bogdan at opensips.org
Tue Dec 6 11:25:39 UTC 2022
Hi Wadii,
No, you cannot purge an existing stat (even if it was dynamically
created). Maybe you should use something else for storing the cps data,
like the local cache.
https://www.opensips.org/Documentation/Script-CoreFunctions-3-2#cache_store
https://opensips.org/html/docs/modules/3.2.x/cachedb_local.html
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
https://www.opensips-solutions.com
OpenSIPS Bootcamp 5-16 Dec 2022, online
https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/
On 12/2/22 3:56 PM, Wadii ELMAJDI | Evenmedia wrote:
>
> Hello,
>
> I am using statistics module to store CPS data on demand (via an
> external variable shv_set), keys are current seconds ,example :
>
> opensips-cli -x mi get_statistics cps:
>
> {
>
> "cps:2:20221202143557": 1,
>
> "cps:2:20221202143613": 1,
>
> "cps:2:20221202143616": 1
>
> }
>
>
> The data is stored on the server memory, and then reset via a
> time_route everyday (reset_stat) which updates the counters to 0 but
> the keys persist on my server.
> Is there anyway to erase those keys from the memory “cps:2….” Without
> restarting my server ?
> I know I can use an external Redis or MYSQL servers for such purpose ,
> but I’m trying as much as possible to keep everything inside opensips.
>
> Thank you
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20221206/6e1bff0d/attachment.html>
More information about the Users
mailing list