iopsystems / rezolus

Systems performance telemetry
Other
63 stars 9 forks source link

make http compression dependent on client headers #337

Closed brayniac closed 2 months ago

brayniac commented 2 months ago

Problem

Previously, compression for the HTTP payload was controlled by the configuration file and did not respect client accept headers. This meant that when using curl to read the metrics endpoint, you'd have to know if compression was enabled or not for the running Rezolus instance.

Solution

Switch from warp to axum so we can easily allow the client to negotiate whether compression should be used.

Note, we also drop the hardware_info endpoint in this PR.

Result

Simpler configuration of Rezolus and better experience when manually interfacing with the metrics endpoints.