[jira] [Commented] (CASSANDRA-11967) Export metrics for prometheus in its native format

2016-06-24 Thread Robert Stupp (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-11967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15348490#comment-15348490
 ] 

Robert Stupp commented on CASSANDRA-11967:
--

Yup - that's right. You need a mapping file like [this 
one|https://github.com/snazy/prometheus-metrics-exporter/blob/master/mappings/cassandra-mappings.yaml]
 in the {{conf}} directory and add 
{{-Dorg.caffinitas.prometheus.config=cassandra-mappings.yaml}}. That helps to 
shorten the names that appear e.g. in Grafana and to re-organize the metrics as 
you personally prefer and to exclude metrics you don't want (like 
{{org.apache.cassandra.metrics.Table.EstimatedPartitionCount}}, which touches 
all sstables).

> Export metrics for prometheus in its native format
> --
>
> Key: CASSANDRA-11967
> URL: https://issues.apache.org/jira/browse/CASSANDRA-11967
> Project: Cassandra
>  Issue Type: Improvement
>Reporter: Robert Stupp
>Assignee: Robert Stupp
>Priority: Minor
> Fix For: 3.x
>
>
> https://github.com/snazy/prometheus-metrics-exporter allows to export 
> codahale metrics for prometheus.io. In order to integrate this, a minor 
> change to C* is necessary to load the library.
> This eliminates the need to use the additional graphite-exporter tool and 
> therefore also allows prometheus to track the up/down status of C*.
> (Will provide the patch soon)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-11967) Export metrics for prometheus in its native format

2016-06-24 Thread Sam Tunnicliffe (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-11967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15348481#comment-15348481
 ] 

Sam Tunnicliffe commented on CASSANDRA-11967:
-

+1 the C* changes look fine to me. 

I should note though that when I dropped in the necessary jars to smoke test 
with the Prometheus exporter, I'm seeing an awful lot of
{noformat}
INFO  [main] 2016-06-24 16:56:27,809 CassandraDaemon.java:375 - Trying to 
initialize metrics-exporter 
org.caffinitas.prometheusmetrics.PrometheusMetricsInitializer
INFO  [main] 2016-06-24 16:56:27,825 PrometheusMetricsExporter.java:82 - 
Setting up Prometheus metrics exporter on 127.0.0.1 port 8088 and SSL disabled
INFO  [main] 2016-06-24 16:56:27,829 PrometheusMetricsExporter.java:450 - No 
matching metric mapping for 
'org.apache.cassandra.metrics.Table.BloomFilterFalsePositives.system.built_views'
INFO  [main] 2016-06-24 16:56:27,830 PrometheusMetricsExporter.java:450 - No 
matching metric mapping for 
'org.apache.cassandra.metrics.Table.BytesFlushed.system.peers'
INFO  [main] 2016-06-24 16:56:27,830 PrometheusMetricsExporter.java:450 - No 
matching metric mapping for 
'org.apache.cassandra.metrics.Table.RowCacheHit.system.available_ranges'
INFO  [main] 2016-06-24 16:56:27,830 PrometheusMetricsExporter.java:450 - No 
matching metric mapping for 
'org.apache.cassandra.metrics.Table.MeanPartitionSize.system.views_builds_in_progress'
INFO  [main] 2016-06-24 16:56:27,831 PrometheusMetricsExporter.java:450 - No 
matching metric mapping for 
'org.apache.cassandra.metrics.Table.CoordinatorReadLatency.system.local'
INFO  [main] 2016-06-24 16:56:27,831 PrometheusMetricsExporter.java:450 - No 
matching metric mapping for 
'org.apache.cassandra.metrics.Table.EstimatedPartitionSizeHistogram.system.batches'
INFO  [main] 2016-06-24 16:56:27,831 PrometheusMetricsExporter.java:450 - No 
matching metric mapping for 
'org.apache.cassandra.metrics.Table.MemtableOffHeapSize.system.views_builds_in_progress'
INFO  [main] 2016-06-24 16:56:27,831 PrometheusMetricsExporter.java:450 - No 
matching metric mapping for 
'org.apache.cassandra.metrics.Table.SSTablesPerReadHistogram.system_traces.sessions'
INFO  [main] 2016-06-24 16:56:27,831 PrometheusMetricsExporter.java:450 - No 
matching metric mapping for 
'org.apache.cassandra.metrics.keyspace.LiveScannedHistogram.system'
INFO  [main] 2016-06-24 16:56:27,831 PrometheusMetricsExporter.java:450 - No 
matching metric mapping for 
'org.apache.cassandra.metrics.Table.CasPrepareLatency.system.schema_aggregates'
{noformat}


> Export metrics for prometheus in its native format
> --
>
> Key: CASSANDRA-11967
> URL: https://issues.apache.org/jira/browse/CASSANDRA-11967
> Project: Cassandra
>  Issue Type: Improvement
>Reporter: Robert Stupp
>Assignee: Robert Stupp
>Priority: Minor
> Fix For: 3.x
>
>
> https://github.com/snazy/prometheus-metrics-exporter allows to export 
> codahale metrics for prometheus.io. In order to integrate this, a minor 
> change to C* is necessary to load the library.
> This eliminates the need to use the additional graphite-exporter tool and 
> therefore also allows prometheus to track the up/down status of C*.
> (Will provide the patch soon)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)