Skip to content

Commit c3823a8

Browse files
authored
[API-537] Add support for the binary metrics (#441)
* Add support for the binary metrics Implemented the mechanism to compress the metrics we collect in a way that is compatible with the server-side. With this change, the latest Management Center versions are able to show statistics regarding the Python client. For backward compatibility, we also continue sending metrics in a comma separated key-value format (client attributes). In this PR, I also significantly cleaned up the statistics service. In the old code, we were trying to reuse the results of some calls. In the benchmarks I did, I saw that it didn't really improve much. (New approach approx. 0.5 ms, old approach approx. 0.4 ms per statistics collection) This really small difference does not justify the need for complexity so I went with the simpler approach. Also, aligned the log levels with the Java client for the various warnings. Also, bumped the version of psutil to 5.8.0. * address review comments
1 parent 8de9c36 commit c3823a8

File tree

9 files changed

+965
-228
lines changed

9 files changed

+965
-228
lines changed

docs/using_python_client_with_hazelcast_imdg.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2352,10 +2352,6 @@ section <https://docs.hazelcast.org/docs/management-center/latest/manual/html/in
23522352
in the Hazelcast Management Center Reference Manual for more information
23532353
on the client statistics.
23542354
2355-
.. Note:: Statistics sent by Hazelcast Python client 4.0 are compatible
2356-
with Management Center 4.0. Management Center 4.2020.08 and newer
2357-
versions will be supported in later versions of the client.
2358-
23592355
Logging Configuration
23602356
~~~~~~~~~~~~~~~~~~~~~
23612357

0 commit comments

Comments
 (0)