defenseunicorns / uds-core

A secure runtime platform for mission-critical capabilities
https://uds.defenseunicorns.com
Apache License 2.0
34 stars 12 forks source link

Disable loki external analytics reporting #487

Open blancharda opened 1 week ago

blancharda commented 1 week ago

Is your feature request related to a problem? Please describe.

Loki is attempting to phone home.

Glancing at the logs for loki in an environment with limited public egress, we're seeing a lot of these:

msg="failed to send usage report" retries=3 err="Post \"https://stats.grafana.org/loki-usage-report\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"

It seems that our default uds-core install is sending (or attempting to send) a usage report back to grafana.

Describe the solution you'd like

Ideally we would disable this by default in uds-core.

Describe alternatives you've considered

Alternatively, we should at least provide clear documentation on how to disable this feature in a downstream bundle.

mjnagel commented 1 week ago

Definitely preferable to disable this by default, I believe we have telemetry/analytics disabled for NeuVector currently. We should likely review Grafana and Loki since both may have a similar analytics behavior.