Grafana Alloy / Promtail
Common parts of every card (states, backoff, Unit and ExecReload, Test config, manual commands) are described in Monitor window.
| Detected by | systemd units alloy, promtail or binaries alloy, promtail |
| Read every | 60 s while the Monitor window shows the tab |
| Active probe | yes, off by default |
| Test config | on demand |
What the card reads and shows
Section titled “What the card reads and shows”Grafana Alloy and Promtail: the components of Alloy’s configuration and their health, Promtail’s scrape jobs and clients with sent and dropped entries.
Passive: alloy and promtail processes. Alloy: the path after run of the first trusted alloy process of the expected account (a file or a directory of *.alloy files) or /etc/alloy/config.alloy, through the shared conf.awk (sep=eq): the top-level blocks (component name and label) and a closed list of attributes (endpoint.url, client.endpoint, url, forward_to, http/grpc listen address and port, logging level and format); never basic_auth, bearer_token, oauth2, headers or other attributes. A backtick (raw string, may span lines) stops the reading at its line. Promtail: -config.file or /etc/promtail/config.yml through yaml.awk: server listen address and port, positions.filename, clients[].url (no userinfo or query), scrape_configs[].job_name and static_configs[].labels.__path__.
Active (off by default): Alloy GET /-/ready and GET /api/v0/web/components (only localID, name, health.state, health.message per component) on --server.http.listen-addr (default 127.0.0.1:12345); Promtail GET /ready and GET /metrics (sent, dropped and request counters per client host) on server.http_listen_port. Both on the loopback through the shared HTTP helper, only when a trusted process of the agent holds the port. Never /-/reload, /api/v0/web/components/<id> or any POST.
Active probe
Section titled “Active probe”Runs: Alloy: GET /-/ready and GET /api/v0/web/components on –server.http.listen-addr (default 127.0.0.1:12345); Promtail: GET /ready and GET /metrics on server.http_listen_port; on 127.0.0.1/[::1] through the shared HTTP helper (trusted curl under env -i and GNU timeout, no proxy, no redirects), only when the port is held by the trusted process whose configuration was read. Never /-/reload, a single component’s page or a POST. Only component ids, names and health, and Promtail’s sent, dropped and request counters per client host leave the host
Traces on the host: four requests every 60 s; neither agent logs these requests by default
Test config
Section titled “Test config”What it does, as the card says: parses the file (syntax only: no components are built, nothing is evaluated or connected); the formatted file goes to /dev/null, only errors and the exit code are shown; never -w.
What it does, as the card says: checks the syntax of the configuration file and exits (-check-syntax); does not start targets, read positions or connect to clients.
Not offered when:
- Alloy reads a directory (<>), and alloy fmt checks one file