Documentation ¶
Index ¶
Constants ¶
View Source
const ( PROMETHEUS = "prometheus" OTELGRPC = "otel" )
Variables ¶
This section is empty.
Functions ¶
func GetExecutors ¶
func NormalizeDesc ¶
func NormalizeMetric ¶
func PushToPrometheus ¶
func PushToPrometheus(asMetric statprocessors.AerospikeStat, ch chan<- prometheus.Metric)
This is a common utility, used by all the statprocessors to push metric to prometheus
Types ¶
type OtelExecutor ¶
type OtelExecutor struct { }
func (OtelExecutor) Initialize ¶
func (oe OtelExecutor) Initialize() error
Exporter interface implementation
type PrometheusHttpExecutor ¶
type PrometheusHttpExecutor struct {
// contains filtered or unexported fields
}
func (PrometheusHttpExecutor) Initialize ¶
func (pm PrometheusHttpExecutor) Initialize() error
type PrometheusImpl ¶
type PrometheusImpl struct {
// contains filtered or unexported fields
}
PrometheusImpl communicates with Aerospike and helps collecting metrices
func NewPrometheusImpl ¶
func NewPrometheusImpl() (o *PrometheusImpl)
func (*PrometheusImpl) Collect ¶
func (o *PrometheusImpl) Collect(ch chan<- prometheus.Metric)
Collect function of Prometheus' Collector interface
func (*PrometheusImpl) Describe ¶
func (o *PrometheusImpl) Describe(ch chan<- *prometheus.Desc)
Describe function of Prometheus' Collector interface
Source Files ¶
Click to show internal directories.
Click to hide internal directories.