[Strimzi] Strimzi with Prometheus

Das, Debdeep debdeep.das at in.unisys.com
Mon Aug 5 10:00:59 UTC 2019


Hello Paolo,

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.

 

Regards

Debdeep

 

Debdeep Das | Lead Engineer | Communication Products - InTC

Unisys | +91 9980101186 | debdeep.das at in.unisys.com <mailto:debdeep.das at in.unisys.com>  

 

 <http://www.unisys.com/> 

 

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.

 <http://www.linkedin.com/company/unisys>    <http://twitter.com/unisyscorp>   <http://www.youtube.com/theunisyschannel>  <http://www.facebook.com/unisyscorp>  <https://vimeo.com/unisys>  <http://blogs.unisys.com/> 

 

From: Paolo Patierno [mailto:ppatiern at redhat.com] 
Sent: Monday, August 5, 2019 1:33 PM
To: Das, Debdeep <debdeep.das at in.unisys.com>
Cc: strimzi at redhat.com
Subject: Re: [Strimzi] Strimzi with Prometheus

 

Hi Debdeep,

can you provide the Prometheus log? 

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?

 

Thanks,

Paolo.

 

On Mon, Jul 29, 2019 at 5:36 PM Das, Debdeep <debdeep.das at in.unisys.com <mailto:debdeep.das at in.unisys.com> > wrote:

Hello,

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.

I used the instructions here https://strimzi.io/docs/latest/#prometheus 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)

 

kubectl apply -f strimzi-service-monitor.yaml

kubectl apply -f prometheus-rules.yaml

kubectl apply -f prometheus.yaml

 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.

 

Regards

Debdeep 

 

Debdeep Das | Lead Engineer | Communication Products - InTC

Unisys | +91 9980101186 | debdeep.das at in.unisys.com <mailto:debdeep.das at in.unisys.com>  

 

 <http://www.unisys.com/> 

 

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.

 <http://www.linkedin.com/company/unisys>    <http://twitter.com/unisyscorp>   <http://www.youtube.com/theunisyschannel>  <http://www.facebook.com/unisyscorp>  <https://vimeo.com/unisys>  <http://blogs.unisys.com/> 

 

_______________________________________________
Strimzi mailing list
Strimzi at redhat.com <mailto:Strimzi at redhat.com> 
https://www.redhat.com/mailman/listinfo/strimzi




 

-- 

Paolo Patierno

Principal Software Engineer, Messaging & IoT

 <https://www.redhat.com/> Red Hat


 <https://red.ht/sig> 

 <https://redhat.com/summit> 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/strimzi/attachments/20190805/2ca45b14/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 4550 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/strimzi/attachments/20190805/2ca45b14/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 778 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/strimzi/attachments/20190805/2ca45b14/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 776 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/strimzi/attachments/20190805/2ca45b14/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 775 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/strimzi/attachments/20190805/2ca45b14/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.jpg
Type: image/jpeg
Size: 755 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/strimzi/attachments/20190805/2ca45b14/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.jpg
Type: image/jpeg
Size: 1737 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/strimzi/attachments/20190805/2ca45b14/attachment-0004.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.jpg
Type: image/jpeg
Size: 791 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/strimzi/attachments/20190805/2ca45b14/attachment-0005.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7855 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/strimzi/attachments/20190805/2ca45b14/attachment.p7s>


More information about the Strimzi mailing list