<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Monitor Grafana Mimir on Grafana Labs</title><link>https://grafana.com/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/</link><description>Recent content in Monitor Grafana Mimir on Grafana Labs</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/index.xml" rel="self" type="application/rss+xml"/><item><title>Monitor the health of your system</title><link>https://grafana.com/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/monitor-system-health/</link><pubDate>Mon, 31 Mar 2025 14:38:03 +0000</pubDate><guid>https://grafana.com/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/monitor-system-health/</guid><content><![CDATA[&lt;h1 id=&#34;monitor-the-health-of-your-system&#34;&gt;Monitor the health of your system&lt;/h1&gt;
&lt;p&gt;You can monitor Grafana Mimir or Grafana Enterprise Metrics by collecting metrics and logs from a Mimir or GEM instance that&amp;rsquo;s running on a Kubernetes cluster. This process is called &lt;em&gt;metamonitoring&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;As part of &lt;em&gt;metamonitoring&lt;/em&gt;, you can create dashboards and receive alerts about the metrics and logs collected from Mimir. To set up these dashboards and alerts,
refer to 
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/installing-dashboards-and-alerts/&#34;&gt;Installing Grafana Mimir dashboards and alerts&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;configure-the-grafana-agent-operator-via-the-helm-chart&#34;&gt;Configure the Grafana Agent operator via the Helm chart&lt;/h2&gt;


&lt;div data-shared=&#34;agent-deprecation.md&#34;&gt;
            

&lt;div class=&#34;admonition admonition-caution&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Caution&lt;/p&gt;&lt;p&gt;Grafana Alloy is the new name for our distribution of the OTel collector.
Grafana Agent has been deprecated and is in Long-Term Support (LTS) through October 31, 2025. Grafana Agent will reach an End-of-Life (EOL) on November 1, 2025.
Read more about why we recommend migrating to &lt;a href=&#34;/blog/2024/04/09/grafana-alloy-opentelemetry-collector-with-prometheus-pipelines/&#34;&gt;Grafana Alloy&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;/div&gt;

        
&lt;p&gt;In the Helm chart, you can configure where to send metrics and logs.
You can send metrics to a Prometheus-compatible server
and logs to a Loki cluster.
The Helm chart can also scrape additional metrics from kube-state-metrics, kubelet, and cAdvisor.&lt;/p&gt;
&lt;p&gt;The Helm chart does not collect Prometheus node_exporter metrics;
metrics from node_exporter must all have an instance label on them
that has the same value as the instance label on Mimir metrics.
For the list of necessary node_exporter metrics see the metrics
prefixed with &lt;code&gt;node&lt;/code&gt; in &lt;a href=&#34;/docs/grafana-cloud/monitor-infrastructure/integrations/integration-reference/integration-mimir/#metrics&#34;&gt;Grafana Cloud: Self-hosted Grafana Mimir integration&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can configure your collection of metrics and logs
by using the &lt;a href=&#34;/docs/agent/latest/operator/&#34;&gt;Grafana Agent operator&lt;/a&gt;.
The Helm chart can install and use the Grafana Agent operator.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Before the Helm chart can use the operator,
you need to manually install all of the Kubernetes &lt;a href=&#34;https://helm.sh/docs/chart_best_practices/custom_resource_definitions/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Custom Resource Definitions (CRDs)&lt;/a&gt; from the &lt;a href=&#34;https://github.com/grafana/agent/tree/main/operations/agent-static-operator/crds&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Grafana Agent operator YAML files&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;It’s best to use the Grafana Agent operator for metrics and logs collection.
However, if you prefer not to use it or you already have an existing Grafana Agent that you want to use, see &lt;em&gt;Collect metrics and logs via Grafana Agent&lt;/em&gt; documentation in Grafana Mimir version 2.5.0.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Store credentials in a Secret:&lt;/p&gt;
&lt;p&gt;If Prometheus and Loki are running without authentication, then you scan skip this section.
Metamonitoring supports multiple ways of authentication for metrics and logs. If you are using a secret such as an API
key to authenticate with Prometheus or Loki, then you need to create a Kubernetes Secret with that secret.&lt;/p&gt;
&lt;p&gt;This is an example Kubernetes Secret:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;YAML&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-yaml&#34;&gt;apiVersion: v1
kind: Secret
metadata:
  name: metamonitoring-credentials
data:
  prometheus-api-key: FAKEACCESSKEY
  loki-api-key: FAKESECRETKEY&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;For information about how to create a Kubernetes Secret, see
&lt;a href=&#34;https://kubernetes.io/docs/concepts/configuration/secret/#creating-a-secret&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Creating a Secret&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Configure Helm chart values:&lt;/p&gt;
&lt;p&gt;Merge the following YAML configuration into your Helm values file, and replace the values for &lt;code&gt;url&lt;/code&gt;, &lt;code&gt;username&lt;/code&gt;, &lt;code&gt;passwordSecretName&lt;/code&gt;
, and &lt;code&gt;passwordSecretKey&lt;/code&gt; with the details of the Prometheus and Loki clusters, and the Secret that you created. If your
Prometheus and Loki servers are running without authentication, then remove the &lt;code&gt;auth&lt;/code&gt; blocks from the YAML below.&lt;/p&gt;
&lt;p&gt;If you already have the Agent operator installed in your Kubernetes cluster, then set &lt;code&gt;installOperator: false&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;YAML&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-yaml&#34;&gt;metaMonitoring:
  serviceMonitor:
    enabled: true
  grafanaAgent:
    enabled: true
    installOperator: true

    logs:
      remote:
        url: &amp;#34;https://example.com/loki/api/v1/push&amp;#34;
        auth:
          username: &amp;#34;12345&amp;#34;
          passwordSecretName: &amp;#34;metamonitoring-credentials&amp;#34;
          passwordSecretKey: &amp;#34;loki-api-key&amp;#34;

    metrics:
      remote:
        url: &amp;#34;https://example.com/api/v1/push&amp;#34;
        auth:
          username: &amp;#34;54321&amp;#34;
          passwordSecretName: &amp;#34;metamonitoring-credentials&amp;#34;
          passwordSecretKey: &amp;#34;prometheus-api-key&amp;#34;

      scrapeK8s:
        enabled: true
        kubeStateMetrics:
          namespace: kube-system
          labelSelectors:
            app.kubernetes.io/name: kube-state-metrics&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;For more information about using using the Helm chart to configure Grafana Mimir, refer to &lt;a href=&#34;/docs/helm-charts/mimir-distributed/latest/run-production-environment-with-helm/&#34;&gt;Run Grafana Mimir in production using the Helm chart&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;send-metrics-back-into-mimir-or-gem&#34;&gt;Send metrics back into Mimir or GEM&lt;/h3&gt;
&lt;p&gt;You can also send the metrics that you collected (metamonitoring metrics)
back into Mimir or GEM itself rather than sending them elsewhere.&lt;/p&gt;
&lt;p&gt;When you leave the &lt;code&gt;metamonitoring.grafanaAgent.metrics.remote.url&lt;/code&gt; field empty,
then the chart automatically fills in the address of the GEM gateway Service
or the Mimir NGINX Service.&lt;/p&gt;
&lt;p&gt;If you have deployed Mimir, and &lt;code&gt;metamonitoring.grafanaAgent.metrics.remote.url&lt;/code&gt; is not set,
then the metamonitoring metrics are be sent to the Mimir cluster.
You can query these metrics using the HTTP header X-Scope-OrgID: metamonitoring&lt;/p&gt;
&lt;p&gt;If you have deployed GEM, then there are two alternatives:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;If are using the &lt;code&gt;trust&lt;/code&gt; authentication type (&lt;code&gt;mimir.structuredConfig.auth.type=trust&lt;/code&gt;),
then the same instructions apply as for Mimir.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If you are using the enterprise authentication type (&lt;code&gt;mimir.structuredConfig.auth.type=enterprise&lt;/code&gt;, which is
also the default when &lt;code&gt;enterprise.enabled=true&lt;/code&gt;), then you also need to provide a Secret with the authentication
token for the tenant.The token should be to an access policy with &lt;code&gt;metrics:write&lt;/code&gt; scope.
Assuming you are using the GEM authentication model, the Helm chart values should look like the following example.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;YAML&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-yaml&#34;&gt;metaMonitoring:
  serviceMonitor:
    enabled: true
  grafanaAgent:
    enabled: true
    installOperator: true

    metrics:
      remote:
        auth:
          username: metamonitoring
          passwordSecretName: gem-tokens
          passwordSecretKey: metamonitoring&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h2 id=&#34;monitor-without-the-helm-chart&#34;&gt;Monitor without the Helm chart&lt;/h2&gt;
&lt;p&gt;To monitor the health of your system without using the Helm chart, see 
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/collecting-metrics-and-logs/#collect-metrics-and-logs-without-the-helm-chart&#34;&gt;Collect metrics and logs without the Helm chart&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can also use the self-hosted Grafana Cloud integration to monitor your Mimir system. Refer to &lt;a href=&#34;/docs/grafana-cloud/monitor-infrastructure/integrations/integration-reference/integration-mimir/&#34;&gt;Grafana Cloud: Self-hosted Grafana Mimir integration&lt;/a&gt; for more information.&lt;/p&gt;
]]></content><description>&lt;h1 id="monitor-the-health-of-your-system">Monitor the health of your system&lt;/h1>
&lt;p>You can monitor Grafana Mimir or Grafana Enterprise Metrics by collecting metrics and logs from a Mimir or GEM instance that&amp;rsquo;s running on a Kubernetes cluster. This process is called &lt;em>metamonitoring&lt;/em>.&lt;/p></description></item><item><title>About Grafana Mimir dashboards and alerts requirements</title><link>https://grafana.com/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/requirements/</link><pubDate>Tue, 22 Apr 2025 16:36:44 +0000</pubDate><guid>https://grafana.com/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/requirements/</guid><content><![CDATA[&lt;!-- Note: This topic is mounted in the GEM documentation. Ensure that all updates are also applicable to GEM. --&gt;
&lt;h1 id=&#34;about-grafana-mimir-dashboards-and-alerts-requirements&#34;&gt;About Grafana Mimir dashboards and alerts requirements&lt;/h1&gt;
&lt;p&gt;Grafana Mimir dashboards and alerts require certain labels to exist on metrics scraped from Grafana Mimir.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;mimir-distributed&lt;/code&gt; Helm chart provides metamonitoring support, which takes care of these labels.
For more information about Helm chart metamonitoring, refer to &lt;a href=&#34;/docs/helm-charts/mimir-distributed/latest/run-production-environment-with-helm/monitor-system-health/&#34;&gt;Collect metrics and logs via the Helm chart&lt;/a&gt;.
If you are using Helm chart metamonitoring, go to &lt;a href=&#34;/docs/mimir/v2.16.x/manage/installing-dashboards-and-alerts&#34;&gt;Installing Grafana Mimir dashboards and alerts&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you&amp;rsquo;re not using the Helm chart, you must configure your Prometheus or Grafana Alloy instance to add these labels for the dashboards and alerts to function.
The following table shows the required label names and whether they can be customized when &lt;a href=&#34;/docs/mimir/v2.16.x/manage/installing-dashboards-and-alerts&#34;&gt;compiling dashboards or alerts from sources&lt;/a&gt;.&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Label name&lt;/th&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Configurable?&lt;/th&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Description&lt;/th&gt;
              &lt;th&gt;&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;cluster&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Yes&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;The Kubernetes cluster or datacenter where the Mimir cluster is running. You can configure the cluster label via the &lt;code&gt;per_cluster_label&lt;/code&gt; field in the mixin configuration.&lt;/td&gt;
              &lt;td&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;namespace&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Yes&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;The Kubernetes namespace where the Mimir cluster is running. You can configure the namespace label via the &lt;code&gt;per_namespace_label&lt;/code&gt; field in the mixin configuration.&lt;/td&gt;
              &lt;td&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;job&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Yes&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;A prefix (by default &lt;code&gt;&amp;lt;namespace&amp;gt;/&lt;/code&gt;) followed by the Mimir component. When running in monolithic mode, make sure that the &lt;code&gt;&amp;lt;component&amp;gt;&lt;/code&gt; is &lt;code&gt;mimir&lt;/code&gt;. When running in microservices mode, make sure that the &lt;code&gt;&amp;lt;component&amp;gt;&lt;/code&gt; is the name of the specific Mimir component (singular), such as &lt;code&gt;distributor&lt;/code&gt;, &lt;code&gt;ingester&lt;/code&gt;, or &lt;code&gt;store-gateway&lt;/code&gt;. Similarly, in read-write mode, make sure the &lt;code&gt;&amp;lt;component&amp;gt;&lt;/code&gt; is either &lt;code&gt;mimir-read&lt;/code&gt;, &lt;code&gt;mimir-write&lt;/code&gt;, or &lt;code&gt;mimir-backend&lt;/code&gt;. In the mixin configuration, you can configure the prefix via the &lt;code&gt;job_prefix&lt;/code&gt; field, the label name via the &lt;code&gt;per_job_label&lt;/code&gt; field, and the regular expressions that are used to match components via the &lt;code&gt;job_names&lt;/code&gt; field.&lt;/td&gt;
              &lt;td&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;pod&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Yes&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;The unique identifier of a Mimir replica, for example the Pod ID when running on Kubernetes. You can configure the instance label via the &lt;code&gt;per_instance_label&lt;/code&gt; field in the mixin configuration.&lt;/td&gt;
              &lt;td&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;instance&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Yes&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;The unique identifier of the node or machine where the Mimir replica is running, for example the node when running on Kubernetes. You can configure the node label via the &lt;code&gt;per_node_label&lt;/code&gt; field in the mixin configuration.&lt;/td&gt;
              &lt;td&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;p&gt;For rules and alerts to function, you must configure your Prometheus or Grafana Alloy instance to scrape metrics from Grafana Mimir at an interval of &lt;code&gt;15s&lt;/code&gt; or shorter.&lt;/p&gt;
&lt;h2 id=&#34;deployment-type&#34;&gt;Deployment type&lt;/h2&gt;
&lt;p&gt;By default, Grafana Mimir dashboards assume Mimir is deployed in containers orchestrated by Kubernetes.
If you&amp;rsquo;re running Mimir on baremetal, set the configuration field &lt;code&gt;deployment_type: &#39;baremetal&#39;&lt;/code&gt; and &lt;a href=&#34;/docs/mimir/v2.16.x/manage/installing-dashboards-and-alerts&#34;&gt;re-compile the dashboards&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;job-selection&#34;&gt;Job selection&lt;/h2&gt;
&lt;p&gt;A metric could be exposed by multiple Grafana Mimir components, or even different applications running in the same namespace.
To provide accurate dashboards and alerts, the job label (by default &lt;code&gt;job&lt;/code&gt;) selects a metric from specific components.
A job is a combination of a prefix and component. The default prefix is the Kubernetes namespace followed by a slash, for example &lt;code&gt;&amp;lt;namespace&amp;gt;/&lt;/code&gt; in &lt;code&gt;&amp;lt;namespace&amp;gt;/ingester&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Pre-compiled dashboards and alerts are shipped with a default configuration.
If you compile dashboards and alerts from source, you have the option to customize a) the label used for the job selection via the &lt;code&gt;per_job_label&lt;/code&gt; field, b) the prefix expected in the label value, which you can omit by setting it to &lt;code&gt;&#39;&#39;&lt;/code&gt; via the &lt;code&gt;job_prefix&lt;/code&gt; field, and c) the regular expression used to select each Mimir component via the &lt;code&gt;job_names&lt;/code&gt; field in the mixin configuration.&lt;/p&gt;
&lt;h3 id=&#34;default-job-selection-in-monolithic-mode&#34;&gt;Default &lt;code&gt;job&lt;/code&gt; selection in monolithic mode&lt;/h3&gt;
&lt;p&gt;When running Grafana Mimir in monolithic mode and using the pre-compiled dashboards and alerts, the &lt;code&gt;job&lt;/code&gt; label should be set to &lt;code&gt;&amp;lt;namespace&amp;gt;/mimir&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;default-job-selection-in-microservices-mode&#34;&gt;Default &lt;code&gt;job&lt;/code&gt; selection in microservices mode&lt;/h3&gt;
&lt;p&gt;When running Grafana Mimir in microservices mode and using the pre-compiled dashboards and alerts, the &lt;code&gt;job&lt;/code&gt; label should be set according to the following table.&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Mimir service&lt;/th&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Expected &lt;code&gt;job&lt;/code&gt; label&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Distributor&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;&amp;lt;namespace&amp;gt;/distributor&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Ingester&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;&amp;lt;namespace&amp;gt;/ingester&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Querier&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;&amp;lt;namespace&amp;gt;/querier&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Ruler&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;&amp;lt;namespace&amp;gt;/ruler&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Query-frontend&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;&amp;lt;namespace&amp;gt;/query-frontend&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Query-scheduler&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;&amp;lt;namespace&amp;gt;/query-scheduler&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Store-gateway&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;&amp;lt;namespace&amp;gt;/store-gateway&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Compactor&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;&amp;lt;namespace&amp;gt;/compactor&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;h3 id=&#34;default-job-selection-in-read-write-mode&#34;&gt;Default &lt;code&gt;job&lt;/code&gt; selection in read-write mode&lt;/h3&gt;
&lt;p&gt;When running Grafana Mimir in read-write mode and using the pre-compiled dashboards and alerts, set the &lt;code&gt;job&lt;/code&gt; label accordingly:&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Mimir service&lt;/th&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Expected &lt;code&gt;job&lt;/code&gt; label&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Mimir Read&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;&amp;lt;namespace&amp;gt;/mimir-read&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Mimir Write&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;&amp;lt;namespace&amp;gt;/mimir-write&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Mimir Backend&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;&amp;lt;namespace&amp;gt;/mimir-backend&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;h2 id=&#34;additional-resources-metrics&#34;&gt;Additional resources metrics&lt;/h2&gt;
&lt;p&gt;The Grafana Mimir dashboards displaying CPU, memory, disk, and network resources utilization require Prometheus metrics scraped from the following endpoints:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/google/cadvisor&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;cAdvisor&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://kubernetes.io/docs/concepts/cluster-administration/system-metrics/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;kubelet&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/prometheus/node_exporter&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Node Exporter&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/kubernetes/kube-state-metrics&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;kube-state-metrics&lt;/a&gt; exporter&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For more information about the kubelet metrics and cAdvisor metrics exported by the kubelet, refer to &lt;a href=&#34;https://kubernetes.io/docs/concepts/cluster-administration/system-metrics/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Metrics For Kubernetes System Components&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Metrics from kubelet, kube-state-metrics, and cAdvisor must all have a &lt;code&gt;cluster&lt;/code&gt; label with the same value as in the
Mimir metrics.&lt;/p&gt;
&lt;p&gt;Metrics from Node Exporter and cAdvisor must all have an &lt;code&gt;instance&lt;/code&gt; label on them that has the same value as the &lt;code&gt;instance&lt;/code&gt; label on Mimir metrics.&lt;/p&gt;
&lt;h2 id=&#34;log-labels&#34;&gt;Log labels&lt;/h2&gt;
&lt;p&gt;The &lt;strong&gt;Slow queries&lt;/strong&gt; dashboard uses a Loki data source with the logs from Grafana Mimir to visualize slow queries. The query-frontend component logs query statistics when the &lt;code&gt;-query-frontend.query-stats-enabled&lt;/code&gt; parameter is set to &lt;code&gt;true&lt;/code&gt;.
These logs need to have specific labels in order for the dashboard to work.&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Label name&lt;/th&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Configurable?&lt;/th&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;cluster&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Yes&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;The Kubernetes cluster or datacenter where the Mimir cluster is running. You can configure the cluster label via the &lt;code&gt;per_cluster_label&lt;/code&gt; field in the mixin configuration.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;namespace&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;No&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;The Kubernetes namespace where the Mimir cluster is running.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;name&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Yes&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Name of the component. For example, &lt;code&gt;query-frontend&lt;/code&gt;. You can configure the cluster label via the &lt;code&gt;per_component_loki_label&lt;/code&gt; field in the mixin configuration.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;]]></content><description>&lt;!-- Note: This topic is mounted in the GEM documentation. Ensure that all updates are also applicable to GEM. -->
&lt;h1 id="about-grafana-mimir-dashboards-and-alerts-requirements">About Grafana Mimir dashboards and alerts requirements&lt;/h1>
&lt;p>Grafana Mimir dashboards and alerts require certain labels to exist on metrics scraped from Grafana Mimir.&lt;/p></description></item><item><title>Deploying the Grafana Mimir monitoring mixin</title><link>https://grafana.com/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/deploying-monitoring-mixin/</link><pubDate>Tue, 22 Apr 2025 16:36:44 +0000</pubDate><guid>https://grafana.com/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/deploying-monitoring-mixin/</guid><content><![CDATA[&lt;!-- Note: This topic is mounted in the GEM documentation. Ensure that all updates are also applicable to GEM. --&gt;
&lt;h1 id=&#34;deploying-the-grafana-mimir-monitoring-mixin&#34;&gt;Deploying the Grafana Mimir monitoring mixin&lt;/h1&gt;
&lt;p&gt;Grafana Mimir exposes a &lt;code&gt;/metrics&lt;/code&gt; endpoint returning Prometheus metrics. You can configure your Prometheus server to scrape Grafana Mimir or you can use the built-in functionality of the &lt;a href=&#34;/docs/mimir/v2.16.x/manage/collecting-metrics-and-logs&#34;&gt;Helm chart to automatically send these metrics to a remote&lt;/a&gt;.
The endpoint is exposed on the Mimir HTTP server address / port which can be customized through &lt;code&gt;-server.http-listen-address&lt;/code&gt; and &lt;code&gt;-server.http-listen-port&lt;/code&gt; CLI flags or their respective YAML &lt;a href=&#34;/docs/mimir/configure/configuration-parameters&#34;&gt;config options&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;dashboards-and-alerts&#34;&gt;Dashboards and alerts&lt;/h2&gt;
&lt;p&gt;Grafana Mimir is shipped with a comprehensive set of production-ready Grafana dashboards and alerts to monitor the state and health of a Mimir cluster.&lt;/p&gt;
&lt;p&gt;Dashboards provide both a high-level and in-depth view of every aspect of a Grafana Mimir cluster.
You can take a look at all the available dashboards in &lt;a href=&#34;/docs/mimir/v2.16.x/manage/dashboards&#34;&gt;this overview&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Alerts allow you to monitor the health of a Mimir cluster. For each alert, we provide detailed &lt;a href=&#34;/docs/mimir/v2.16.x/mimir-runbooks&#34;&gt;runbooks&lt;/a&gt; to further investigate and fix the issue.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&#34;/docs/mimir/v2.16.x/manage/requirements&#34;&gt;requirements documentation&lt;/a&gt; lists prerequisites for using the Grafana Mimir dashboards and alerts.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&#34;/docs/mimir/v2.16.x/manage/installing-dashboards-and-alerts&#34;&gt;installation instructions&lt;/a&gt; show available options to install Grafana Mimir dashboards and alerts.&lt;/p&gt;
]]></content><description>&lt;!-- Note: This topic is mounted in the GEM documentation. Ensure that all updates are also applicable to GEM. -->
&lt;h1 id="deploying-the-grafana-mimir-monitoring-mixin">Deploying the Grafana Mimir monitoring mixin&lt;/h1>
&lt;p>Grafana Mimir exposes a &lt;code>/metrics&lt;/code> endpoint returning Prometheus metrics. You can configure your Prometheus server to scrape Grafana Mimir or you can use the built-in functionality of the &lt;a href="/docs/mimir/v2.16.x/manage/collecting-metrics-and-logs">Helm chart to automatically send these metrics to a remote&lt;/a>.
The endpoint is exposed on the Mimir HTTP server address / port which can be customized through &lt;code>-server.http-listen-address&lt;/code> and &lt;code>-server.http-listen-port&lt;/code> CLI flags or their respective YAML &lt;a href="/docs/mimir/configure/configuration-parameters">config options&lt;/a>.&lt;/p></description></item><item><title>Installing Grafana Mimir dashboards and alerts</title><link>https://grafana.com/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/installing-dashboards-and-alerts/</link><pubDate>Tue, 22 Apr 2025 16:36:44 +0000</pubDate><guid>https://grafana.com/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/installing-dashboards-and-alerts/</guid><content><![CDATA[&lt;!-- Note: This topic is mounted in the GEM documentation. Ensure that all updates are also applicable to GEM. --&gt;
&lt;h1 id=&#34;installing-grafana-mimir-dashboards-and-alerts&#34;&gt;Installing Grafana Mimir dashboards and alerts&lt;/h1&gt;
&lt;p&gt;Grafana Mimir is shipped with a comprehensive set of production-ready Grafana &lt;a href=&#34;/docs/mimir/v2.16.x/manage/dashboards&#34;&gt;dashboards&lt;/a&gt; and alerts to monitor the state and health of a Mimir cluster.&lt;/p&gt;
&lt;h2 id=&#34;requirements&#34;&gt;Requirements&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Grafana Mimir dashboards and alerts &lt;a href=&#34;/docs/mimir/v2.16.x/manage/requirements&#34;&gt;require specific labels&lt;/a&gt; to be set by Prometheus or Grafana Alloy when scraping your Mimir cluster metrics&lt;/li&gt;
&lt;li&gt;Some dashboards require recording rules that you should install in your Prometheus&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;install-from-package&#34;&gt;Install from package&lt;/h2&gt;
&lt;p&gt;Grafana Mimir provides ready to use Grafana dashboards in the &lt;code&gt;.json&lt;/code&gt; format and Prometheus alerts in the &lt;code&gt;.yaml&lt;/code&gt; format, that you can directly import into your Grafana installation and Prometheus config.&lt;/p&gt;
&lt;p&gt;The packaged dashboards and alerts have been compiled from the sources using a default configuration and don&amp;rsquo;t allow you to customize the &lt;a href=&#34;/docs/mimir/v2.16.x/manage/requirements&#34;&gt;required metrics label names&lt;/a&gt;.
If you need to customize the required metrics label names please choose one of the other installation options.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Download &lt;a href=&#34;https://github.com/grafana/mimir/tree/main/operations/mimir-mixin-compiled/dashboards&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;dashboards&lt;/a&gt;, &lt;a href=&#34;https://github.com/grafana/mimir/blob/main/operations/mimir-mixin-compiled/rules.yaml&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;recording rules&lt;/a&gt; and &lt;a href=&#34;https://github.com/grafana/mimir/blob/main/operations/mimir-mixin-compiled/alerts.yaml&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;alerts&lt;/a&gt; from Grafana Mimir repository&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;/docs/grafana/latest/dashboards/export-import/#import-dashboard&#34;&gt;Import dashboards in Grafana&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Install recording rules and alerts in your Prometheus&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;install-from-sources&#34;&gt;Install from sources&lt;/h2&gt;
&lt;p&gt;Grafana Mimir dashboards and alerts are built using &lt;a href=&#34;https://jsonnet.org&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Jsonnet&lt;/a&gt; language and you can compile them from sources.
If you choose this option, you can change the configuration to match your deployment, like customizing the &lt;a href=&#34;/docs/mimir/v2.16.x/manage/requirements&#34;&gt;required label names&lt;/a&gt;.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Checkout Mimir source code

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;git clone https://github.com/grafana/mimir.git&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Review the mixin configuration at &lt;code&gt;operations/mimir-mixin/config.libsonnet&lt;/code&gt;, and apply your changes if necessary.&lt;/li&gt;
&lt;li&gt;Compile the mixin

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;make build-mixin&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Import the dashboards saved at &lt;code&gt;operations/mimir-mixin-compiled/dashboards/&lt;/code&gt; in &lt;a href=&#34;/docs/grafana/latest/dashboards/export-import/#import-dashboard&#34;&gt;Grafana&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Install the recording rules saved at &lt;code&gt;operations/mimir-mixin-compiled/rules.yaml&lt;/code&gt; in your Prometheus&lt;/li&gt;
&lt;li&gt;Install the alerts saved at &lt;code&gt;operations/mimir-mixin-compiled/alerts.yaml&lt;/code&gt; in your Prometheus&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;install-dashboards-from-jsonnet-mixin&#34;&gt;Install dashboards from Jsonnet mixin&lt;/h2&gt;
&lt;p&gt;In case you&amp;rsquo;re already using Jsonnet to define your infrastructure as a code, you can vendor the Grafana Mimir mixin directly into your infrastructure repository and configure it overriding the &lt;code&gt;_config&lt;/code&gt; fields.
Given the exact setup really depends on a case-by-case basis, the following instructions are not meant to be prescriptive but just show the main steps required to vendor the mixin.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Initialize Jsonnet

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;jb init&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Install Grafana Mimir mixin

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;jb install github.com/grafana/mimir/operations/mimir-mixin@main&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Import and configure it

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;jsonnet&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-jsonnet&#34;&gt;(import &amp;#39;github.com/grafana/mimir/operations/mimir-mixin/mixin.libsonnet&amp;#39;) &amp;#43; {
  _config&amp;#43;:: {
    // Override the Grafana Mimir mixin config here.
  },
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;deploy-mixin-with-terraform&#34;&gt;Deploy mixin with Terraform&lt;/h3&gt;
&lt;p&gt;Based on Jsonnet configuration file, you can use &lt;a href=&#34;https://www.terraform.io/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Terraform&lt;/a&gt; to deploy the mixin in both Grafana and Grafana Mimir. To do so, you can use &lt;a href=&#34;https://registry.terraform.io/providers/grafana/grafana/latest&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;grafana/grafana&lt;/a&gt;, &lt;a href=&#34;https://registry.terraform.io/providers/ovh/mixtool/latest&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;ovh/mixtool&lt;/a&gt;, and &lt;a href=&#34;https://registry.terraform.io/providers/ovh/mimirtool/latest&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;ovh/mimirtool&lt;/a&gt; providers.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create a Terraform &lt;code&gt;main.tf&lt;/code&gt; file:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;hcl&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-hcl&#34;&gt;# Specify which providers to use
terraform {
  required_version = &amp;#34;&amp;gt;= 1.3.5&amp;#34;
  required_providers {
    mixtool = {
      source  = &amp;#34;ovh/mixtool&amp;#34;
      version = &amp;#34;~&amp;gt; 0.1.1&amp;#34;
    }
    mimirtool = {
      source  = &amp;#34;ovh/mimirtool&amp;#34;
      version = &amp;#34;~&amp;gt; 0.1.1&amp;#34;
    }
    grafana = {
      source  = &amp;#34;grafana/grafana&amp;#34;
      version = &amp;#34;~&amp;gt; 1.32.0&amp;#34;
    }
  }
}

# Configure providers if needed
provider &amp;#34;grafana&amp;#34; {
  url  = &amp;#34;http://localhost:9000&amp;#34;
  auth = &amp;#34;admin:admin&amp;#34;
}

provider &amp;#34;mimirtool&amp;#34; {
  address   = &amp;#34;http://localhost:9009&amp;#34;
  tenant_id = &amp;#34;anonymous&amp;#34;
}

locals {
  mixin_source   = &amp;#34;custom.libsonnet&amp;#34;
  jsonnet_path   = &amp;#34;vendor&amp;#34;
}

# Build alerts
data &amp;#34;mixtool_alerts&amp;#34; &amp;#34;mimir&amp;#34; {
  source       = local.mixin_source
  jsonnet_path = [local.jsonnet_path]
}

# Build rules
data &amp;#34;mixtool_rules&amp;#34; &amp;#34;mimir&amp;#34; {
  source       = local.mixin_source
  jsonnet_path = [local.jsonnet_path]
}

# Build dashboards
data &amp;#34;mixtool_dashboards&amp;#34; &amp;#34;mimir&amp;#34; {
  source       = local.mixin_source
  jsonnet_path = [local.jsonnet_path]
}

# Deploy rules
resource &amp;#34;mimirtool_ruler_namespace&amp;#34; &amp;#34;rules&amp;#34; {
  namespace   = &amp;#34;rules_community&amp;#34;
  config_yaml = data.mixtool_rules.mimir.rules
}

# Deploy alerts
resource &amp;#34;mimirtool_ruler_namespace&amp;#34; &amp;#34;alerts&amp;#34; {
  namespace   = &amp;#34;alerts_community&amp;#34;
  config_yaml = data.mixtool_alerts.mimir.alerts
}

# Deploy dashboards
resource &amp;#34;grafana_dashboard&amp;#34; &amp;#34;mimir&amp;#34; {
  for_each    = data.mixtool_dashboards.mimir.dashboards
  config_json = each.value
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Initialize Terraform:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;terraform init&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Review the changes that Terraform would apply to your infrastructure:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;terraform plan&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Deploy the changes:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;terraform apply&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
]]></content><description>&lt;!-- Note: This topic is mounted in the GEM documentation. Ensure that all updates are also applicable to GEM. -->
&lt;h1 id="installing-grafana-mimir-dashboards-and-alerts">Installing Grafana Mimir dashboards and alerts&lt;/h1>
&lt;p>Grafana Mimir is shipped with a comprehensive set of production-ready Grafana &lt;a href="/docs/mimir/v2.16.x/manage/dashboards">dashboards&lt;/a> and alerts to monitor the state and health of a Mimir cluster.&lt;/p></description></item><item><title>Viewing Grafana Mimir dashboards</title><link>https://grafana.com/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/</link><pubDate>Tue, 22 Apr 2025 16:36:44 +0000</pubDate><guid>https://grafana.com/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/</guid><content><![CDATA[&lt;!-- Note: This topic is mounted in the GEM documentation. Ensure that all updates are also applicable to GEM. --&gt;
&lt;h1 id=&#34;viewing-grafana-mimir-dashboards&#34;&gt;Viewing Grafana Mimir dashboards&lt;/h1&gt;
&lt;p&gt;Grafana Mimir provides the following production-ready dashboards.&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/overview/&#34;&gt;Overview&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/overview-resources/&#34;&gt;Overview resources&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/overview-networking/&#34;&gt;Overview networking&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/alertmanager/&#34;&gt;Alertmanager&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/alertmanager-resources/&#34;&gt;Alertmanager resources&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/compactor/&#34;&gt;Compactor&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/compactor-resources/&#34;&gt;Compactor resources&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/config/&#34;&gt;Config&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/object-store/&#34;&gt;Object Store&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/overrides/&#34;&gt;Overrides&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/queries/&#34;&gt;Queries&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/reads/&#34;&gt;Reads&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/remote-ruler-reads/&#34;&gt;Remote ruler reads&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/reads-networking/&#34;&gt;Reads networking&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/reads-resources/&#34;&gt;Reads resources&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/remote-ruler-reads-networking/&#34;&gt;Remote ruler reads networking&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/remote-ruler-reads-resources/&#34;&gt;Remote ruler reads resources&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/rollout-progress/&#34;&gt;Rollout progress&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/ruler/&#34;&gt;Ruler&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/scaling/&#34;&gt;Scaling&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/slow-queries/&#34;&gt;Slow queries&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/tenants/&#34;&gt;Tenants&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/top-tenants/&#34;&gt;Top tenants&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/writes/&#34;&gt;Writes&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/writes-networking/&#34;&gt;Writes networking&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/dashboards/writes-resources/&#34;&gt;Writes resources&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
]]></content><description>&lt;!-- Note: This topic is mounted in the GEM documentation. Ensure that all updates are also applicable to GEM. -->
&lt;h1 id="viewing-grafana-mimir-dashboards">Viewing Grafana Mimir dashboards&lt;/h1>
&lt;p>Grafana Mimir provides the following production-ready dashboards.&lt;/p></description></item><item><title>Collecting metrics and logs from Grafana Mimir</title><link>https://grafana.com/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/collecting-metrics-and-logs/</link><pubDate>Tue, 22 Apr 2025 17:05:43 +0000</pubDate><guid>https://grafana.com/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/collecting-metrics-and-logs/</guid><content><![CDATA[&lt;!-- Note: This topic is mounted in the GEM documentation. Ensure that all updates are also applicable to GEM. --&gt;
&lt;h1 id=&#34;collecting-metrics-and-logs-from-grafana-mimir&#34;&gt;Collecting metrics and logs from Grafana Mimir&lt;/h1&gt;
&lt;p&gt;You can collect logs and metrics from a Mimir or GEM cluster. To set up dashboards and alerts,
see &lt;a href=&#34;/docs/mimir/v2.16.x/manage/installing-dashboards-and-alerts&#34;&gt;Installing Grafana Mimir dashboards and alerts&lt;/a&gt;
or &lt;a href=&#34;/docs/grafana-cloud/monitor-infrastructure/integrations/integration-reference/integration-mimir/&#34;&gt;Grafana Cloud: Self-hosted Grafana Mimir integration&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;install-grafana-mimir-using-the-helm-chart&#34;&gt;Install Grafana Mimir using the Helm chart&lt;/h2&gt;
&lt;p&gt;As a best practice, use the Grafana Mimir Helm chart to install a Mimir or GEM cluster. When you deploy the Helm chart, ensure that you&amp;rsquo;ve enabled &lt;code&gt;ServiceMonitor&lt;/code&gt; objects. For more information, refer to the &lt;a href=&#34;/docs/helm-charts/mimir-distributed/latest/&#34;&gt;documentation for the Grafana Mimir Helm chart&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;After installing the cluster, deploy the Grafana Kubernetes Monitoring Helm chart, which contains instances of Grafana Alloy for collecting metrics and logs. These Alloy instances detect the &lt;code&gt;ServiceMonitor&lt;/code&gt; objects deployed as part of the Mimir Helm chart. For more information, refer to &lt;a href=&#34;/docs/grafana-cloud/monitor-infrastructure/kubernetes-monitoring/configuration/helm-chart/&#34;&gt;Grafana Kubernetes Monitoring Helm chart&lt;/a&gt;.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;The Grafana Mimir Helm chart contains built-in configurations for Grafana Agent, which is now deprecated. Use the Grafana Alloy configurations included in the Kubernetes Monitoring Helm chart instead.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h2 id=&#34;install-grafana-mimir-without-the-helm-chart&#34;&gt;Install Grafana Mimir without the Helm chart&lt;/h2&gt;
&lt;p&gt;You can still use the dashboards and rules in the monitoring-mixin,
even if you&amp;rsquo;re not deploying Mimir or GEM via the Helm chart.
If you&amp;rsquo;re not using the Helm chart, start by using the Grafana Alloy configuration
from 
    &lt;a href=&#34;/docs/enterprise-metrics/v2.16.x/manage/monitor/monitor-mimir/collecting-metrics-and-logs/#collect-metrics-and-logs-via-grafana-alloy&#34;&gt;Collect metrics and logs via Grafana Alloy&lt;/a&gt;.
It&amp;rsquo;s possible that you need to modify this configuration. For
more information, see &lt;a href=&#34;/docs/mimir/v2.16.x/manage/requirements&#34;&gt;dashboards and alerts requirements&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;service-discovery&#34;&gt;Service discovery&lt;/h3&gt;
&lt;p&gt;As a best practice, deploy Grafana Mimir on Kubernetes. The Grafana Alloy configuration relies on Kubernetes service discovery and Pod labels to constrain the collected metrics and
logs to ones that are strictly related to the Grafana Mimir deployment. If you are deploying Grafana Mimir on something other than Kubernetes, then replace the &lt;code&gt;discovery.kubernetes&lt;/code&gt; component with another &lt;a href=&#34;/docs/alloy/latest/reference/components/&#34;&gt;Alloy component&lt;/a&gt; that can discover the Mimir processes.&lt;/p&gt;
&lt;h3 id=&#34;collect-metrics-and-logs-via-grafana-alloy&#34;&gt;Collect metrics and logs via Grafana Alloy&lt;/h3&gt;
&lt;p&gt;Set up Grafana Alloy to collect logs and metrics from Mimir or GEM. To get started with Grafana Alloy,
refer to 
    &lt;a href=&#34;/docs/latest/latest/get-started/&#34;&gt;Get started with Grafana Alloy&lt;/a&gt;. After deploying Alloy, refer to 
    &lt;a href=&#34;/docs/alloy/latest/collect/prometheus-metrics/&#34;&gt;Collect and forward Prometheus metrics&lt;/a&gt; for instructions on how to configure your Alloy instance to scrape Mimir or GEM.&lt;/p&gt;
]]></content><description>&lt;!-- Note: This topic is mounted in the GEM documentation. Ensure that all updates are also applicable to GEM. -->
&lt;h1 id="collecting-metrics-and-logs-from-grafana-mimir">Collecting metrics and logs from Grafana Mimir&lt;/h1>
&lt;p>You can collect logs and metrics from a Mimir or GEM cluster. To set up dashboards and alerts,
see &lt;a href="/docs/mimir/v2.16.x/manage/installing-dashboards-and-alerts">Installing Grafana Mimir dashboards and alerts&lt;/a>
or &lt;a href="/docs/grafana-cloud/monitor-infrastructure/integrations/integration-reference/integration-mimir/">Grafana Cloud: Self-hosted Grafana Mimir integration&lt;/a>.&lt;/p></description></item></channel></rss>