Documentation
¶
Index ¶
- Constants
- func NewMetricStore(stalePeriodSeconds int) types.MemStore
- func NewParser() types.Parser
- type InternalMetrics
- func (m *InternalMetrics) IncMetricRead(name string)
- func (m *InternalMetrics) IncMetricWrite(name string)
- func (m *InternalMetrics) Init()
- func (m *InternalMetrics) Register() (err error)
- func (m *InternalMetrics) SetMetricValue(name, labels, timeOp, aggregation string, value float64)
- func (m *InternalMetrics) SetMetricValueClamped(name, labels, timeOp, aggregation, scaledObject, namespace string, ...)
- func (m *InternalMetrics) SetRuntimeInfo(cfg *util.Config) prometheus.Labels
- func (m *InternalMetrics) Unregister()
Constants ¶
View Source
const ( Prefix = "keda_otel_scaler_" KedaOtelScalerValue = Prefix + "metric_value" KedaOtelScalerValueClamped = Prefix + "metric_value_clamped" KedaOtelScalerMetricPointsWritten = Prefix + "metric_points_written" KedaOtelScalerMetricPointsRead = Prefix + "metric_points_read" KedaOtelScalerRuntimeInfo = Prefix + "runtime_info" )
Variables ¶
This section is empty.
Functions ¶
func NewMetricStore ¶
Types ¶
type InternalMetrics ¶
type InternalMetrics struct {
// contains filtered or unexported fields
}
func Metrics ¶
func Metrics() *InternalMetrics
func (*InternalMetrics) IncMetricRead ¶
func (m *InternalMetrics) IncMetricRead(name string)
func (*InternalMetrics) IncMetricWrite ¶
func (m *InternalMetrics) IncMetricWrite(name string)
func (*InternalMetrics) Init ¶
func (m *InternalMetrics) Init()
func (*InternalMetrics) Register ¶
func (m *InternalMetrics) Register() (err error)
func (*InternalMetrics) SetMetricValue ¶
func (m *InternalMetrics) SetMetricValue(name, labels, timeOp, aggregation string, value float64)
func (*InternalMetrics) SetMetricValueClamped ¶
func (m *InternalMetrics) SetMetricValueClamped(name, labels, timeOp, aggregation, scaledObject, namespace string, value float64)
func (*InternalMetrics) SetRuntimeInfo ¶
func (m *InternalMetrics) SetRuntimeInfo(cfg *util.Config) prometheus.Labels
Click to show internal directories.
Click to hide internal directories.