Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrometheusResponse ¶
type PrometheusResponse struct {
Status string `json:"status"`
Data VectorResult `json:"data"`
}
type StorageAutoscalerReconciler ¶
type StorageAutoscalerReconciler struct {
client.Client
Log logr.Logger
OperatorNamespace string
SyncMap *sync.Map
EventCh chan event.GenericEvent
ScrapeInterval time.Duration
}
StorageAutoscalerReconciler is the reconciler for StorageAutoscaler objects
func (*StorageAutoscalerReconciler) Reconcile ¶
func (r *StorageAutoscalerReconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reconciles the StorageAutoscaler object
func (*StorageAutoscalerReconciler) SetupWithManager ¶
func (r *StorageAutoscalerReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the reconciler with the manager
type StorageAutoscalerScraper ¶
type StorageAutoscalerScraper struct {
client.Client
Log logr.Logger
OperatorNamespace string
ScrapeInterval time.Duration
SyncMap *sync.Map
EventCh chan event.GenericEvent
}
StorageAutoscalerScrpaer is the scraper for Prometheus metrics
func (*StorageAutoscalerScraper) ScrapeMetricsPeriodically ¶
func (r *StorageAutoscalerScraper) ScrapeMetricsPeriodically(ctx context.Context)
type VectorResult ¶
type VectorResult struct {
ResultType string `json:"resultType"`
Result model.Vector `json:"result"`
}
VectorResult contains only the vector result type
Click to show internal directories.
Click to hide internal directories.