florentchauveau / kamailio_exporter

Prometheus exporter for Kamailio SIP server
MIT License
57 stars 19 forks source link

Added the 'core.tcp_info' command to the exporter #16

Closed karstenjakobsen closed 4 years ago

karstenjakobsen commented 4 years ago

The kamcmd core.tcp_info command will also retrieve some TLS connection stats. This is useful if you need information regarding TCP and TLS connections. Example:

{
    readers: 8
    max_connections: 4096
    max_tls_connections: 4096
    opened_connections: 595
    opened_tls_connections: 595
    write_queued_bytes: 0
}
florentchauveau commented 4 years ago

Hello @karstenjakobsen!

Thank you for this. I've merged the "tls.info" before, could you rebase and resubmit?

Best

florentchauveau commented 4 years ago

Also, if core.tcp_info is available without loading a specific module, it should be safe to add it as a default collector in main.go.

What do you think?

Don't forget to update the README.md, the section about default metrics, if you think we can enable it by default :)

karstenjakobsen commented 4 years ago

I have fixed conflicts and added core.tcp_info to main.go