memgraph / memgraph-platform

Memgraph Platform is a multi-container application containing Memgraph+MAGE and Memgraph Lab.
Apache License 2.0
21 stars 1 forks source link

Disabling telemetry on the lab docker image #104

Open Zzz-ams opened 1 week ago

Zzz-ams commented 1 week ago

Hello,

I am seeing google telemetry in the frontend, when running it through the lab docker image. Is there a easy way to disable that telemetry?

For the memgraph mage docker image, there is the command to disable it with --telemetry-enabled=false

https://region1.analytics.google.com/
katarinasupe commented 1 week ago

Hi @Zzz-ams, you can find this in the Memgraph Lab settings (starting with v2.18). It will be saved in the browser storage for future usage (same host:port).

Screenshot 2024-11-20 at 10 29 12

I hope that helps :D

Zzz-ams commented 1 week ago

Hey, thanks.

Is there a way to do that through environment variables of the docker image, or a configuration change in the docker image?

Also I am still seeing analytics calls in the network after those have been unchecked. Is that a bug?

(With the following image: docker.io/memgraph/lab latest 5a0ee2b799a8 12 days ago)

tonilastre commented 1 week ago

Hmm, I am curious if it is a cache thing or not. Can you try with hard refresh or see how it works in incognito mode (fresh mode - you will need to untick the boxes in the settings again because of the fresh state)?

Re: env variable setup - this is a good suggestion! We will add it to our backlog!

Zzz-ams commented 1 week ago

Hmm. Might have been a cache thing.

Thanks.


Also a hacky solution can be removing the address of the analytics.

FROM docker.io/memgraph/lab:latest

RUN sed -i -e "s@https://cdn.segment.com/analytics.js/v1/@/@" /home/lab/dist-backend/index.js
EXPOSE 3000
CMD ["node", "dist-backend/index.js"]