Loki dashboards and alerts from the Loki mixin

Install the dashboards, recording rules and alerts that ship with each Loki release, make sure metrics storage is in place first, and choose which alerts should page someone.

On this page

Loki mixin dashboards and alerts: what they do and when you need them

When a Loki cluster is running but nobody can tell whether ingestion, queries or storage are degrading, the Loki mixin is the piece that closes that gap. Each Loki release includes a mixin with Grafana dashboards, Prometheus recording rules and alerts for monitoring Loki itself, and it is installed after you deploy the Kubernetes Monitoring Helm chart. The mixin is versioned with the Loki release it ships with, so the dashboard and alert definitions you install should match the Loki version running in your cluster. It depends on a Prometheus-compatible metrics store to evaluate the recording rules and alerts, which means the metrics side of your observability stack has to exist and be scraping Loki before the mixin is useful.

You need the mixin as soon as a production Loki cluster has an on-call owner. Without it, the people paged for log pipeline problems have no shared view of write path latency, query health, or whether chunks are reaching object storage. The mixin is also the right baseline before you tune limits or change retention, because those decisions are easier to justify against measured ingestion and query behavior than against guesses. Confirm with your platform team which Prometheus-compatible backend will evaluate the rules, who owns the alert routing, and whether an existing Alertmanager instance can receive notifications from it.

Keep one boundary clear: the mixin monitors Loki, not the logs your applications produce. Its dashboards answer questions about the health of Loki's own components, so they will not show you what a payment service or a identity provider logged. For application-level log questions you need LogQL queries and Grafana Explore, and for losing data silently you need a separate check such as Loki Canary. Before you install anything, list which alerts your on-call rotation should page on and which should only open tickets, since the mixin ships a broader set than most teams want to wake someone for.

How Loki metrics reach dashboards and alerts

The path starts at the Loki components, which expose their own metrics over HTTP. A Prometheus-compatible scraper pulls those metrics into a separate monitoring stack, stores the samples, and evaluates the mixin's recording rules and alerts. Firing alerts pass to Alertmanager, and Grafana reads the dashboards from the metrics store. Check that the scraper can reach every Loki target and that the monitoring stack sits outside the cluster it watches.

Loki metrics flow through a separate monitoring stack to alerts and dashboards.

Choosing an installation path for the mixin

On Kubernetes, the documented route is to deploy the Kubernetes Monitoring Helm chart first and then install the Loki mixin on top of it. The mixin's dashboards, Prometheus recording rules and alerts are loaded into the monitoring stack the chart sets up, so the chart's components do most of the wiring. Your team still decides where metrics are stored and where alerts are routed, because the chart does not supply those backends for you.

  • What gets installed: Grafana dashboards for Loki, Prometheus recording rules that pre-compute Loki metrics, and alerting rules that fire on Loki health conditions.
  • What you must provide: a metrics store that Prometheus-compatible rules can write to, a Grafana instance that can read the dashboards, and an Alertmanager that receives the alerts.
  • Ordering: deploy the monitoring chart before the mixin, since the mixin depends on what the chart configures.
  • Version pairing: confirm which mixin release matches the Loki version you run, because metric names and alert expressions can change between releases.
  • Retention and storage: size the metrics store for the recording rules and the Loki metrics you keep, and confirm its retention with the platform owner.

Before you apply anything, check the mixin release notes against your running Loki version in the Loki mixin documentation.

Mixin components and when each one fits

This table compares the three artifact types the Loki mixin ships: Grafana dashboards, Prometheus recording rules and alerting rules. Read each row as a question of what the artifact covers, what it needs before it works and who should own it. The main takeaway is that the alerts depend on metrics storage being in place first, so the metrics prerequisites come before any of the three.

ComponentWhat it covers and depends onUsual ownerWhen to adopt
Grafana dashboardsPanels that chart Loki's own health, such as ingestion, query and storage behavior. Needs Grafana connected to a Prometheus-compatible data source that holds Loki's scraped metrics.Platform or observability team that runs GrafanaFirst, once metrics are flowing, because they show whether the cluster is healthy before any alert fires
Prometheus recording rulesPrecomputed series derived from Loki metrics so dashboards and alerts run faster. Needs a Prometheus-compatible backend with rule evaluation enabled and the mixin's metric names present.Team that operates Prometheus or the metrics backendEarly, when dashboards or alerts are slow to load or evaluate across a large cluster
Alerting rulesConditions on Loki metrics that notify on-call staff when ingestion, queries or storage degrade. Needs recording rules or raw metrics, a working Alertmanager route and agreed receivers.On-call and SRE team, with the platform owner setting thresholdsAfter dashboards have been reviewed for a few weeks, so thresholds reflect your normal load
Mixin documentationCurrent dashboard names, rule groups and alert names for your Loki release. Check the list against the release you deploy, because contents change between versions.Whoever installs the mixin and upgrades LokiBefore installation and again at every Loki upgrade
Paging decisionWhich alerts wake someone up versus which go to a ticket queue or dashboard review. Set this per alert, based on whether the condition threatens data loss or a user-facing outage.Operations lead with input from service ownersDecide before go-live, so the first alert noise does not train staff to ignore pages

Install the Loki dashboards and alerts in order

This sequence takes a Loki cluster from a confirmed version and metrics stack to dashboards, recording rules and alerts that report on Loki's own health. Each step ends with a check so a gap is caught before the next layer depends on it.

  1. Confirm the Loki version and matching mixin

    The platform engineer records the Loki version running in each environment and the deployment mode in use, then takes the mixin from the same release line so dashboards, recording rules and alerts match the metric names that Loki emits. The mixin is documented as shipping with each Loki release, so mixing artifacts from different releases is the first thing to rule out. Check: the mixin version, the Loki server version and the Helm chart or deployment version all match in a written inventory that the team can point to before any change is made.

  2. Verify the metrics store and Alertmanager

    The platform engineer confirms that a Prometheus-compatible metrics store is running, that it scrapes the Loki components, and that Alertmanager is reachable from it. Prometheus is designed to point at every Alertmanager instance, so the team should check the configured Alertmanager targets directly rather than assuming a load balancer handles them. Check: a test query for a Loki metric returns series in the metrics store, and Alertmanager lists its configuration and status without errors. Also confirm the retention of the metrics store, because local Prometheus storage is single-node and defaults to a 15-day retention unless the team has changed it.

  3. Deploy the Kubernetes Monitoring chart or load mixin artifacts

    On Kubernetes, the team installs the Kubernetes Monitoring Helm chart as the documented base, then adds the Loki mixin content, which the Loki documentation describes as the step that follows that chart. On non-Kubernetes deployments, the team generates the mixin artifacts from the matching release and loads them into the Prometheus rule directory and the Grafana provisioning path. Check: the Prometheus rules page lists the Loki rule groups, and the rule files are present in the directory Prometheus reads at startup, with no parse errors in its logs.

  4. Load recording rules and alerts

    The platform engineer reviews the alert and recording rule groups in the mixin, sets the label selectors so they match this cluster's job and namespace names, and reloads Prometheus through its configured reload path. Alert routing should be set in Alertmanager at this point so pages go to the on-call channel and not to a default receiver. Check: each rule group in the Prometheus rules view shows a last evaluation time, and no group reports an error in the evaluation column. Any group with an error should be fixed before the team treats its alerts as active.

  5. Import dashboards into Grafana

    The team loads the Loki dashboards into Grafana through the provisioning path or the dashboard import flow, then points them at the metrics data source by name. If Grafana is managed as code, the team should add the dashboard files to the same repository as the rest of the configuration so later Loki upgrades replace them in one change. Check: each imported dashboard opens without panel errors, the data source variable resolves, and the panels show data for the Loki components that are running.

  6. Verify each Loki component reports metrics

    The platform engineer checks that every Loki component in the deployment mode, such as the distributor, ingester, querier and query frontend in microservices, or the read, write and backend targets in simple scalable mode, appears as a scrape target and emits metrics. A missing component usually means a label selector or port in the scrape config does not match the deployment. Check: the scrape target list shows every expected component as up, and each dashboard panel that depends on that component returns data rather than an empty result.

  7. Confirm each rule group evaluates without errors

    After the first full evaluation cycle, the platform engineer reviews every Loki rule group for evaluation errors and confirms that recording rule outputs appear as new series in the metrics store. The team then triggers a controlled test condition, or uses an alert test route in Alertmanager, to confirm that a page reaches the on-call receiver and that the alert clears when the condition ends. Check: the written sign-off lists each rule group as healthy, each paging alert as tested and routed, and each dashboard as verified against live data.

Which Loki alerts to page on and which to route to a ticket

The Loki mixin ships alerts across several components of the cluster, and not all of them need the same response. The groups below separate conditions that threaten ingestion or queries now from those that signal drift, capacity pressure or slow decline. Set severity and routing to match your own on-call policy and the service levels you have agreed with your users.

Ingester health and write path

Ingesters receive pushes, hold recent data in memory and the write-ahead log, and flush chunks to object storage. A failing or crash-looping ingester, or a sustained write error rate, means new logs are being dropped or delayed right now, so these are page-worthy conditions. Check that the alert reflects loss of ingestion for users, not a single restarting pod that recovered. Route shrinking headroom and rising memory trends to a ticket for capacity work.

Loki mixin docs

Query path and read errors

Query frontends, queriers and the read path serve Grafana users and alerting rules. Sustained failed or timed-out queries affect people actively investigating incidents, so a broad, sustained error rate is usually page-worthy during business-critical periods. Individual slow queries from one user, or a single expensive dashboard, belong in a review queue where you can tune limits or dashboards. Decide your own threshold for who gets woken up.

Storage and object store failures

Loki depends on the object store for both chunks and the index. Errors reaching the bucket, such as authorization failures or throttling, can stop flushes and eventually fill ingester disks, so sustained object store errors deserve a page. Slow growth in stored data, cost trends and bucket size changes are review items. Confirm with your storage team which alerts they already receive so you do not duplicate paging.

Compactor and retention state

The compactor merges index files and applies retention, and retention is disabled by default, so a compactor that stops running means index and deletion work silently falls behind. A stalled or failing compactor does not cause immediate data loss, which makes it a ticket item in most policies, unless your retention or deletion obligations are time-bound. Review the mixin's compactor alerts against the retention settings you have actually enabled.

Ruler and recording rule failures

The ruler evaluates LogQL alert and recording rules and writes results to a Prometheus-compatible backend. Failing rule evaluations mean an alert may not fire or a stored metric has gaps, which matters if a log-based alert is your only signal for a critical condition, so escalate those specific rules to a page. Gaps in a recording rule used only for dashboards are normally a ticket. Confirm which rules your team depends on before setting routing.

Prerequisites for metrics storage before the mixin works

The mixin's dashboards, recording rules and alerts only work if Prometheus is scraping Loki's metrics and storing them long enough for someone to use them, so settle the metrics store before you install anything. A local Prometheus server is a single node. Its storage is not clustered or replicated, so it needs the same care as any single-node database: a disk sized for your retention, a backup or snapshot routine, and a plan for what happens when the node is down during an incident. Retention on that local store is set by time or by size, and Prometheus defaults to 15 days. Confirm with your on-call team how far back they need to look when they investigate a Loki problem. If the answer is weeks or months, plan remote write or remote read to a long-term storage system, and test that the mixin's queries still return results from it.

Cardinality is the cost driver to check before you add the scrape. Loki's metrics carry labels such as cluster, job and component, and every extra label value multiplies the number of series Prometheus must hold. Run the scrape against one environment, count the active series it creates, and compare that figure with the memory and disk you budgeted. The Loki Kubernetes Monitoring Helm chart, which the mixin is installed alongside, has its own settings for what gets collected, so review those before you copy them into production. Ask your platform team who owns series budgets, and agree on a limit before the dashboards become popular.

Alerts only help if they reach a person, so every Prometheus server that evaluates the mixin's alert rules must send to every Alertmanager instance in your cluster. The Alertmanager documentation says Prometheus should point at each instance rather than a load balancer, because a load balancer can hide a failed instance and cause missed or duplicate notifications. Confirm that your Alertmanager cluster is formed with its --cluster flags, that each Prometheus target list includes every instance, and that a test alert arrives at your paging tool from each path. Record which Prometheus server owns which Loki alerts so that a failure of the metrics stack does not silently remove your Loki paging.

Security and access considerations for the monitoring stack

The mixin dashboards and alerts sit on top of metrics, Grafana and Alertmanager, and each of those carries its own access path. Loki has no built-in authentication, so the monitoring stack has to respect the same reverse proxy controls as the logs themselves. Review these areas before the dashboards reach a wider audience.

Tenant and capacity data in dashboards

Mixin dashboards show tenant names, per-tenant ingestion volumes, query patterns and cluster capacity. For a multi-tenant cluster, a dashboard viewer may see which customers or teams send the most logs and when they query. Decide which folders and data sources each Grafana role can open, and confirm that tenant-level panels are limited to operators who are allowed to see that information.

Unauthenticated Loki and metrics endpoints

Loki has no built-in authentication layer, so the documentation requires an authenticating reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium in front of it. The metrics endpoints that the mixin scrapes also expose internal detail. Confirm that the proxy protects the query and push paths, and that scrapers reach the metrics endpoints over a network path that is not open to the internet.

Loki authentication docs

Grafana hardening settings

The Grafana security hardening guidance recommends secure and SameSite cookies, a Content Security Policy, Trusted Types, hiding the version from unauthenticated users and domain verification against DNS rebinding. Apply these to the Grafana instance that hosts the Loki dashboards, and test that the dashboards still load after the policy is applied.

Grafana hardening docs

Metrics endpoint authentication

Grafana's hardening guidance asks for authentication on the metrics endpoint, which keeps unauthenticated visitors from reading Grafana's own operational data. Check that any scraper that reads Grafana or Loki metrics presents credentials, and store those credentials in your secret manager rather than in the scrape configuration file.

Alertmanager notification credentials

Alert rules from the mixin route to Alertmanager, which then sends notifications to email, chat or paging services. Those receivers hold API tokens, SMTP passwords and webhook URLs. Keep these values out of plain-text configuration committed to Git, restrict who can edit receivers, and confirm that silences and routing changes are logged.

Alert access and change control

Alert rules and dashboards are often edited in Grafana by several teams. Define who can create, silence or delete alerts, and who can change the Prometheus recording rules that feed them. Provision these resources as code where possible so that each change is reviewed and can be traced back to an author.

Grafana provisioning docs

Questions teams ask before installing the Loki mixin

What does installing the Loki mixin cost, and what drives the effort?

The mixin itself is free open-source content, so the cost is the work to install it and the infrastructure it depends on. Effort rises with the size of the Loki cluster, whether you already run Prometheus and Grafana, whether the cluster runs on Kubernetes, and how many teams need alert routing. A cluster with one Prometheus-compatible store, one Grafana and a clear on-call rota is a small task. Ask any partner for a fixed-scope quote that lists the dashboards, rules and alert routes in writing, the environments covered and the verification steps, since those items decide the price. Ongoing upgrades to the mixin content are a recurring cost to plan for separately.

How long does installing the Loki mixin take?

Duration depends mostly on what already exists. The Loki documentation says the dashboards, recording rules and alerts are installed after you deploy the Kubernetes Monitoring Helm chart, so a team without that stack needs it in place first. Other factors include whether metrics from Loki are already scraped, how Alertmanager routes are organized, and how many environments need the same content. Ask for a timeline in the written scope that separates prerequisite work from the mixin install and the review of alert thresholds against your traffic.

What must our team provide before the mixin can be installed?

You need four things in place: a metrics store that Loki's recording rules and dashboards can query, Grafana to display the dashboards, Alertmanager to receive the alerts, and an on-call policy that says who acts on each alert. The Loki documentation points to the Kubernetes Monitoring Helm chart as the install path, and Prometheus is the common metrics store. For Alertmanager, Prometheus should point at every Alertmanager instance rather than a load balancer. Confirm each item with your own environment before work starts, and name the people who will approve alert thresholds.

Can our own platform team install the mixin without outside help?

Yes, a team that already runs Kubernetes, Prometheus and Grafana can usually install the mixin with the Loki documentation and its own change process. Outside help tends to matter in three places: deciding which alerts page a human and which only open tickets, designing Alertmanager routing and grouping so one fault does not generate many pages, and checking that thresholds match your real log volume. Teams without recent on-call experience often ask a partner to review these choices. Decide early which of these you will own internally.

Which Loki alerts should we page on?

Page on alerts that mean users cannot write or read logs, or that data is at risk of loss, and send everything else to tickets or dashboards. Candidates include sustained failures to push logs, storage write errors and conditions that threaten the write-ahead log disk. Lower-severity signals such as rising query latency belong on a review queue. Confirm the exact alert names and expressions in the version of the mixin you install, because they change between releases, and test each paging alert with a controlled failure before relying on it.

How do we keep dashboards and rules current across Loki upgrades?

Treat the mixin as versioned configuration that moves with Loki. Each Loki release includes its own mixin, so the simplest rule is to reinstall the mixin that matches the Loki version you run, then diff the dashboards, recording rules and alerts against the previous version. Store the generated files in Git, review changes in the same change window as the Loki upgrade, and check that metric names used by alerts still exist after each upgrade. Ask any partner to describe how they will handle this in the quote, including who reviews the diff and how the change is rolled back.

Does the mixin need a separate monitoring stack for Loki itself?

The mixin monitors Loki through metrics, so Loki's own metrics must be stored somewhere that survives a Loki outage. If the same cluster that stores your logs also stores its monitoring data, a failure can hide its own cause. Many teams run a separate metrics path for this, which is covered by meta-monitoring setup. Confirm with your architect where the metrics store runs, how long its data is kept and whether it has its own alerting path before enabling any paging alert.

How DeployOpen scopes and delivers Loki monitoring

DeployOpen treats the Loki mixin as part of the cluster's operating surface, not an afterthought. We scope which dashboards, recording rules and alerts your team needs, install them into your own Prometheus-compatible stack, and hand over alerts your on-call team can act on.

How we scope

  • Inventory the Loki version, deployment mode and the Kubernetes Monitoring Helm chart already running in your environment.
  • Confirm where Prometheus-compatible metrics are stored, how long they are kept and who owns that storage.
  • Agree in writing which dashboards, recording rules and alerts are in scope, and which paging routes they use.

How we build

  • Install the mixin dashboards and rules in your infrastructure, following the Loki documentation for the release you run.
  • Review each alert threshold against your log volumes and tenant layout, and document any change from the defaults.
  • Test that alerts fire on a controlled fault and resolve cleanly, and that dashboards load for each tenant in scope.

How we hand over

  • Deliver the dashboards and rule files as version-controlled artifacts with a short runbook for each paging alert.
  • Walk your operators through which alerts page, which only notify, and what first response looks like.
  • Document prerequisites, including the metrics pipeline and Alertmanager routing, so your team can reproduce the setup.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, Loki upgrades that change the mixin, and continuous testing are available as a retainer.
  • Quotes follow from the written scope, so ask for each deliverable and each support task to be listed separately.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.