Alloy
Module: observability. One runs on every server of the installation.
What it does
Section titled “What it does”Grafana Alloy is an open-sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. collector of logs and metrics. In Government Data, each server runs its own Alloy, which:
- reads the logs of every service on that server and sends them to Loki;
- reads the server’s own metrics, CPUCentral processing unit A server's processor; the installer asks for at least 2., memory, load, disks, network, clock and boot time, and sends them to Mimir;
- collects the metrics that services publish, such as Traefik’s, and sends them to Mimir too.
The command that adds a server to the installation also sets up its Alloy, so a new server shows in Grafana once it joins.
The least access that works
Section titled “The least access that works”Alloy runs in a container with no more access than it needs: it reads only the disks it watches (Docker’s, the database’s, the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.’s drives…), read-only, and the server’s network counters, not the rest of the server. It keeps a short list of metrics and drops the rest, and no label carries a path or a name that a person chose.
How it talks to the rest
Section titled “How it talks to the rest”| With | How |
|---|---|
| Loki, Mimir | It pushes over HTTPSHypertext Transfer Protocol Secure The secure web protocol: the product is reached over it, with the certificate the installer makes. with the server’s certificate (see Mutual TLS) |
| The services’ metrics | It reads them with the server’s certificate |
| The organisation’s own log system | Optionally, it can also forward the logs, by syslog or OpenTelemetry |
Where its data lives
Section titled “Where its data lives”Nowhere of its own beyond a small buffer: what it collects goes to Loki and Mimir, in the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources..
Government Data · Guide v0.8.1