Package-Level Type Names (total 10, all are exported)
/* sort exporteds by: | */
Float64CountHandle is a typed handle for a float count metric. This handle is
passed at the recording point in order to know which metric to record on. Bounds are the bounds of this metric. This only applies to histogram
metrics. If unset or set with length 0, stats handlers will fall back to
default bounds. Whether this metric is on by default. The description of this metric. The required label keys for this metric. These are intended to
metrics emitted from a stats handler. The name of this metric. This name must be unique across the whole binary
(including any per call metrics). See
https://github.com/grpc/proposal/blob/master/A79-non-per-call-metrics-architecture.md#metric-instrument-naming-conventions
for metric naming conventions. The optional label keys for this metric. These are intended to attached
to metrics emitted from a stats handler if configured. The type of metric. This is set by the metric registry, and not intended
to be set by a component registering a metric. The unit (e.g. entries, seconds) of this metric. Descriptor returns the float64 count handle typecast to a pointer to a
MetricDescriptor. Record records the float64 count value on the metrics recorder provided.
func RegisterFloat64Count(descriptor MetricDescriptor) *Float64CountHandle
func MetricsRecorder.RecordFloat64Count(handle *Float64CountHandle, incr float64, labels ...string)
func google.golang.org/grpc/internal/stats.(*MetricsRecorderList).RecordFloat64Count(handle *Float64CountHandle, incr float64, labels ...string)
Float64HistoHandle is a typed handle for a float histogram metric. This
handle is passed at the recording point in order to know which metric to
record on. Bounds are the bounds of this metric. This only applies to histogram
metrics. If unset or set with length 0, stats handlers will fall back to
default bounds. Whether this metric is on by default. The description of this metric. The required label keys for this metric. These are intended to
metrics emitted from a stats handler. The name of this metric. This name must be unique across the whole binary
(including any per call metrics). See
https://github.com/grpc/proposal/blob/master/A79-non-per-call-metrics-architecture.md#metric-instrument-naming-conventions
for metric naming conventions. The optional label keys for this metric. These are intended to attached
to metrics emitted from a stats handler if configured. The type of metric. This is set by the metric registry, and not intended
to be set by a component registering a metric. The unit (e.g. entries, seconds) of this metric. Descriptor returns the float64 histo handle typecast to a pointer to a
MetricDescriptor. Record records the float64 histo value on the metrics recorder provided.
func RegisterFloat64Histo(descriptor MetricDescriptor) *Float64HistoHandle
func MetricsRecorder.RecordFloat64Histo(handle *Float64HistoHandle, incr float64, labels ...string)
func google.golang.org/grpc/internal/stats.(*MetricsRecorderList).RecordFloat64Histo(handle *Float64HistoHandle, incr float64, labels ...string)
Int64CountHandle is a typed handle for a int count metric. This handle
is passed at the recording point in order to know which metric to record
on. Bounds are the bounds of this metric. This only applies to histogram
metrics. If unset or set with length 0, stats handlers will fall back to
default bounds. Whether this metric is on by default. The description of this metric. The required label keys for this metric. These are intended to
metrics emitted from a stats handler. The name of this metric. This name must be unique across the whole binary
(including any per call metrics). See
https://github.com/grpc/proposal/blob/master/A79-non-per-call-metrics-architecture.md#metric-instrument-naming-conventions
for metric naming conventions. The optional label keys for this metric. These are intended to attached
to metrics emitted from a stats handler if configured. The type of metric. This is set by the metric registry, and not intended
to be set by a component registering a metric. The unit (e.g. entries, seconds) of this metric. Descriptor returns the int64 count handle typecast to a pointer to a
MetricDescriptor. Record records the int64 count value on the metrics recorder provided.
func RegisterInt64Count(descriptor MetricDescriptor) *Int64CountHandle
func MetricsRecorder.RecordInt64Count(handle *Int64CountHandle, incr int64, labels ...string)
func google.golang.org/grpc/internal/stats.(*MetricsRecorderList).RecordInt64Count(handle *Int64CountHandle, incr int64, labels ...string)
var google.golang.org/grpc/balancer/pickfirst/pickfirstleaf.connectionAttemptsFailedMetric *Int64CountHandle
var google.golang.org/grpc/balancer/pickfirst/pickfirstleaf.connectionAttemptsSucceededMetric *Int64CountHandle
var google.golang.org/grpc/balancer/pickfirst/pickfirstleaf.disconnectionsMetric *Int64CountHandle
Int64GaugeHandle is a typed handle for an int gauge metric. This handle is
passed at the recording point in order to know which metric to record on. Bounds are the bounds of this metric. This only applies to histogram
metrics. If unset or set with length 0, stats handlers will fall back to
default bounds. Whether this metric is on by default. The description of this metric. The required label keys for this metric. These are intended to
metrics emitted from a stats handler. The name of this metric. This name must be unique across the whole binary
(including any per call metrics). See
https://github.com/grpc/proposal/blob/master/A79-non-per-call-metrics-architecture.md#metric-instrument-naming-conventions
for metric naming conventions. The optional label keys for this metric. These are intended to attached
to metrics emitted from a stats handler if configured. The type of metric. This is set by the metric registry, and not intended
to be set by a component registering a metric. The unit (e.g. entries, seconds) of this metric. Descriptor returns the int64 gauge handle typecast to a pointer to a
MetricDescriptor. Record records the int64 histo value on the metrics recorder provided.
func RegisterInt64Gauge(descriptor MetricDescriptor) *Int64GaugeHandle
func MetricsRecorder.RecordInt64Gauge(handle *Int64GaugeHandle, incr int64, labels ...string)
func google.golang.org/grpc/internal/stats.(*MetricsRecorderList).RecordInt64Gauge(handle *Int64GaugeHandle, incr int64, labels ...string)
Int64HistoHandle is a typed handle for an int histogram metric. This handle
is passed at the recording point in order to know which metric to record on. Bounds are the bounds of this metric. This only applies to histogram
metrics. If unset or set with length 0, stats handlers will fall back to
default bounds. Whether this metric is on by default. The description of this metric. The required label keys for this metric. These are intended to
metrics emitted from a stats handler. The name of this metric. This name must be unique across the whole binary
(including any per call metrics). See
https://github.com/grpc/proposal/blob/master/A79-non-per-call-metrics-architecture.md#metric-instrument-naming-conventions
for metric naming conventions. The optional label keys for this metric. These are intended to attached
to metrics emitted from a stats handler if configured. The type of metric. This is set by the metric registry, and not intended
to be set by a component registering a metric. The unit (e.g. entries, seconds) of this metric. Descriptor returns the int64 histo handle typecast to a pointer to a
MetricDescriptor. Record records the int64 histo value on the metrics recorder provided.
func RegisterInt64Histo(descriptor MetricDescriptor) *Int64HistoHandle
func MetricsRecorder.RecordInt64Histo(handle *Int64HistoHandle, incr int64, labels ...string)
func google.golang.org/grpc/internal/stats.(*MetricsRecorderList).RecordInt64Histo(handle *Int64HistoHandle, incr int64, labels ...string)
Metric was replaced by direct usage of strings.
MetricDescriptor is the data for a registered metric. Bounds are the bounds of this metric. This only applies to histogram
metrics. If unset or set with length 0, stats handlers will fall back to
default bounds. Whether this metric is on by default. The description of this metric. The required label keys for this metric. These are intended to
metrics emitted from a stats handler. The name of this metric. This name must be unique across the whole binary
(including any per call metrics). See
https://github.com/grpc/proposal/blob/master/A79-non-per-call-metrics-architecture.md#metric-instrument-naming-conventions
for metric naming conventions. The optional label keys for this metric. These are intended to attached
to metrics emitted from a stats handler if configured. The type of metric. This is set by the metric registry, and not intended
to be set by a component registering a metric. The unit (e.g. entries, seconds) of this metric.
func DescriptorForMetric(metricName string) *MetricDescriptor
func (*Float64CountHandle).Descriptor() *MetricDescriptor
func (*Float64HistoHandle).Descriptor() *MetricDescriptor
func (*Int64CountHandle).Descriptor() *MetricDescriptor
func (*Int64GaugeHandle).Descriptor() *MetricDescriptor
func (*Int64HistoHandle).Descriptor() *MetricDescriptor
func RegisterFloat64Count(descriptor MetricDescriptor) *Float64CountHandle
func RegisterFloat64Histo(descriptor MetricDescriptor) *Float64HistoHandle
func RegisterInt64Count(descriptor MetricDescriptor) *Int64CountHandle
func RegisterInt64Gauge(descriptor MetricDescriptor) *Int64GaugeHandle
func RegisterInt64Histo(descriptor MetricDescriptor) *Int64HistoHandle
func google.golang.org/grpc/internal/stats.verifyLabels(desc *MetricDescriptor, labelsRecv ...string)
Metrics is an experimental legacy alias of the now-stable stats.MetricSet.
Metrics will be deleted in a future release.
MetricsRecorder records on metrics derived from metric registry. RecordFloat64Count records the measurement alongside labels on the float
count associated with the provided handle. RecordFloat64Histo records the measurement alongside labels on the float
histo associated with the provided handle. RecordInt64Count records the measurement alongside labels on the int
count associated with the provided handle. RecordInt64Gauge records the measurement alongside labels on the int
gauge associated with the provided handle. RecordInt64Histo records the measurement alongside labels on the int
histo associated with the provided handle.
*google.golang.org/grpc/internal/stats.MetricsRecorderList
func google.golang.org/grpc/balancer.ClientConn.MetricsRecorder() MetricsRecorder
func (*Float64CountHandle).Record(recorder MetricsRecorder, incr float64, labels ...string)
func (*Float64HistoHandle).Record(recorder MetricsRecorder, incr float64, labels ...string)
func (*Int64CountHandle).Record(recorder MetricsRecorder, incr int64, labels ...string)
func (*Int64GaugeHandle).Record(recorder MetricsRecorder, incr int64, labels ...string)
func (*Int64HistoHandle).Record(recorder MetricsRecorder, incr int64, labels ...string)
Package-Level Functions (total 10, in which 7 are exported)
DescriptorForMetric returns the MetricDescriptor from the global registry.
Returns nil if MetricDescriptor not present.
NewMetrics is an experimental legacy alias of the now-stable
stats.NewMetricSet. NewMetrics will be deleted in a future release.
RegisterFloat64Count registers the metric description onto the global
registry. It returns a typed handle to use to recording data.
NOTE: this function must only be called during initialization time (i.e. in
an init() function), and is not thread-safe. If multiple metrics are
registered with the same name, this function will panic.
RegisterFloat64Histo registers the metric description onto the global
registry. It returns a typed handle to use to recording data.
NOTE: this function must only be called during initialization time (i.e. in
an init() function), and is not thread-safe. If multiple metrics are
registered with the same name, this function will panic.
RegisterInt64Count registers the metric description onto the global registry.
It returns a typed handle to use to recording data.
NOTE: this function must only be called during initialization time (i.e. in
an init() function), and is not thread-safe. If multiple metrics are
registered with the same name, this function will panic.
RegisterInt64Gauge registers the metric description onto the global registry.
It returns a typed handle to use to recording data.
NOTE: this function must only be called during initialization time (i.e. in
an init() function), and is not thread-safe. If multiple metrics are
registered with the same name, this function will panic.
RegisterInt64Histo registers the metric description onto the global registry.
It returns a typed handle to use to recording data.
NOTE: this function must only be called during initialization time (i.e. in
an init() function), and is not thread-safe. If multiple metrics are
registered with the same name, this function will panic.
snapshotMetricsRegistryForTesting snapshots the global data of the metrics
registry. Returns a cleanup function that sets the metrics registry to its
original state.
Package-Level Variables (total 4, in which 1 is exported)
DefaultMetrics are the default metrics registered through global metrics
registry. This is written to at initialization time only, and is read only
after initialization.