Interface IDriverMetricsProvider
Provides metric implementations.
Namespace: Cassandra.Metrics.Abstractions
Assembly: Cassandra.dll
Syntax
public interface IDriverMetricsProvider
Methods
Counter(string, IMetric)
Creates a counter metric. bucket
will contain the prefix configured with Setmetric
is a Nodemetric
is a particular Node
Declaration
IDriverCounter Counter(string bucket, IMetric metric)
Parameters
Returns
Type | Description |
---|---|
IDriver |
Gauge(string, IMetric, Func<double?>)
Creates a gauge metric. bucket
will contain the prefix configured with Setmetric
is a Nodemetric
is a particular Node
Declaration
IDriverGauge Gauge(string bucket, IMetric metric, Func<double?> valueProvider)
Parameters
Returns
Type | Description |
---|---|
IDriver |
Meter(string, IMetric)
Creates a meter metric. bucket
will contain the prefix configured with Setmetric
is a Nodemetric
is a particular Node
Declaration
IDriverMeter Meter(string bucket, IMetric metric)
Parameters
Returns
Type | Description |
---|---|
IDriver |
ShutdownMetricsBucket(string)
Shutdowns/Disposes metrics created with the provided bucket
. This is especially useful to stop gauges which are supposed to run on a loop.
Declaration
void ShutdownMetricsBucket(string bucket)
Parameters
Type | Name | Description |
---|---|---|
string | bucket |
Timer(string, IMetric)
Creates a timer metric. bucket
will contain the prefix configured with Setmetric
is a Nodemetric
is a particular Node
Declaration
IDriverTimer Timer(string bucket, IMetric metric)
Parameters
Returns
Type | Description |
---|---|
IDriver |