Closed PaulFarver closed 5 years ago
When a connection is lost without being properly terminated from the client, the exporter doesn't reflect that in it's "socket_io_connected" metric.
Incrementing and decrementing the gauge on "connect" and "disconnect" events causes the exporter to erroneously report more current connections.
Perhaps it would be better to rely on counting the clients connected to socketio, every time metrics are requested?
When a connection is lost without being properly terminated from the client, the exporter doesn't reflect that in it's "socket_io_connected" metric.
Incrementing and decrementing the gauge on "connect" and "disconnect" events causes the exporter to erroneously report more current connections.
Perhaps it would be better to rely on counting the clients connected to socketio, every time metrics are requested?