STORDIS / monsoon

SONiC monitoring system supplies SONiC telemetry data.
Apache License 2.0
35 stars 10 forks source link

docs(README): Add `enable_gzip` env variable to Grafana docker command #51

Closed pano9000 closed 1 year ago

pano9000 commented 1 year ago

Hello,

I've added a small portion to the docker command for the Grafana installation, that enables HTTP gzip compression in Grafana.

The setting is disabled by default in Grafana "for compatibility reason", but the official docs recommend to set it to true https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#enable_gzip

Enabling this significantly slashes the size of the transferred data, especially for the huge JSON data. E.g. the data from the "Network Traffic" query in "Node Exporter Full" dashboard currently produces a 2MB JSON file, when uncompressed. When you compress it with gzip this gets slashed down to ~33KB (with the "fastest" compression level).

So that is a sensible default that should be enabled by default :-)

Tested locally with the docker image and the Grafana "TestData" datasource.