<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Hello Paolo,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Let me explain the environment I have and maybe there is something not setup right. I am using Rancher on Kubernetes. On the environment Prometheus and Grafana runs on a separate namespace “cattle-prometheus”. My Kafka cluster is deployed in strimzi-kafka-operator namespace. I want to produce the metrics of the kafka cluster in strimzi-kafka-operator name space to the prometheus instance in cattle-prometheus namespace. I am not sure what are the steps to do so. If you can help me with the steps to do so, it will be great. I could not figure that from the documentation.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Regards<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Debdeep<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='margin-bottom:3.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#444444'>Debdeep Das</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#444444'> | Lead Engineer | Communication Products - InTC<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:3.0pt'><span style='font-size:9.0pt;font-family:"Calibri",sans-serif;color:#444444'>Unisys | +91 9980101186 | </span><span style='font-size:9.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><a href="mailto:debdeep.das@in.unisys.com">debdeep.das@in.unisys.com</a></span><span style='font-size:9.0pt;font-family:"Calibri",sans-serif;color:#444444'> <o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:3.0pt'><span style='font-size:8.0pt;font-family:"Calibri",sans-serif;color:#2072BC'><o:p> </o:p></span></p><p class=MsoNormal style='margin-bottom:3.0pt'><a href="http://www.unisys.com/"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;text-decoration:none'><img border=0 width=194 height=30 id="Picture_x0020_49" src="cid:image001.png@01D54BA2.C31B5070" alt="unisys_logo"></span></a><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:3.0pt'><span style='font-size:8.0pt;font-family:"Calibri",sans-serif;color:#999999'><o:p> </o:p></span></p><p class=MsoNormal style='margin-bottom:3.0pt'><span style='font-size:7.5pt;font-family:"Calibri",sans-serif;color:#999999'>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.<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:3.0pt'><a href="http://www.linkedin.com/company/unisys"><span style='font-size:7.5pt;font-family:"Calibri",sans-serif;color:#999999;text-decoration:none'><img border=0 width=16 height=16 id="Picture_x0020_13" src="cid:image002.jpg@01D54BA2.C31B5070" alt="Grey_LI"></span></a><span style='font-size:7.5pt;font-family:"Calibri",sans-serif;color:#999999'>  </span><a href="http://twitter.com/unisyscorp"><span style='font-size:7.5pt;font-family:"Calibri",sans-serif;color:#999999;text-decoration:none'><img border=0 width=16 height=16 id="Picture_x0020_12" src="cid:image003.jpg@01D54BA2.C31B5070" alt="Grey_TW"></span></a><span style='font-size:7.5pt;font-family:"Calibri",sans-serif;color:#999999'> </span><a href="http://www.youtube.com/theunisyschannel"><span style='font-size:7.5pt;font-family:"Calibri",sans-serif;color:#999999;text-decoration:none'><img border=0 width=16 height=16 id="Picture_x0020_10" src="cid:image004.jpg@01D54BA2.C31B5070" alt="Grey_YT"></span></a><a href="http://www.facebook.com/unisyscorp"><span style='font-size:7.5pt;font-family:"Calibri",sans-serif;color:#999999;text-decoration:none'><img border=0 width=16 height=16 id="Picture_x0020_9" src="cid:image005.jpg@01D54BA2.C31B5070" alt="Grey_FB"></span></a><a href="https://vimeo.com/unisys"><span style='font-size:7.5pt;font-family:"Calibri",sans-serif;color:#999999;text-decoration:none'><img border=0 width=16 height=16 id="Picture_x0020_6" src="cid:image006.jpg@01D54BA2.C31B5070" alt="Grey_Vimeo"></span></a><a href="http://blogs.unisys.com/"><span style='font-size:7.5pt;font-family:"Calibri",sans-serif;color:#999999;text-decoration:none'><img border=0 width=16 height=16 id="Picture_x0020_8" src="cid:image007.jpg@01D54BA2.C31B5070" alt="Grey_UB"></span></a><span style='font-size:7.5pt;font-family:"Calibri",sans-serif;color:#999999'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> Paolo Patierno [mailto:ppatiern@redhat.com] <br><b>Sent:</b> Monday, August 5, 2019 1:33 PM<br><b>To:</b> Das, Debdeep <debdeep.das@in.unisys.com><br><b>Cc:</b> strimzi@redhat.com<br><b>Subject:</b> Re: [Strimzi] Strimzi with Prometheus<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Hi Debdeep,<o:p></o:p></p><div><p class=MsoNormal>can you provide the Prometheus log? <o:p></o:p></p></div><div><p class=MsoNormal>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?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Thanks,<o:p></o:p></p></div><div><p class=MsoNormal>Paolo.<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>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:<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Hello,<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>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.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>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)<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Courier New"'>kubectl apply -f strimzi-service-monitor.yaml</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Courier New"'>kubectl apply -f prometheus-rules.yaml</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Courier New"'>kubectl apply -f prometheus.yaml</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> 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.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Regards<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Debdeep <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:3.0pt'><b><span style='color:#444444'>Debdeep Das</span></b><span style='color:#444444'> | Lead Engineer | Communication Products - InTC</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:3.0pt'><span style='font-size:9.0pt;color:#444444'>Unisys | +91 9980101186 | </span><span style='font-size:9.0pt'><a href="mailto:debdeep.das@in.unisys.com" target="_blank">debdeep.das@in.unisys.com</a><span style='color:#444444'> </span></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:3.0pt'><span style='font-size:8.0pt;color:#2072BC'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:3.0pt'><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:image001.png@01D54BA2.C31B5070" alt="unisys_logo"></span></a><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:3.0pt'><span style='font-size:8.0pt;color:#999999'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:3.0pt'><span style='font-size:7.5pt;color:#999999'>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.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:3.0pt'><a href="http://www.linkedin.com/company/unisys" target="_blank"><span style='font-size:7.5pt;color:#999999;text-decoration:none'><img border=0 width=16 height=16 id="gmail-m_-3676818276404203180Picture_x0020_13" src="cid:image002.jpg@01D54BA2.C31B5070" alt="Grey_LI"></span></a><span style='font-size:7.5pt;color:#999999'>  </span><a href="http://twitter.com/unisyscorp" target="_blank"><span style='font-size:7.5pt;color:#999999;text-decoration:none'><img border=0 width=16 height=16 id="gmail-m_-3676818276404203180Picture_x0020_12" src="cid:image003.jpg@01D54BA2.C31B5070" alt="Grey_TW"></span></a><span style='font-size:7.5pt;color:#999999'> </span><a href="http://www.youtube.com/theunisyschannel" target="_blank"><span style='font-size:7.5pt;color:#999999;text-decoration:none'><img border=0 width=16 height=16 id="gmail-m_-3676818276404203180Picture_x0020_10" src="cid:image004.jpg@01D54BA2.C31B5070" alt="Grey_YT"></span></a><a href="http://www.facebook.com/unisyscorp" target="_blank"><span style='font-size:7.5pt;color:#999999;text-decoration:none'><img border=0 width=16 height=16 id="gmail-m_-3676818276404203180Picture_x0020_9" src="cid:image005.jpg@01D54BA2.C31B5070" alt="Grey_FB"></span></a><a href="https://vimeo.com/unisys" target="_blank"><span style='font-size:7.5pt;color:#999999;text-decoration:none'><img border=0 width=16 height=16 id="gmail-m_-3676818276404203180Picture_x0020_6" src="cid:image006.jpg@01D54BA2.C31B5070" alt="Grey_Vimeo"></span></a><a href="http://blogs.unisys.com/" target="_blank"><span style='font-size:7.5pt;color:#999999;text-decoration:none'><img border=0 width=16 height=16 id="gmail-m_-3676818276404203180Picture_x0020_8" src="cid:image007.jpg@01D54BA2.C31B5070" alt="Grey_UB"></span></a><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div></div><p class=MsoNormal>_______________________________________________<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" target="_blank">https://www.redhat.com/mailman/listinfo/strimzi</a><o:p></o:p></p></blockquote></div><p class=MsoNormal><br clear=all><o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal>-- <o:p></o:p></p><div><div><div><div><p style='margin:0in;margin-bottom:.0001pt;text-transform:capitalize'><b><span style='font-family:"Arial",sans-serif;color:black'>Paolo Patierno<o:p></o:p></span></b></p><p style='margin:0in;margin-bottom:.0001pt;text-transform:capitalize'><span style='font-family:"Arial",sans-serif;color:black'>Principal Software Engineer, Messaging & IoT<o:p></o:p></span></p><p style='margin:0in;margin-bottom:.0001pt'><span style='font-family:"Arial",sans-serif;color:black'><a href="https://www.redhat.com/" target="_blank"><span style='color:#0088CE'>Red Hat</span></a><o:p></o:p></span></p><div style='margin-top:9.0pt'><table class=MsoNormalTable border=0 cellspacing=3 cellpadding=0><tr><td style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><a href="https://red.ht/sig" target="_blank"><span style='text-decoration:none'><img border=0 width=90 id="_x0000_i1032" src="https://static.redhat.com/libs/redhat/brand-assets/latest/corp/logo.png"></span></a><o:p></o:p></p></td><td style='padding:.75pt .75pt .75pt .75pt'><div><p class=MsoNormal><span style='font-size:9.0pt'><a href="https://redhat.com/summit" target="_blank"><span style='font-size:10.0pt;text-decoration:none'><img border=0 id="_x0000_i1033" src="https://static.redhat.com/libs/redhat/brand-assets/latest/events/red-hat-summit.png"></span></a><o:p></o:p></span></p></div></td></tr></table><p class=MsoNormal><o:p> </o:p></p></div></div></div></div></div></div></body></html>