// Module included in the following assemblies:
//
// assembly-monitoring-kube.adoc
// assembly-monitoring-oc.adoc

[id='deploy-grafana-{context}']
= Deploying Grafana

.Prerequisites

* You must have already installed Prometheus and `kube-state-metrics`.

.Procedure

. Replace the namespace with the namespace {ProductName} is currently deployed to:
+
[options="nowrap",subs="attributes"]
----
sed -i 's/{ProductNamespace}/_my-namespace_/' install/components/grafana/*.yaml
----

. Create the Grafana deployment:
+
[options="nowrap",subs="attributes"]
----
{cmdcli} apply -f ./install/components/grafana
----

