executors

package
v1.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PROMETHEUS = "prometheus"
	OTELGRPC   = "otel"
)

Variables

This section is empty.

Functions

func GetExecutors

func GetExecutors() map[string]Executor

func NormalizeDesc

func NormalizeDesc(s string) string

func NormalizeMetric

func NormalizeMetric(s string) string

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 Executor

type Executor interface {
	Initialize() error
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL