If Metrics and Grafana are disabled there should be zero traffic to grafana dot org, period

No one running Nethserver should be obligated to share any information with grafana, period.

Hi Fasttech, I understand your disappointment; it’s ugly behavior. Here’s a recap of what we’ve already discussed.

As you surely know, we run several components from Grafana.

As you surely know, there’s an open discussion here: Anyone else having connection issues with grafana dot org?

Some workarounds were suggested here: NS8 >> stats.grafana.org, including a fake /etc/hosts record for stats.grafana.org pointing to 0.0.0.0, or maybe 127.0.0.1, that we could ship in the Systemd app service units.

Issue filed here:

Three years old…

well…

Surely the bug is repeated lookups/traffic when there shouldn’t be, right? And if that’s the case, the DNS blocker doesn’t so much trigger the bug as make it visible. I think the question here is why those DNS queries are happening at all, not why they’re retried at a high rate.

DNS queries don’t, of course, prove that there’s any traffic going there; I’m sure there could be other reasons the software is looking up those addresses, even if I can’t think what they might be. But they seem to be a pretty strong indicator.

Hi Dan, Pike, you’re right, and my wording was imprecise.

The root cause is that Loki sends anonymous usage reports by default. Upstream reports that some versions keep doing so even with analytics.reporting_enabled: false, with or without a DNS blocker. A blocker only makes it visible and amplifies it, because the reporter retries several times after a failure, with a new lookup each time.

Keeping the default unchanged is a deliberate choice by the project: usage statistics are one of the few ways an open-source project like Grafana gets feedback, and sending them is how we support it. For administrators who don’t want to take part, #8210 adds a way to opt out, plus a workaround for the upstream bug, so no traffic leaves the node.

Deliberate or not, does it comply with GDPR? I thought it required that data collection be opt-in, not opt-out–though as I’m not subject to it I haven’t paid close attention to its requirements.

Fair question. I can’t give a legal answer, and the data controller there is Grafana Labs, not us. What I can point to is a description of what is sent: see this post and Grafana’s usage statistics page. In short, an anonymous cluster ID, version and runtime metadata, and aggregate stats, with no log content, labels, tenants or queries. If that’s a problem for your setup, #8210 adds an opt-out.

For ns8-metrics and ns8-loki there’s now a documented opt-out, available as a supported setting, so no manual hacks or hosts-file entries are needed:

The default behaviors are documented here: System requirements | NethServer 8 documentation

Thanks @davidep

Now: in which version of these “modules” the correction is available?

In case of existing module, the admin need to re-set the setting or is automatically honored at the module update?

In case of new installation of the module, the setting is for sharing data or for not sharing data? The latter is highly advised in my book.

In case of the reinstallation of the module, the previous setting are honored or wiped out?

[Comment generated by AI]

Hi Pike, good questions:

  1. Versions: ns8-loki 1.5.2 and ns8-metrics 1.6.0.
  2. Existing modules: updating does not change the behavior. Telemetry stays enabled until you opt out. Once you opt out, the setting survives later updates and reboots.
  3. New installations: telemetry is enabled by default, and this is a deliberate choice documented in System requirements. The opt-out procedure is in the README of each module.
  4. Reinstallation: a freshly installed module starts with the default, so you need to repeat the opt-out (for example, after switch-leader). I haven’t tested restoring Loki from backup, so after a restore please check the setting and re-apply it if needed. Metrics has no backup.