// This assembly is included in the following assemblies:
//
// metrics/assembly_metrics-kafka.adoc

[id='proc-metrics-kafka-{context}']

= Copying Prometheus metrics configuration to a Kafka resource

To use Grafana dashboards for monitoring, you can copy xref:ref-metrics-config-files-{context}[the example metrics configuration to a `Kafka` resource].

.Procedure
Execute the following steps for each `Kafka` resource in your deployment.

. Update the `Kafka` resource in an editor.
+
[source,shell,subs="+quotes,attributes"]
----
kubectl edit kafka _my-cluster_
----

. Copy the xref:ref-metrics-config-files-{context}[example configuration in `kafka-metrics.yaml`] to your own `Kafka` resource definition.

. Save the file, exit the editor and wait for the updated resource to be reconciled.
