How Alloy sends logs to Loki in infrastructure you control
Grafana Alloy is Grafana's supported log shipper for Loki. It is a vendor-neutral distribution of the OpenTelemetry Collector, so a team that moves logs from servers, containers or Kubernetes into self-hosted Loki is choosing a collector that runs inside its own infrastructure and reads logs from files, journals, container runtimes and the Kubernetes API, then pushes them to a Loki write endpoint. Alloy sits between the sources and Loki as a pipeline of components: discovery and source components read the logs, processing components parse, relabel and filter them, and a writer component sends them to Loki. The same pipeline model covers the other source types covered elsewhere on this page, so one shipper can serve a mixed estate.
Loki is not tied to Alloy. It also ingests OpenTelemetry logs over HTTP, and it accepts logs from Fluent Bit, Fluentd and the Docker logging driver. Those are reasonable choices when a team already runs one of them, but the decision should be made on the estate you have, not on habit. Promtail, the agent many older Loki setups use, reached end of life on March 2, 2026, with no further updates or commercial support, and Grafana directs Promtail users to Alloy. If your estate still runs Promtail, plan the replacement as part of the initial design rather than leaving it for later. Confirm which shipper your existing sources support before you commit, and check the current Alloy release notes for the components you plan to use, since component stability varies.
Before you build the pipeline, decide three things: which hosts or clusters run Alloy and with what privileges, where the Loki write endpoint sits and how Alloy authenticates to it, and which labels Alloy attaches at the edge. Alloy needs read access to the log sources it collects, so the service account and group memberships should be set by design, not by trial and error. If Loki runs with multi-tenancy enabled, each Alloy pipeline must send the tenant identifier that the reverse proxy and Loki expect, and Loki has no built-in authentication layer, so the write path must go through an authenticating proxy you operate. Ask your implementation partner or internal team to confirm these choices in writing against your own environment before the first pipeline is deployed.
What you need before building Alloy pipelines for Loki
Alloy pipelines are only as good as the Loki cluster they write to and the path sources have to reach it. Work through these five areas before writing a single component, because tenant design, the authentication layer and storage choices are hard to change once logs are flowing.
Loki tenancy and the tenant header
Decide whether Loki runs with auth_enabled set to true. When it is, every write from Alloy must carry the X-Scope-OrgID header, so the tenant ID is set on each pipeline and must match what your query side expects. Agree the tenant naming scheme with the teams that will read logs before the first push, since renaming tenants later means migrating or abandoning data. Confirm the header setup in the Loki multi-tenancy documentation.
Authenticating reverse proxy
Loki has no built-in authentication layer, so a reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium must sit in front of the push endpoint and the query endpoints. Alloy will authenticate to that proxy, which means you need to choose the credential method (basic auth, bearer token or an OIDC-based flow) and make sure Alloy can present it. Plan this with your identity team rather than leaving the push path open.
Loki authentication docsObject storage backend
Loki stores compressed chunks and its index in object storage, and the recommended production targets are Amazon S3, Google Cloud Storage and Azure Blob Storage. S3-compatible stores and the local filesystem are supported but are not typically recommended for production. Confirm the bucket, credentials and the TSDB index configuration exist and are reachable from the Loki write components before Alloy starts sending data, because failed chunk writes surface as ingestion errors on the Alloy side.
Loki storage docsAlloy release channel and target
Pick the Alloy version from the release channel and confirm it against the Grafana release notes at the time you build, because versions move quickly and this page does not fix one. Decide whether Alloy runs on Linux or Windows hosts, or as a DaemonSet on Kubernetes. The target changes how you mount log paths, grant read permissions and manage configuration rollouts, so settle it before writing component blocks.
Network paths and TLS certificates
Map every source to the Loki push endpoint and list the firewall rules, proxies and DNS names each path crosses. Each hop that terminates TLS needs a certificate that clients trust, including internal certificate authorities that must be added to Alloy's trust store. Check certificate expiry and renewal ownership for the push endpoint, since an expired certificate stops all ingestion at once and the error often appears only as failed writes.
Configure Alloy to ship logs to Loki in six steps
This sequence takes a host or cluster from no log shipping to a verified Alloy pipeline that sends labeled, tenant-scoped streams to self-hosted Loki. Each step ends with a check you can run before moving on.
Install Grafana Alloy on the target hosts
Your platform or operations team installs Grafana Alloy on the hosts or nodes that produce logs, using the package or image method your change process allows. Confirm the installed version matches the release your team has approved, and that the Alloy service starts under a dedicated service account. Done means the Alloy HTTP UI loads on its default local port and reports the configuration file as loaded, even though no pipeline is sending data yet.
Define the log source component
Write the first pipeline stage in the Alloy configuration, choosing a source that matches the logs you need, such as a local file component for application log files or a journal component for systemd units on Linux. Set the labels you intend to keep, for example host, environment and job, and avoid attaching values that change on every line. Confirm the service account can read the log path or journal, because a missing permission can produce no data and no error. Done means the component appears as healthy in the Alloy component view with a non-zero read count after a test log line is written.
Add processing stages for parsing and relabeling
Add processing components that parse the log format, extract the few fields that belong in labels, and move everything else into structured metadata or the log line. Keep the set of label names small and fixed, because each new combination of label values creates a new stream in Loki. Review the rules with the team that owns the applications so the labels match how people will search. Done means a sample log line passes through the stages and the component view shows the expected label set on the output.
Configure the loki.write component with tenant and endpoint
Define a loki.write component that points at your Loki push endpoint and sets the X-Scope-OrgID tenant header when your Loki cluster has multi-tenancy enabled. Choose tenant values with the team that owns access control, and confirm the endpoint is reachable from the hosts over the network path your security team approved. Store any credentials for the endpoint in a secret store or Alloy's secret handling rather than in plain text in the file. Done means the loki.write component reports successful sends and the Alloy logs show no repeated push errors.
Add rate limiting for noisy streams
Add a limit stage or tune the write settings so one chatty service cannot flood the pipeline or exhaust the tenant's ingestion limits. Agree the limit values with the owners of the noisy source, and confirm them against the per-tenant limits set on the Loki side, since those limits are enforced by Loki as well. Test with a deliberate burst of lines and watch the dropped or rejected counts in the component view. Done means the burst is handled within the agreed limits and normal streams keep flowing.
Deploy Alloy and verify streams in Grafana
Roll the configuration out to all target hosts or deploy Alloy as a DaemonSet on Kubernetes, using your standard configuration management or Helm process. After rollout, run a LogQL query in Grafana Explore filtered on the labels you defined, for example by host and job, and confirm that the returned streams match the expected labels and that recent lines appear. Also check the Alloy component status on each node for healthy exports. Done means every target host appears as a stream in Loki, and the query results match the label design agreed in the earlier steps.
Which labels to set at the edge and which to leave out
Loki indexes labels, not the log text, so every distinct combination of label values creates a stream, and the number of streams is what drives index size, ingestion overhead and query fan-out. The label decisions you make inside Alloy are therefore the cheapest cost control you have, because they apply before data reaches the write path. Treat labels as a small, fixed vocabulary that describes where a log came from and what kind of system produced it, and make the Alloy pipeline enforce that vocabulary rather than trusting every source to behave. In practice, the relabeling stage in components such as discovery.relabel or the stage.labels block of a log pipeline is where you keep cluster, namespace, host, job and similar stable values and discard everything else. Confirm the exact component names and their behavior against the Alloy version you deploy, since the component reference changes between releases.
The harder decision is what to do with values that vary on every request or every event, such as request IDs, trace IDs, user identifiers and client IP addresses. Making any of these a label creates a new stream for each unique value, which is the fastest way to overload ingesters and degrade queries. Instead, keep them in the log line where they can be filtered with LogQL, or pull them into structured metadata when they need to be filtered without parsing the line. Structured metadata is attached to each entry rather than indexed as a stream label, so it does not multiply streams in the same way. Whether a given field belongs in the body or in structured metadata depends on how often your team filters on it, and that is a question to settle with the people who write the queries before the pipeline is built. Check the structured metadata and limits settings in your Loki version, because defaults and their enforcement have changed over time.
Running Alloy on hosts or as a Kubernetes DaemonSet
On Linux or Windows hosts, Alloy runs as a system service and reads log files, journald or Windows Event Log channels directly from the machine. The privilege question is the main design decision: Alloy needs read access to each source it collects, and most of that access comes from group membership or ACLs rather than root. A file it cannot open is often skipped quietly, so the service account must be tested against every source before rollout.
- Dedicated service account: Run Alloy under its own non-login account and grant read access to specific log paths, instead of running the service as root.
- Log file permissions: Confirm that the account can traverse the parent directories and read files that rotate, since rotated files often change owner or mode.
- Journald and event sources: Journal access depends on group membership in the distribution, and Windows channels depend on the Event Log reader rights. Confirm both in the Alloy docs for your version.
- Configuration and secrets: Keep the configuration file readable only by the service account and admins, and store the Loki write credentials outside world-readable paths.
- Service management: Use the package-provided unit or Windows service definition, and confirm the restart behavior and the data directory location for your release.
Before rollout, check the Alloy version's installation and component reference pages, because service file names, paths and group requirements change between releases.
On Kubernetes, Alloy is usually deployed as a DaemonSet so that one pod runs on each node and reads container log files from the node's file system. This needs host path mounts for the container log directories, a service account that can read pod metadata for labels, and a security context that permits the file access without granting broad cluster rights. The node-level read access is the privilege that reviewers will examine first.
- Host path mounts: Mount the node's container log directory read-only into the pod, and confirm the path used by your container runtime and Kubernetes version.
- Service account and RBAC: Grant only the get, list and watch verbs on the resources Alloy needs for discovery, such as pods and namespaces, bound to a namespace-scoped role where possible.
- Security context: Avoid privileged containers. Confirm whether your Alloy version and cluster policy require a specific user, group or read permission on the mounted log files.
- Tolerations and scheduling: Set tolerations so the DaemonSet also runs on tainted nodes such as control plane or dedicated pools, or those nodes' logs will be missing.
- Pod Security admission: Check that the namespace's policy level allows host path volumes, and document any exception for the security review.
For the Kubernetes Monitoring Helm chart or manual manifests, confirm the chart and Alloy versions together in the Alloy and Kubernetes documentation before you copy any example configuration.
In the gateway pattern, lightweight agents on hosts or nodes forward logs over the network to one or more central Alloy instances, which then write to Loki. This reduces the number of places that hold Loki credentials and centralizes processing such as relabeling and rate limiting. The trade-off is that the gateway becomes a shared dependency, and its network, authentication and buffering needs must be planned before agents depend on it.
- Transport and authentication: Agents should send to the gateway over TLS with client authentication. Alloy supports authenticator extensions from the OpenTelemetry Collector model, so confirm which options your Alloy release exposes.
- Privilege split: Agents keep file read access, while the gateway holds only the Loki write credentials and needs no access to host log files.
- Capacity and buffering: Size the gateway for peak throughput from all agents combined, and confirm how it behaves when Loki is slow or unreachable, since queued data can exhaust memory.
- Labeling consistency: Decide whether labels are set at the agent or the gateway, so that the same stream does not receive different labels from different paths.
- Failure domains: Run more than one gateway instance behind a stable address if losing the gateway would stop all log shipping.
Before choosing this pattern, confirm the receiver, exporter and authentication component names and their stability level in the Alloy and OpenTelemetry Collector documentation for your version.
How log lines move from sources through Alloy into Loki
The path starts at log sources on the host: files, the systemd journal, container logs and syslog listeners. Alloy discovers and reads them, then processing, relabeling and rate limiting components shape each stream before loki.write sends it onward. Requests pass through an authenticating reverse proxy at the trust boundary, which must set the X-Scope-OrgID header that Loki's distributor uses to pick the tenant. Check the tenant header at each hop, because a missing or wrong value is the most common way logs land in the wrong place or disappear.
Log flow from host sources through Alloy and a reverse proxy to Loki's distributor.
Handling noisy streams and dropped logs
How do I drop debug log lines at the edge before they reach Loki?
Filter them in Alloy with a processing component before the writer sends anything to Loki. Alloy's log processing stages can match lines by level or content and drop them, so the bytes never leave the host. Start by listing which levels and message patterns your teams never query, then match those exactly. Keep a sample of dropped lines in a short-lived debug pipeline or a local file so you can prove nothing important was removed. Filtering at the edge saves ingestion and storage cost, but it is irreversible for those lines, so agree the rules with the application owners first. Ask the engineer who owns each service which levels they rely on during incidents before you deploy the rule.
How can I cap how many logs one chatty source sends to Loki?
Apply a rate limit in the Alloy pipeline for that source so excess lines are dropped or delayed before they are written. Alloy can limit throughput per component, which lets you protect the cluster from one runaway container or host without changing the others. Choose the cap from observed volume over a normal week, not from a guess, and leave headroom for legitimate spikes such as deployments. Pair the cap with a metric or periodic log line that counts discarded lines, so the loss is visible. A cap set too low silently hides the incident you most need, so review it after each major release. The owning team should agree to the cap before it goes live.
How do I detect when Loki rejects log samples for rate or stream limits?
Watch the write path on both sides. Alloy reports the status of its Loki writer, and rejected requests show up as errors or retries in its own telemetry, while Loki's distributor exposes metrics for discarded samples and the reason for each discard. Alert on sustained growth in discarded samples and on writer retries rather than on single events. The reason label matters: rate limit, per-stream limit, line too long and out-of-order entries each point to a different fix. Confirm the exact metric names and labels in the Loki monitoring documentation for your version, since they change between releases. Without these alerts, rejections look like a quiet gap in the logs days later.
How do per-tenant limits in Loki interact with what Alloy sends?
Loki enforces its limits on the tenant identified by the X-Scope-OrgID header, and Alloy's own settings cannot raise them. When multi-tenancy is enabled, Alloy must set the tenant ID on each write, and every stream it sends counts against that tenant's ingestion rate, burst size and per-stream limits. If Alloy sends more than the tenant allows, Loki rejects the excess regardless of how Alloy is tuned, so both sides must be sized together. Alloy's client-side rate limiting protects Loki from overload, but it does not replace the tenant limits that Loki operators set. Ask your Loki operators for the current per-tenant values before you set Alloy caps, and document which team owns each number.
Should I filter noisy logs in Alloy or in Loki?
Filter in Alloy when you know the lines are never needed, because dropping them at the edge saves network traffic, ingestion capacity and storage. Filter in Loki or Grafana when the decision must be reversible, such as while you are still learning what teams query. Loki's own limits can reject excess data, but they do not select which lines to keep, so they are a safety net rather than a content policy. Many teams start with broad retention and move the drop rules to the edge once usage is known. Whatever you choose, record the rule, its owner and the reason, because auditors and incident responders will ask why certain lines are missing.
Can dropping logs at the edge create a compliance or audit problem?
It can, if the dropped lines are records your organization is required to keep. Security and audit logging requirements usually specify which events must be retained and for how long, so an edge filter that removes authentication failures or administrative actions could breach them. Before writing drop rules, map each category of log to its retention obligation, and exclude required categories from any filter or rate cap. Keep the rule set under change control so you can show what was dropped, when, and why. Confirm the requirements with your compliance lead rather than assuming a general log retention practice is enough.
How much does it cost to manage noisy streams and dropped logs?
The cost is mostly engineering time to design rules, test them and keep them current, plus the operating cost of the cluster that stores what you keep. Filtering reduces storage and ingestion, but only if you measure volume before and after each rule. One-time work includes profiling sources, writing and testing pipelines, and setting alerts. Recurring work includes reviewing caps after releases and handling tenant limit changes. A quote should state which sources are in scope, how many pipelines and rules are included, who signs off on dropped categories, and how retesting after upgrades is handled. DeployOpen quotes follow from a written scope, so ask for that scope in writing.
Can our own team handle noisy stream tuning without outside help?
Yes, if you have an engineer who can read Alloy configuration, a Loki operator who owns the tenant limits, and an agreed owner for each log category. The hard part is coordination, not syntax: deciding which lines may be dropped, setting caps without hiding incidents, and proving that required logs survive. Teams that lack one of those roles often find that rules were added during an incident and never reviewed. An outside partner can take on the profiling, rule design, testing and alert setup under a written scope, then hand over the configuration and runbooks. Decide which of these tasks your staff can own over time before choosing.
Mapping source fields to Loki labels, metadata and tenants
This table compares common source attributes against where Alloy places them in Loki: stream labels, structured metadata, or the tenant header. Read each row as a decision point: rows marked as fixed by the component follow from how Alloy and Loki behave, while the rest are choices your team should settle before the first pipeline ships. The main takeaway is that only a few attributes should become stream labels, and everything else belongs in metadata or the log line.
| Source attribute | Target in Loki | Where the mapping happens | Design choice or fixed |
|---|---|---|---|
| Host name | Stream label (low cardinality, one value per host) | discovery and relabel rules in Alloy, then the loki.write component | Design choice: keep it only if you query by host, since each host adds streams |
| File path | Usually dropped or replaced with a job or file group label | local.file_match or discovery.file component, then a relabel rule | Design choice: full paths with rotated file names create many streams, so keep a stable group name |
| Container name | Stream label | discovery.kubernetes or docker discovery, then relabel to a container label | Design choice: a label per container is common, but ephemeral names raise stream churn |
| Namespace | Stream label | discovery.kubernetes metadata, copied by a relabel rule | Design choice: a small, stable set of namespaces usually suits a label |
| Log level | Structured metadata or a parsed field, not a stream label | loki.process stage (for example a regex or json stage) followed by structured_metadata | Design choice: promoting level to a label is possible but multiplies streams; confirm your query pattern first |
| Trace or request identifiers | Structured metadata | loki.process stage that sets structured metadata keys | Design choice: useful for lookups, but high-cardinality values must never become stream labels |
| Tenant | X-Scope-OrgID header on each write request | tenant stage in loki.process or tenant argument on loki.write, depending on the Alloy version you run | Fixed by the component: Loki identifies tenants only by this header when auth is enabled |
| Labels that Loki rejects or drops | Not stored | Loki limits and the label allow rules at the write path | Fixed by Loki: confirm the limits on your deployment before relying on any label set |
Securing the Alloy to Loki connection
Alloy sends log data to Loki over a network path that you own, so the connection needs encryption, authentication and tight local permissions. Loki itself does not authenticate callers, which means the protections below are your responsibility to design and verify before any production traffic flows.
TLS on the write endpoint
Encrypt the push path from Alloy to Loki, either by terminating TLS at the reverse proxy or by configuring TLS directly on the client components that support it. Confirm the certificate chain, hostname validation and the CA bundle Alloy trusts, and test with an expired or untrusted certificate to confirm the write fails closed rather than silently falling back to plaintext.
Loki send data docsAuthenticating proxy in front of Loki
Loki has no built-in authentication layer, so run an authenticating reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium in front of it. Keep Loki's port closed to the network, and make the proxy the only path for both Alloy writes and Grafana reads. Decide how the proxy sets the X-Scope-OrgID tenant header so that clients cannot choose a tenant they should not write to.
Loki authentication docsCredentials for basic auth or tokens
Store basic auth passwords or bearer tokens in a secret store or a file readable only by the Alloy service account, and reference them from configuration rather than inlining them in the config file. Plan rotation with an owner and a procedure, and confirm which Alloy components accept your chosen auth method before you commit to it.
Outbound auth with collector extensions
OpenTelemetry Collector authenticator extensions such as oauth2client can add credentials to outgoing exporter requests, and OIDC authenticators can check incoming connections on receivers. Confirm which Alloy components support your chosen method, since Alloy is built on the Collector but its component set differs, and test token refresh before relying on it for production writes.
Least privilege for the Alloy user
Run Alloy under a dedicated service account that can read only the log paths and journal groups it collects. Grant file access through group membership or ACLs instead of running as root, and check that a permission gap does not silently drop logs. Review these grants whenever a new source is added.
Protecting the Alloy UI and API
Alloy exposes a web UI and HTTP API that can show component state and configuration, so bind them to localhost or an internal interface and place any remote access behind authentication. Restrict who can reach the debugging endpoints, and confirm that config files holding credentials are not exposed through them.
Common Alloy to Loki failures and how to fix them
This table maps the failures teams hit most often when Alloy ships logs to Loki, with the likely cause and the fix in Alloy configuration or Loki settings. Read each row by symptom first, then check the cause against your own pipeline before changing anything. The main takeaway is that most failures are silent or look like Loki errors, so verify each stream end to end after every change.
| Symptom | Likely cause | Fix |
|---|---|---|
| Some log files or streams never appear in Loki, with no error | The Alloy process user cannot read the log files or directories, so local_file_match or the file source finds nothing and logs nothing | Grant the Alloy service user read access to the paths (for DaemonSets, mount the host paths and check the security context). Confirm with a test file, then query for its labels. |
| Requests fail with 401 or 403 from the reverse proxy | Loki has no built-in authentication, so the proxy in front of it rejects Alloy because loki.write has no credentials or the token has expired | Add basic_auth or bearer_token_file under endpoint in loki.write, or the matching OAuth2 client settings. Check that the proxy accepts the header Alloy sends. |
| Writes fail or land in the wrong tenant in multi-tenant mode | auth_enabled is true in Loki but loki.write sends no X-Scope-OrgID header, or the header value does not match a tenant you created | Set tenant_id on the loki.write endpoint or pass the header through. Confirm the tenant ID matches the one used by Grafana data sources and per-tenant limits. |
| Samples rejected with rate or stream limit errors | Per-tenant limits in Loki, such as ingestion rate or maximum active streams, are lower than what Alloy sends, often after a new noisy source is added | Reduce volume at the edge with loki.process drop stages or rate limiting, then raise limits in the Loki runtime or limits config only for tenants that need them. Watch the rejection metrics after each change. |
| Query and storage costs climb, and queries slow down | Unbounded values such as request IDs, user IDs or IP addresses are promoted to labels in loki.process or discovery relabeling, creating a new stream per value | Remove high-cardinality keys from labels with stage.labels or drop them in relabeling. Keep them in the log line or structured metadata instead, and limit labels to a small, fixed set like namespace, app and environment. |
| Loki rejects entries as out of order or with timestamp too old | Log lines arrive out of sequence for a stream, or the source timestamps are far from the current time, so the stream is written out of order | Use stage.timestamp with the correct format and time zone, or let Alloy assign receive time. Give each file or source its own stream labels so lines stay in order, and check the clocks on the hosts. |
Questions teams ask before building Alloy pipelines for Loki
Can our own team build Alloy pipelines for Loki without a partner?
Yes, a capable platform or SRE team can build Alloy pipelines for Loki in-house, and Grafana Alloy is the supported log shipper for Loki. The work is mostly configuration, testing and rollout rather than custom code. The questions that decide whether in-house work is realistic are whether anyone has run Alloy as a DaemonSet or on hosts before, whether someone owns label design, and whether there is time to test parsing against real log samples. Promtail users moving over should also plan for the migration work, since Promtail reached end of life on March 2, 2026. Ask a partner for a written scope that lists sources, environments and deliverables so you can compare it against your own capacity honestly.
What drives the effort and duration of an Alloy to Loki build?
The main drivers are the number and variety of sources, how complex the parsing is, whether collection runs on Kubernetes or on hosts, whether multi-tenancy is needed, and how long the security review takes. Each added source type, such as container logs, journald, syslog or cloud logs, adds configuration and test cases. Multi-line logs, JSON payloads and non-standard formats add parsing work. Kubernetes usually needs DaemonSet deployment, RBAC and label mapping, while hosts need service accounts and group memberships. Multi-tenancy adds tenant header routing and per-tenant limits. Ask any provider to break the quote down by these drivers, and ask which items are one-time and which recur.
What does our organization need to provide for the work?
Expect to provide access to the hosts or clusters where Alloy will run, the Loki write endpoints and any authentication path in front of them, and a decision on tenant IDs if auth_enabled is used. You will also need named owners for label standards, log samples from each source, and change windows for rolling Alloy out to production nodes. Because Loki has no built-in authentication layer and the documentation says an authenticating reverse proxy must sit in front of it, confirm who owns that proxy and its credentials. Request a written list of these inputs in the quote so delays do not surface during the build.
Can we reuse our existing Promtail configuration in Alloy?
Some of the logic can be carried over, but Promtail configs should not be copied across unchanged. Promtail is end of life and Grafana directs users to migrate to Grafana Alloy, so the target should be an Alloy configuration tested against your current log streams. Scrape rules, pipeline stages and relabeling concepts map conceptually, but the syntax and component layout differ. Review each label, since a label set that worked in Promtail may now create too many streams. The Promtail migration path is covered in a separate group on this site, so treat this question as a checkpoint for scope rather than a copy exercise.
How do we keep label cardinality under control at the edge?
Decide which labels Alloy attaches before any collector ships to production. Labels should describe stable attributes such as cluster, namespace, host or service, and not values that change per request, such as user IDs or request IDs. Relabeling at the edge can drop or rename unwanted labels, and rate limiting can cap noisy streams so one chatty source does not overwhelm ingestion. Test each source with realistic volume and check the resulting stream count. Ask for a label review as a deliverable, and confirm with your Loki team which limits they have set, since those limits decide what a noisy stream costs you.
What work recurs after go-live?
Recurring work includes Alloy upgrades, configuration changes as new sources are added, and periodic label reviews. Alloy and Loki both release on their own schedules, so plan a regular upgrade check and retest pipelines after each upgrade. New applications and namespaces often introduce new label values, so schedule reviews rather than relying on alerts alone. Ongoing support, upgrades and continuous testing can be contracted as a retainer, while one-time build work is usually fixed-scope. In the quote, ask which items are included in a retainer, how changes are requested and how long a typical change takes to deliver.
Do we need a security review before Alloy handles production logs?
Usually yes, because Alloy will read sensitive logs on hosts and cluster nodes and send them across your network. Review what the collector can read, where credentials for Loki endpoints are stored, and whether pipelines can see or forward secrets or personal data. The OpenTelemetry Collector documentation covers configuration best practices, and its authenticator extensions can add authentication to receivers and exporters. Confirm which controls your compliance team expects and ask any provider how they document the configuration as evidence. DeployOpen prepares systems and evidence for compliance assessments, but auditors and certification bodies issue the actual opinions.
How DeployOpen scopes a Loki log collection engagement
Every Alloy log collection engagement starts with a written scope, deliverables and timeline agreed before any work begins. For this topic, the scope document should name each source type to be collected, the Alloy components that will read and process it (such as the file, journal, syslog or Kubernetes discovery components and the loki.write writer), the target Loki endpoint and tenant, and the label set each stream will carry. Those decisions drive the quote, so a vague request such as "collect all logs" will produce a vague price. Ask any partner to show how each source maps to a pipeline and a label policy before agreeing a number.
DeployOpen deploys Alloy inside your own infrastructure, using your cloud accounts, data centers or air-gapped networks, rather than hosting a collector on our side. That means the engagement needs access to the hosts or cluster where Alloy will run, the network path to Loki's push endpoint, and credentials for any authenticating proxy placed in front of Loki, because Loki has no built-in authentication layer. Confirm early who owns the DaemonSet or host install, who approves changes to config.alloy, and where the configuration lives, so that handover and later changes are not blocked by access that was never arranged.
Ongoing work is priced separately from the build. Upgrades to Alloy and its configuration, new sources added after go-live, and continuous review of label cardinality are typically handled as a retainer rather than a fixed project. Ask any partner to state in the scope what is one-time and what recurs, which party pays for Alloy version changes as they are released, and how new pipelines are requested and tested. DeployOpen does not publish a price list, so the quote should show each of these components as its own line.
How DeployOpen works on this
DeployOpen plans, builds, documents and supports Alloy pipelines that send logs into self-hosted Loki, inside the infrastructure you control. Each engagement starts from the sources your teams need covered, the labels Loki will index, and the retention and access rules your organization already follows.
How we scope
- Inventory the log sources, hosts, clusters and network devices that Alloy will collect from, with owners named for each.
- Agree the label set and the fields kept as structured metadata before any pipeline is written, so cardinality is decided up front.
- Confirm the Loki tenant IDs, the target write endpoint and the rate limits for noisy streams, recorded in a written scope.
How we build
- Write Alloy configuration for each source with relabeling, processing and writer components, tested against sample log volume.
- Deploy Alloy as a DaemonSet on Kubernetes or as a service on hosts, using configuration kept in your version control system.
- Verify that expected streams arrive in Loki, that labels match the agreed design, and that dropped or throttled lines are visible.
How we hand over
- Deliver the Alloy configuration, deployment manifests and a runbook describing each pipeline, its labels and its owners.
- Document the tenant mapping, rate limit settings and the steps for adding a new source without changing the label design.
- Walk your platform and operations teams through the pipelines and record the open items agreed in the written scope.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, Alloy version upgrades and continuous checks are available as a retainer, with terms confirmed in the quote.
- Ask any provider to confirm which Alloy and Loki versions they will support and how upgrades will be tested in your environment.

