You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by "wxn002@zjqunshuo.com" <wx...@zjqunshuo.com> on 2017/07/20 09:56:39 UTC

Quick question to config Prometheus to monitor Cassandra cluster

Hi,
I'm going to set up Prometheus+Grafana to monitor Cassandra cluster. I installed Prometheus and started it, but don't know how to config it to support Cassandra.
Any ideas or related articles are appreciated.

Cheers,
Simon 

Re: Quick question to config Prometheus to monitor Cassandra cluster

Posted by Aiman Parvaiz <ai...@steelhouse.com>.
Hi all
I am trying to get Prometheus going for one of my Cassandra 2.2.8 cluster. I have followed this link:
https://www.robustperception.io/monitoring-cassandra-with-prometheus/ and it installed fine but I have noticed that with this cluster (I have other 1.2.x cluster with prometheus working as expected) there are some metrics missing.

For example, I don’t get a Read and Write Count metric, I also noticed that OpsCenter 5.2.5 which I am also using with this cluster is also not showing all the metrics like Read and Write Latency always have “no data” while other metrics like Read and Write Count are plotting fine.
I am attaching screen shots for the above stated. Not trying to hijack this thread, please let me know if this question should be a separate post. Any help here would be appreciated.

Thanks


[cid:87F299C8-8EC6-4584-BA30-C5671B42F0D2@dal07.steelhouse.com]
[cid:4ADDF5A1-3397-4A29-9234-A5A61A5AC774@dal07.steelhouse.com]
On Jul 20, 2017, at 6:07 PM, wxn002@zjqunshuo.com<ma...@zjqunshuo.com> wrote:

Petrus & Kiran,
Thank you for the guide and suggestions. I will have a try.

Cheers,
Simon

From: Petrus Gomes<ma...@gmail.com>
Date: 2017-07-21 00:45
To: user<ma...@cassandra.apache.org>
Subject: Re: Quick question to config Prometheus to monitor Cassandra cluster
I use the same environment. Follow  a few links:
Use this link, is the best one to connect Cassandra and prometheus: https://www.robustperception.io/monitoring-cassandra-with-prometheus/
JMX agent: https://github.com/nabto/cassandra-prometheus

https://community.grafana.com/t/how-to-connect-prometheus-to-cassandra/1153
Grafana dashboard : https://grafana.com/dashboards/371

Create a connection on Grafana connecting to Prometheus.



On Thu, Jul 20, 2017 at 4:13 AM, Kiran mk <co...@gmail.com>> wrote:
You have to download the Prometheus HTTP jmx dependencies jar and download the Cassandra yaml and mention the jmx port in the config (7199).

Run the agent on specific port" on all the Cassandra nodes.

After this go to your Prometheus server and make the scrape config to metrics from all clients.



On 20-Jul-2017 3:27 PM, "wxn002@zjqunshuo.com<ma...@zjqunshuo.com>" <wx...@zjqunshuo.com>> wrote:
Hi,
I'm going to set up Prometheus+Grafana to monitor Cassandra cluster. I installed Prometheus and started it, but don't know how to config it to support Cassandra.
Any ideas or related articles are appreciated.

Cheers,
Simon


Re: Quick question to config Prometheus to monitor Cassandra cluster

Posted by "wxn002@zjqunshuo.com" <wx...@zjqunshuo.com>.
Petrus & Kiran,
Thank you for the guide and suggestions. I will have a try.

Cheers,
Simon
 
From: Petrus Gomes
Date: 2017-07-21 00:45
To: user
Subject: Re: Quick question to config Prometheus to monitor Cassandra cluster
I use the same environment. Follow  a few links:
Use this link, is the best one to connect Cassandra and prometheus: https://www.robustperception.io/monitoring-cassandra-with-prometheus/
JMX agent: https://github.com/nabto/cassandra-prometheus

https://community.grafana.com/t/how-to-connect-prometheus-to-cassandra/1153
Grafana dashboard : https://grafana.com/dashboards/371

Create a connection on Grafana connecting to Prometheus.



On Thu, Jul 20, 2017 at 4:13 AM, Kiran mk <co...@gmail.com> wrote:
You have to download the Prometheus HTTP jmx dependencies jar and download the Cassandra yaml and mention the jmx port in the config (7199).

Run the agent on specific port" on all the Cassandra nodes.

After this go to your Prometheus server and make the scrape config to metrics from all clients.



On 20-Jul-2017 3:27 PM, "wxn002@zjqunshuo.com" <wx...@zjqunshuo.com> wrote:
Hi,
I'm going to set up Prometheus+Grafana to monitor Cassandra cluster. I installed Prometheus and started it, but don't know how to config it to support Cassandra.
Any ideas or related articles are appreciated.

Cheers,
Simon 



Re: Quick question to config Prometheus to monitor Cassandra cluster

Posted by Petrus Gomes <pe...@gmail.com>.
I use the same environment. Follow  a few links:
Use this link, is the best one to connect Cassandra and prometheus:
https://www.robustperception.io/monitoring-cassandra-with-prometheus/
JMX agent: https://github.com/nabto/cassandra-prometheus

https://community.grafana.com/t/how-to-connect-prometheus-to-cassandra/1153
Grafana dashboard : https://grafana.com/dashboards/371

Create a connection on Grafana connecting to Prometheus.



On Thu, Jul 20, 2017 at 4:13 AM, Kiran mk <co...@gmail.com> wrote:

> You have to download the Prometheus HTTP jmx dependencies jar and download
> the Cassandra yaml and mention the jmx port in the config (7199).
>
> Run the agent on specific port" on all the Cassandra nodes.
>
> After this go to your Prometheus server and make the scrape config to
> metrics from all clients.
>
>
>
> On 20-Jul-2017 3:27 PM, "wxn002@zjqunshuo.com" <wx...@zjqunshuo.com>
> wrote:
>
> Hi,
> I'm going to set up Prometheus+Grafana to monitor Cassandra cluster. I
> installed Prometheus and started it, but don't know how to config it to
> support Cassandra.
> Any ideas or related articles are appreciated.
>
> Cheers,
> Simon
>
>
>

Re: Quick question to config Prometheus to monitor Cassandra cluster

Posted by Kiran mk <co...@gmail.com>.
You have to download the Prometheus HTTP jmx dependencies jar and download
the Cassandra yaml and mention the jmx port in the config (7199).

Run the agent on specific port" on all the Cassandra nodes.

After this go to your Prometheus server and make the scrape config to
metrics from all clients.



On 20-Jul-2017 3:27 PM, "wxn002@zjqunshuo.com" <wx...@zjqunshuo.com> wrote:

Hi,
I'm going to set up Prometheus+Grafana to monitor Cassandra cluster. I
installed Prometheus and started it, but don't know how to config it to
support Cassandra.
Any ideas or related articles are appreciated.

Cheers,
Simon

Re: Quick question to config Prometheus to monitor Cassandra cluster

Posted by Kiran mk <co...@gmail.com>.
You have to download the Prometheus HTTP jmx dependencies jar and download
the Cassandra yaml and mention the jmx port in the config (7199).

Run the agent on specific port" on all the Cassandra nodes.

After this go to your Prometheus server and make the scrape config to
metrics from all clients.



On 20-Jul-2017 3:27 PM, "wxn002@zjqunshuo.com" <wx...@zjqunshuo.com> wrote:

Hi,
I'm going to set up Prometheus+Grafana to monitor Cassandra cluster. I
installed Prometheus and started it, but don't know how to config it to
support Cassandra.
Any ideas or related articles are appreciated.

Cheers,
Simon