Brains of the Kubernetes Horizontal Pod Autoscaler wrapped in a simple API.
github.com/jthomperoo/k8shorizmetrics/v3
to
github.com/jthomperoo/k8shorizmetrics/v4
.PodMetricsInfo
is now serialised as podMetricsInfo
rather
than pod_metrics_info
.v1.22
.github.com/jthomperoo/k8shorizmetrics/v2
to
github.com/jthomperoo/k8shorizmetrics/v3
.GathererMultiMetricError
error type if any of the metrics fail to
gather. This error is returned for partial errors, meaning some metrics gathered successfully and others did not.
If this partial error occurs the GathererMultiMetricError
error will have the Partial
property set to true
. This
can be checked for using errors.As
.EvaluatorMultiMetricError
error type if any of the metrics fail to
evaluate. This error is returned for partial errors, meaning some metrics evaluted successfully and others did not.
If this partial error occurs the EvaluatorMultiMetricError
error will have the Partial
property set to true
. This
can be checked for using errors.As
.autoscaling/v2beta2
to the graduated autoscaling/v2
. This drops
support for Kubernetes versions v1.22
and below.github.com/jthomperoo/k8shorizmetrics
to
github.com/jthomperoo/k8shorizmetrics/v2
.v0.25.4
to support Kubernetes v1.23+
.v1.19
.GatherWithOptions
and GatherSingleMetricWithOptions
methods which allow you to provide the CPU initialization
and delay of initial readiness status at call time as parameters.EvaluateWithOptions
and EvaluateSingleMetricWithOptions
methods which allow you to provide the tolerance at
call time as a parameter.CPUInitializationPeriod
and DelayOfInitialReadinessStatus
now exposed as member variables of the Gatherer
.Tolerance
now exposed as a member variable of the Evaluator
.