Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultDuration = "24h"
)
Variables ¶
This section is empty.
Functions ¶
func AddJobTriggered ¶
func AddJobTriggered(appName, pipeline string)
AddJobTriggered New job triggered for application
func AddRequestDuration ¶
AddRequestDuration Add request duration for given endpoint
func DefaultBuckets ¶
func DefaultBuckets() []float64
DefaultBuckets Holds the buckets used as default
Types ¶
type Client ¶
type Client interface {
// GetCpuRequests returns a list of all pods with their CPU requets. The envName can be empty to return all environments.
GetCpuRequests(ctx context.Context, appName, envName string, compNames []string) ([]LabeledResults, error)
// GetCpuAverage returns a list of all pods with their average CPU usage. The envName can be empty to return all environments.
GetCpuAverage(ctx context.Context, appName, envName string, compNames []string, duration string) ([]LabeledResults, error)
// GetMemoryRequests returns a list of all pods with their Memory requets. The envName can be empty to return all environments.
GetMemoryRequests(ctx context.Context, appName, envName string, compNames []string) ([]LabeledResults, error)
// GetMemoryMaximum returns a list of all pods with their maximum Memory usage. The envName can be empty to return all environments.
GetMemoryMaximum(ctx context.Context, appName, envName string, compNames []string, duration string) ([]LabeledResults, error)
}
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
NewHandler Constructor for Prometheus handler
func (*Handler) GetReplicaResourcesUtilization ¶
func (pc *Handler) GetReplicaResourcesUtilization(ctx context.Context, radixClient versioned.Interface, appName, envName string) (*applicationModels.ReplicaResourcesUtilizationResponse, error)
GetReplicaResourcesUtilization Get used resources for the application. envName is optional. Will fallback to all copmonent environments to the application.
Click to show internal directories.
Click to hide internal directories.