On Wed, Nov 12, 2014 at 2:44 PM, Otis Gospodnetic <
otis.gospodne...@gmail.com> wrote:

> Hi,
>
> Is there a way to detect which version of Cassandra one is running?
> Is there an API for that, or a constant with this value, or maybe an MBean
> or some other way to get to this info?
>
> Here's the use case:
> SPM monitors Cassandra <http://sematext.com/spm/>, but Cassandra MBeans
> and metrics have or may change over time.
> How will SPM agent know which MBeans to look for, which metrics to
> extract, and how to interpret values it extracts without knowing which
> version of Cassandra it's monitoring?
> It could try probing for some known MBeans and deduce Cassandra version
> from that, but that feels a little sloppy.
> Ideally, we'd be able to grab the version from some MBean and based on
> that extract metrics we know are exposed in that version of Cassandra.
>
> Thanks,
> Otis
>

If you are using the Java driver, you can retrieve the version of Cassandra
for each Host:

http://www.datastax.com/drivers/java/2.1/com/datastax/driver/core/Host.html#getCassandraVersion()


> --
> Monitoring * Alerting * Anomaly Detection * Centralized Log Management
> Solr & Elasticsearch Support * http://sematext.com/
>
>


-- 

[:>-a)

Alex Popescu
Sen. Product Manager @ DataStax
@al3xandru

Reply via email to