Prepends a prefix to the bucket name for all metrics. The way the bucket name and metric name parameters
are used depends on the IDriverMetricsProvider that is provided to the builder.
In the case of the provider based on App.Metrics available in the CassandraCSharpDriver.AppMetrics package,
the bucket name will be concatenated with the metric name (separated by a dot), which makes the full metric path like this:
// Set metric prefixvar cluster =
Cluster.Builder()
.AddContactPoint("127.0.0.1")
.WithSessionName("session")
.WithMetrics(
metrics.CreateDriverMetricsProvider(),
new DriverMetricsOptions().SetBucketPrefix("web.app"))
.Build();
// Resulting metric name for the NodeMetric.Counters.Retries metric:
web.app.session.nodes.127_0_0_1:9042.retries.total
Namespace:Cassandra.Metrics Assembly:
Cassandra (in Cassandra.dll) Version: 3.13.0