NS8 >> stats.grafana.org

NS8 produces massive DNS-requests to this subdomain.

Is it possible to disable this behavior on the NS8-Server?

Ps.:

core1 Knoten 1 3.4.1
ldapproxy1 Knoten 1 1.1.0
loki1 Knoten 1 1.2.2
samba1 Knoten 1 2.3.0
traefik1 Knoten 1 2.2.5
1 Like

Do you have Grafana installed on the NS8?

It seems some of it’s plugins want to send usage stats. It could also be loki…

EDIT:

Here are methods for disabling it for loki:

Thank you Markus
No, I don’t have installed Grafana.

As workaround I added 0.0.0.0 stats.grafana.org to /etc/hosts.

@davidep @stephdl
The dev’s should disable it by default. I am surprised that such a long-known mistake has not been corrected in the meantime.

Sincerely, Marko

1 Like

It can be disabled in loki:

runagent -m loki1

Edit loki config file:

nano ../loki-config.yaml

and add following content after auth-enabled: false:

analytics:
  reporting_enabled: false
  usage_stats_url: ""

Restart loki-server:

systemctl --user restart loki-server
2 Likes

I had already tried this also in the meantime.

root@daho-ns8:~# runagent -m loki1 podman exec -ti loki-server vi /etc/loki/local-config.yaml

But the loki-config.yaml is write-protected.

runagent -m loki1 podman exec -ti loki-server ls -sla /etc/loki/local-config.yaml
     4 -rw-r--r--    1 root     root          1835 Nov  5 07:46 /etc/loki/local-config.yaml
1 Like

You’re running it from inside the container.
The loki container by default doesn’t login as root user when using podman exec. You could use podman exec -ti --user 0:0 loki-server sh to enter as root, then the file should be writable.
But that’s not necessary, the config file is in /home/loki1/.config/loki-config.yaml, it should work as in the instructions I posted.

In one line:

runagent -m loki1 nano ../loki-config.yaml

1 Like

Ahhhh. Thank you!
So I was almost on the right track. But only almost. :rofl:

I summarize:

runagent -m loki1 nano /home/loki1/.config/loki-config.yaml

auth_enabled: false

analytics:
  reporting_enabled: false
  usage_stats_url: ""

Restart loki-server:

runagent -m loki1 systemctl --user restart loki-server
1 Like

You’re welcome, please report if it worked.

It was the right way but this is a special case.

I can confirm, it works.

1 Like

same problem here but the workaround leads to
File “/usr/local/bin/runagent”, line 92, in
os.execvp(args.COMMAND, [args.COMMAND] + args.ARGS)
File “”, line 574, in execvp
File “”, line 616, in _execvpe
File “”, line 607, in _execvpe
FileNotFoundError: [Errno 2] No such file or directory
any other ideas?

and now, the problem is back

I added …

analytics:
  reporting_enabled: false
  usage_stats_url: ""

…again and only left out auth_enabled: false, because it is already in the first line

1 Like

same error here, insane dns questions like i post in this link:

@hucky

Why are you using IPv6 for this query?
Or you’re not aware your server is partially using IPv6?

My 2 cents
Andy

I corrected my post as it was misleading.

@hucky please try this to get rid of the queries: NS8 >> stats.grafana.org - #4 by mrmarkuz

3 Likes

i had to reverse this to get logs working again in the cluster_admin after the last core (3.6.0) update

1 Like

at my side, with the workaround from post #4 it did not work, grafana spams again my protokoll

2025-05-04 12:47:37 A stats.grafana.org sogo.domain.de 4.5 µs
2025-05-04 12:47:37 AAAA stats.grafana.org sogo.domain.de 11.4 µs
2025-05-04 12:47:29 A stats.grafana.org sogo.domain.de 4.1 µs
2025-05-04 12:47:29 AAAA stats.grafana.org sogo.domain.de 11.4 µs
2025-05-04 12:47:27 A stats.grafana.org sogo.domain.de 5.0 µs
2025-05-04 12:47:27 AAAA stats.grafana.org sogo.domain.de 12.4 µs
2025-05-04 12:47:25 A stats.grafana.org sogo.domain.de 4.5 µs
2025-05-04 12:47:25 AAAA stats.grafana.org sogo.domain.de 11.4 µs
1 Like

same at me. I assume that the adjustments will be overwritten during updates.

1 Like

i did the same again how @mrmarkuz described it at #4 but it does not work

It works for me. The DNS-requests stops.

loki1@daho-ns8:~/.config/state$ cat ../loki-config.yaml
auth_enabled: false
analytics:
  reporting_enabled: false
  usage_stats_url: ""

server:
  http_listen_port: 3100
...
...
...
1 Like

@capote thank you, will have a look at it, maybe i had an error.