<p>I have to build a monitoring solution using Prometheus and Graphana for a service which is built using React(front end)+ Node js + Db2(containerised) . I have no idea where to start,can someone suggest me the resources where to learn?Thank you.</p>

vinith alampally
<p>First of all, you need to install Prometheus and Grafana in your Kubernetes cluster following the instructions given for each:</p>
<p>Prometheus: <a href="https://prometheus.io/docs/prometheus/latest/installation/" rel="nofollow noreferrer">https://prometheus.io/docs/prometheus/latest/installation/</a></p>
<p>Grafana: <a href="https://grafana.com/docs/grafana/latest/installation/" rel="nofollow noreferrer">https://grafana.com/docs/grafana/latest/installation/</a></p>
<p>Next, you need to understand that Prometheus is a pull-based metrics collection system. It retrieves metrics from configured targets (endpoints) at given intervals and displays the results.</p>
<p>You can setup the working monitoring system by implementing the below steps:</p>
<ol>
<li>Instrument your application code for Prometheus to be able to scrape metric from -
For this, you need to add instrumentation to the code via one of the supported <a href="https://prometheus.io/docs/instrumenting/clientlibs/" rel="nofollow noreferrer">Prometheus client libraries</a>.</li>
<li>Configure Prometheus to scrape the metrics exposed by the service - Prometheus supports a K8s custom resource named <code>ServiceMonitor</code> introduced by the <a href="https://coreos.com/blog/the-prometheus-operator.html" rel="nofollow noreferrer">Prometheus Operator</a> that can be used to configure Prometheus to scrape the metric defined in step 1.</li>
<li>Observe the scraped metrics - Next, you can observe the defined metric in either the Prometheus UI or Grafana UI by <a href="https://prometheus.io/docs/visualization/grafana/" rel="nofollow noreferrer">configuring Grafana support for Prometheus</a>.</li>
</ol>
