<div dir="ltr">Hi Debdeep,<div>can you provide the Prometheus log? </div><div>In the prometheus.yaml file, the ClusterRoleBinding resource provides the binding between the promethes-server service account and the cluster role but specifing "myproject" as namespace. Is you Kafka cluster running in the myproject namespace? Is the same for the Prometheus server you installed through the Prometheus operator?</div><div><br></div><div>Thanks,</div><div>Paolo.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 29, 2019 at 5:36 PM Das, Debdeep <<a href="mailto:debdeep.das@in.unisys.com">debdeep.das@in.unisys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div class="gmail-m_-3676818276404203180WordSection1"><p class="MsoNormal">Hello,<u></u><u></u></p><p class="MsoNormal">I have a Kubernetes environment with Strimzi and Kafka deployed. I am able to produce and consume successfully. I want to use Prometheus and Grafana to report metrics. The environment already has Prometheus Operator and Grafana installed, but in a different namespace than where I installed the Strimzi + Kafka.<u></u><u></u></p><p class="MsoNormal">I used the instructions here <a href="https://strimzi.io/docs/latest/#prometheus" target="_blank">https://strimzi.io/docs/latest/#prometheus</a> to add the rules.  I used the following instructions under the namespace where Strimzi-Kafka is installed, but I don’t see the Rules under Prometheus. The metrics are already added in the YAML to deploy the Kafka(+zookeper)<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-family:"Courier New"">kubectl apply -f strimzi-service-monitor.yaml<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">kubectl apply -f prometheus-rules.yaml<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">kubectl apply -f prometheus.yaml<u></u><u></u></span></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"> Can you please help what needs to be done to get the rules. I guess because the rules are not getting to Prometheus, the Grafana is not reporting anything on the Dashboard.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Regards<u></u><u></u></p><p class="MsoNormal">Debdeep <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal" style="margin-bottom:3pt"><b><span style="color:rgb(68,68,68)">Debdeep Das</span></b><span style="color:rgb(68,68,68)"> | Lead Engineer | Communication Products - InTC<u></u><u></u></span></p><p class="MsoNormal" style="margin-bottom:3pt"><span style="font-size:9pt;color:rgb(68,68,68)">Unisys | +91 9980101186 | </span><span style="font-size:9pt"><a href="mailto:debdeep.das@in.unisys.com" target="_blank"><span style="color:blue">debdeep.das@in.unisys.com</span></a><span style="color:rgb(68,68,68)"> <u></u><u></u></span></span></p><p class="MsoNormal" style="margin-bottom:3pt"><span style="font-size:8pt;color:rgb(32,114,188)"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-bottom:3pt"><a href="http://www.unisys.com/" target="_blank"><span style="color:windowtext;text-decoration:none"><img border="0" width="194" height="30" id="gmail-m_-3676818276404203180Picture_x0020_49" src="cid:16c60c24dd04cff311" alt="unisys_logo"></span></a><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:3pt"><span style="font-size:8pt;color:rgb(153,153,153)"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-bottom:3pt"><span style="font-size:7.5pt;color:rgb(153,153,153)">THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all devices.<u></u><u></u></span></p><p class="MsoNormal" style="margin-bottom:3pt"><a href="http://www.linkedin.com/company/unisys" target="_blank"><span style="font-size:7.5pt;color:rgb(153,153,153);text-decoration:none"><img border="0" width="16" height="16" id="gmail-m_-3676818276404203180Picture_x0020_13" src="cid:16c60c24dd05b006a2" alt="Grey_LI"></span></a><span style="font-size:7.5pt;color:rgb(153,153,153)">  </span><a href="http://twitter.com/unisyscorp" target="_blank"><span style="font-size:7.5pt;color:rgb(153,153,153);text-decoration:none"><img border="0" width="16" height="16" id="gmail-m_-3676818276404203180Picture_x0020_12" src="cid:16c60c24dd06917eb3" alt="Grey_TW"></span></a><span style="font-size:7.5pt;color:rgb(153,153,153)"> </span><a href="http://www.youtube.com/theunisyschannel" target="_blank"><span style="font-size:7.5pt;color:rgb(153,153,153);text-decoration:none"><img border="0" width="16" height="16" id="gmail-m_-3676818276404203180Picture_x0020_10" src="cid:16c60c24dd1772f6c4" alt="Grey_YT"></span></a><a href="http://www.facebook.com/unisyscorp" target="_blank"><span style="font-size:7.5pt;color:rgb(153,153,153);text-decoration:none"><img border="0" width="16" height="16" id="gmail-m_-3676818276404203180Picture_x0020_9" src="cid:16c60c24dd18546ed5" alt="Grey_FB"></span></a><a href="https://vimeo.com/unisys" target="_blank"><span style="font-size:7.5pt;color:rgb(153,153,153);text-decoration:none"><img border="0" width="16" height="16" id="gmail-m_-3676818276404203180Picture_x0020_6" src="cid:16c60c24dd1935e6e6" alt="Grey_Vimeo"></span></a><a href="http://blogs.unisys.com/" target="_blank"><span style="font-size:7.5pt;color:rgb(153,153,153);text-decoration:none"><img border="0" width="16" height="16" id="gmail-m_-3676818276404203180Picture_x0020_8" src="cid:16c60c24dd1a175ef7" alt="Grey_UB"></span></a><span style="font-size:7.5pt;color:rgb(153,153,153)"><u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p></div></div>_______________________________________________<br>
Strimzi mailing list<br>
<a href="mailto:Strimzi@redhat.com" target="_blank">Strimzi@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/strimzi" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/strimzi</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-weight:bold;margin:0px;padding:0px;text-transform:capitalize">Paolo Patierno<span style="text-transform:uppercase;color:rgb(170,170,170);margin:0px"></span></p><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;margin:0px;text-transform:capitalize"><span>Principal Software Engineer, Messaging & IoT</span></p><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;margin:0px 0px 4px"><a href="https://www.redhat.com/" style="color:rgb(0,136,206);margin:0px" target="_blank">Red Hat<span></span></a></p><div style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;margin-bottom:4px"></div><div style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;margin-top:12px"><table border="0"><tbody><tr><td width="100px"><a href="https://red.ht/sig" target="_blank"><img src="https://static.redhat.com/libs/redhat/brand-assets/latest/corp/logo.png" width="90" height="auto"></a></td><td style="font-size:12px"><div><a href="https://redhat.com/summit" target="_blank"><font size="2"><img width="53px" height="auto" src="https://static.redhat.com/libs/redhat/brand-assets/latest/events/red-hat-summit.png" style="outline: 0px;"></font></a></div></td></tr></tbody></table></div></div></div></div></div>