freeswitch_exporter icon indicating copy to clipboard operation
freeswitch_exporter copied to clipboard

Freeswitch registration count

Open AvinashAnchula opened this issue 2 years ago • 4 comments

Does the exporter collects freeswitch registration count? Looks like currently it doesn't.

AvinashAnchula avatar Jul 14 '22 18:07 AvinashAnchula

Hello,

It does not at the moment, but it could be added easily.

Which command are you using on the CLI to fetch that information?

florentchauveau avatar Jul 15 '22 08:07 florentchauveau

This is the command fs_cli -x "show registrations". Do we need to add another entry in the collector.go same as below. image

AvinashAnchula avatar Jul 15 '22 13:07 AvinashAnchula

Yes, but the output needs to be parsed properly.

Could you provide me some samples? With different results. One with no results, one with some results and another one with different results.

Thanks

florentchauveau avatar Jul 15 '22 13:07 florentchauveau

Command : fs_cli -x "show registrations" Output fields : reg_user,realm,token,url,expires,network_ip,network_port,network_proto,hostname,metadata

Output is present in this format and metadata field is the "count of registrations" at the end.

AvinashAnchula avatar Jul 18 '22 15:07 AvinashAnchula