{"id":21948179,"url":"https://github.com/evolution-gaming/prometheus-cassandra-driver","last_synced_at":"2026-03-01T19:32:12.937Z","repository":{"id":74384560,"uuid":"139994441","full_name":"evolution-gaming/prometheus-cassandra-driver","owner":"evolution-gaming","description":"Idiomatic Prometheus collector for Cassandra Java driver metrics","archived":false,"fork":false,"pushed_at":"2026-01-23T12:03:35.000Z","size":62,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":11,"default_branch":"master","last_synced_at":"2026-01-24T03:15:24.538Z","etag":null,"topics":["cassandra-driver","java","prometheus"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evolution-gaming.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-07-06T14:22:46.000Z","updated_at":"2026-01-23T12:03:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"acbf80b5-4382-4239-8806-0fdecf5342c7","html_url":"https://github.com/evolution-gaming/prometheus-cassandra-driver","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/evolution-gaming/prometheus-cassandra-driver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fprometheus-cassandra-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fprometheus-cassandra-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fprometheus-cassandra-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fprometheus-cassandra-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evolution-gaming","download_url":"https://codeload.github.com/evolution-gaming/prometheus-cassandra-driver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fprometheus-cassandra-driver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29981413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cassandra-driver","java","prometheus"],"created_at":"2024-11-29T05:12:17.865Z","updated_at":"2026-03-01T19:32:12.922Z","avatar_url":"https://github.com/evolution-gaming.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prometheus-cassandra-driver\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Build Status](https://github.com/evolution-gaming/prometheus-cassandra-driver/workflows/CI/badge.svg)](https://github.com/evolution-gaming/prometheus-cassandra-driver/actions?query=workflow%3ACI)\n[![Maven Central](https://img.shields.io/maven-central/v/com.evolution/prometheus-cassandra-driver)](https://central.sonatype.com/artifact/com.evolution/prometheus-cassandra-driver)\n\nIdiomatic Prometheus collector for Cassandra Java driver metrics.\n\nIt exposes the\n[built-in metrics](https://docs.datastax.com/en/developer/java-driver/3.7/manual/metrics/)\nin an idiomatic Prometheus way:\n- Prometheus naming conventions are used\n- where it is appropriate metrics are grouped under the same name with different set of labels\n- multiple client instances per one JVM are supported and differentiated using the `client` label\n\n## Compatibility\n* Prometheus JVM Client: \n  * versions before 0.10.0 should be used together with prometheus-cassandra-driver 0.7\n  * versions ≥ 0.10.0 supported starting with prometheus-cassandra-driver 1.0\n\n## Usage\n\n\u003cfont color=\"red\"\u003e NOTE the dependency organization change from `com.evolutiongaming` to `com.evolution`\u003c/font\u003e\n\nAdd the dependency:\n* Maven:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.evolution\u003c/groupId\u003e\n  \u003cartifactId\u003eprometheus-cassandra-driver\u003c/artifactId\u003e\n  \u003cversion\u003e1.1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n* SBT:\n```scala\nlibraryDependencies += \"com.evolution\" % \"prometheus-cassandra-driver\" % \"1.1.0\"\n```\n\nExample:\n```java\nCluster cluster = Cluster.builder().addContactPoint(\"127.0.0.1\").build();\nCassandraDriverMetricsCollector collector = new CassandraDriverMetricsCollector().register();\ncollector.addClient(\"global\", cluster);\nSession session = cluster.connect();\nsession.execute(\"select release_version from system.local;\");\n```\nResulting metrics:\n```\n# HELP cassandra_driver_known_hosts The number of Cassandra hosts currently known by the driver\n# TYPE cassandra_driver_known_hosts gauge\ncassandra_driver_known_hosts{client=\"global\",} 1.0\n# HELP cassandra_driver_connected_to_hosts The number of Cassandra hosts the driver is currently connected to\n# TYPE cassandra_driver_connected_to_hosts gauge\ncassandra_driver_connected_to_hosts{client=\"global\",} 1.0\n# HELP cassandra_driver_open_connections The total number of currently opened connections to Cassandra hosts\n# TYPE cassandra_driver_open_connections gauge\ncassandra_driver_open_connections{client=\"global\",} 2.0\n# HELP cassandra_driver_trashed_connections The total number of currently trashed connections to Cassandra hosts\n# TYPE cassandra_driver_trashed_connections gauge\ncassandra_driver_trashed_connections{client=\"global\",} 0.0\n# HELP cassandra_driver_in_flight_requests The total number of in flight requests to Cassandra hosts\n# TYPE cassandra_driver_in_flight_requests gauge\ncassandra_driver_in_flight_requests{client=\"global\",} 0.0\n# HELP cassandra_driver_request_queue_depth The total number of enqueued requests on all Cassandra hosts\n# TYPE cassandra_driver_request_queue_depth gauge\ncassandra_driver_request_queue_depth{client=\"global\",} 0.0\n# HELP cassandra_driver_executor_queue_depth The number of queued up tasks in the main internal executor, or -1, if that number is unknown\n# TYPE cassandra_driver_executor_queue_depth gauge\ncassandra_driver_executor_queue_depth{client=\"global\",} 0.0\n# HELP cassandra_driver_blocking_executor_queue_depth The number of queued up tasks in the blocking executor, or -1, if that number is unknown\n# TYPE cassandra_driver_blocking_executor_queue_depth gauge\ncassandra_driver_blocking_executor_queue_depth{client=\"global\",} 0.0\n# HELP cassandra_driver_reconnection_scheduler_queue_size The size of the work queue for the reconnection executor, or -1, if that number is unknown\n# TYPE cassandra_driver_reconnection_scheduler_queue_size gauge\ncassandra_driver_reconnection_scheduler_queue_size{client=\"global\",} 0.0\n# HELP cassandra_driver_task_scheduler_queue_size The size of the work queue for the scheduled tasks executor, or -1, if that number is unknown\n# TYPE cassandra_driver_task_scheduler_queue_size gauge\ncassandra_driver_task_scheduler_queue_size{client=\"global\",} 1.0\n# HELP cassandra_driver_sent_bytes_total The number of bytes sent so far\n# TYPE cassandra_driver_sent_bytes_total counter\ncassandra_driver_sent_bytes_total{client=\"global\",} 754.0\n# HELP cassandra_driver_received_bytes_total The number of bytes received so far\n# TYPE cassandra_driver_received_bytes_total counter\ncassandra_driver_received_bytes_total{client=\"global\",} 57578.0\n# HELP cassandra_driver_errors_total Encountered error events\n# TYPE cassandra_driver_errors_total counter\ncassandra_driver_errors_total{client=\"global\",error_type=\"connection-errors\",} 0.0\ncassandra_driver_errors_total{client=\"global\",error_type=\"authentication-errors\",} 0.0\ncassandra_driver_errors_total{client=\"global\",error_type=\"write-timeouts\",} 0.0\ncassandra_driver_errors_total{client=\"global\",error_type=\"read-timeouts\",} 0.0\ncassandra_driver_errors_total{client=\"global\",error_type=\"unavailables\",} 0.0\ncassandra_driver_errors_total{client=\"global\",error_type=\"client-timeouts\",} 0.0\ncassandra_driver_errors_total{client=\"global\",error_type=\"other-errors\",} 0.0\ncassandra_driver_errors_total{client=\"global\",error_type=\"retries\",} 0.0\ncassandra_driver_errors_total{client=\"global\",error_type=\"retries-on-write-timeout\",} 0.0\ncassandra_driver_errors_total{client=\"global\",error_type=\"retries-on-read-timeout\",} 0.0\ncassandra_driver_errors_total{client=\"global\",error_type=\"retries-on-unavailable\",} 0.0\ncassandra_driver_errors_total{client=\"global\",error_type=\"retries-on-client-timeout\",} 0.0\ncassandra_driver_errors_total{client=\"global\",error_type=\"retries-on-connection-error\",} 0.0\ncassandra_driver_errors_total{client=\"global\",error_type=\"retries-on-other-errors\",} 0.0\ncassandra_driver_errors_total{client=\"global\",error_type=\"ignores\",} 0.0\ncassandra_driver_errors_total{client=\"global\",error_type=\"ignores-on-write-timeout\",} 0.0\ncassandra_driver_errors_total{client=\"global\",error_type=\"ignores-on-read-timeout\",} 0.0\ncassandra_driver_errors_total{client=\"global\",error_type=\"ignores-on-unavailable\",} 0.0\ncassandra_driver_errors_total{client=\"global\",error_type=\"ignores-on-client-timeout\",} 0.0\ncassandra_driver_errors_total{client=\"global\",error_type=\"ignores-on-connection-error\",} 0.0\ncassandra_driver_errors_total{client=\"global\",error_type=\"ignores-on-other-errors\",} 0.0\ncassandra_driver_errors_total{client=\"global\",error_type=\"speculative-executions\",} 0.0\n# HELP cassandra_driver_request_time_seconds Exposes the rate and latency for user requests\n# TYPE cassandra_driver_request_time_seconds untyped\ncassandra_driver_request_time_seconds{client=\"global\",quantile=\"0\",} 0.016705277\ncassandra_driver_request_time_seconds{client=\"global\",quantile=\"0.5\",} 0.016705277\ncassandra_driver_request_time_seconds{client=\"global\",quantile=\"0.75\",} 0.016705277\ncassandra_driver_request_time_seconds{client=\"global\",quantile=\"0.95\",} 0.016705277\ncassandra_driver_request_time_seconds{client=\"global\",quantile=\"0.98\",} 0.016705277\ncassandra_driver_request_time_seconds{client=\"global\",quantile=\"0.99\",} 0.016705277\ncassandra_driver_request_time_seconds{client=\"global\",quantile=\"0.999\",} 0.016705277\ncassandra_driver_request_time_seconds{client=\"global\",quantile=\"1\",} 0.016705277\ncassandra_driver_request_time_seconds_count{client=\"global\",} 1.0\ncassandra_driver_request_time_seconds_mean{client=\"global\",} 0.016705277\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevolution-gaming%2Fprometheus-cassandra-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevolution-gaming%2Fprometheus-cassandra-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevolution-gaming%2Fprometheus-cassandra-driver/lists"}