8/27/2023 0 Comments Prometheus jmx exporter cassandraSelect which labels to include on table-level metrics. The default is to includeĪll global labels except HOST_ID. 'NODE' (node endpoint IP address), 'DATACENTER' (DC Valid options are: 'CLUSTER' (cluster name), Select which global labels to include on all exported Prometheus ConfigurationĬonfigure Prometheus to scrape the endpoint by adding the following to prometheus.yml: Not available (this feature has yet to be written). The set of metrics available is close to that of the agent - Gossiper related metrics are unavailable as these aren't readily available over JMX.Ĭurrently some additional metadata labels, such as the table type (table, index, view, etc) attached to the cassandra_table_* metrics, are The standalone mode was originally designed to assist with benchmarking and development of the exporter. Prometheus metrics will now be available at In this mode metrics will be queried via JMX which will incur a performance overhead. The exporter can be started via java -jar /path/to/cassandra-exporter-standalone-.jar. While it is preferable to run cassandra-exporter as a Java agent for performance, it can instead be run as an external application if required.ĭownload the latest release and copy cassandra-exporter-standalone-.jar to a location of your choosing. Prometheus metrics will now be available at Standalone Have been hand-tuned to produce easy-to-query output.įor example, the following PromQL query will return an estimate of the number of pending compactions per-keyspace, per-node. The few that are cached are done so for performance reasons.Ĭassandra-exporter exports metric families, where the names, labels, metric types (gauge, counter, summary, etc), and value scales See the Exported Metrics wiki page for a list of available metrics.Īll but a few select metrics exposed by cassandra-exporter are live with no caching involved. Other solutions can take tens of seconds, during which CPU time is consumed querying JMX and serialising values. Compared to the next-best, jmx_exporter, which completes exposition in ~8 seconds. In a worst-case benchmark, where the Cassandra schema contains 1000+ tables (resulting in ~174 thousand metrics),Ĭassandra-exporter completes exposition in ~140ms. IntroductionĬassandra-exporter enables high performance collection of Cassandra metrics and follows the Prometheus best practices for metrics naming and labeling.Ĭassandra-exporter is fast. Project Status: beta Note - The Cassandra-Exporter tool does not support all versions of Cassandra, see the compatibility section for more details on supported versions. Cassandra-exporter is a Java agent (with optional standalone mode) that exports Cassandra metrics to Prometheus.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |