Documentation ¶
Index ¶
- Variables
- func GetComponentCreationFailed() prometheus.Counter
- func GetComponentCreationSucceeded() prometheus.Counter
- func GetComponentCreationTotalReqs() prometheus.Counter
- func GetComponentDeletionFailed() prometheus.Counter
- func GetComponentDeletionSucceeded() prometheus.Counter
- func GetComponentDeletionTotalReqs() prometheus.Counter
- func HandleRateLimitMetrics(err error, labels prometheus.Labels)
- func IncrementComponentCreationFailed(oldError, newError string)
- func IncrementComponentCreationSucceeded(oldError, newError string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ApplicationDeletionTotalReqs = prometheus.NewCounter( prometheus.CounterOpts{ Name: "has_application_deletion_total", Help: "Number of application deletion requests processed", }, ) ApplicationDeletionFailed = prometheus.NewCounter( prometheus.CounterOpts{ Name: "has_application_failed_deletion_total", Help: "Number of failed application deletion requests", }, ) ApplicationDeletionSucceeded = prometheus.NewCounter( prometheus.CounterOpts{ Name: "has_application_successful_deletion_total", Help: "Number of successful application deletion requests", }, ) ApplicationCreationTotalReqs = prometheus.NewCounter( prometheus.CounterOpts{ Name: "has_application_creation_total", Help: "Number of application creation requests processed", }, ) ApplicationCreationFailed = prometheus.NewCounter( prometheus.CounterOpts{ Name: "has_application_failed_creation_total", Help: "Number of failed application creation requests", }, ) ApplicationCreationSucceeded = prometheus.NewCounter( prometheus.CounterOpts{ Name: "has_application_successful_creation_total", Help: "Number of successful application creation requests", }, ) )
View Source
var ( ComponentDeletionTotalReqs = prometheus.NewCounter( prometheus.CounterOpts{ Name: "has_component_deletion_total", Help: "Number of component deletion requests processed", }, ) ComponentDeletionFailed = prometheus.NewCounter( prometheus.CounterOpts{ Name: "has_component_failed_deletion_total", Help: "Number of failed component deletion requests", }, ) ComponentDeletionSucceeded = prometheus.NewCounter( prometheus.CounterOpts{ Name: "has_component_successful_deletion_total", Help: "Number of successful component deletion requests", }, ) )
View Source
var ( ControllerGitRequest = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "controller_git_request", Help: "Number of git operation requests. Not an SLI metric", }, []string{"controller", "tokenName", "operation"}, ) SecondaryRateLimitCounter = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "secondary_rate_limit_total", Help: "Number of times the secondary rate limit has been reached. Not an SLI metric", }, []string{"controller", "tokenName", "operation"}, ) PrimaryRateLimitCounter = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "primary_rate_limit_total", Help: "Number of times the primary rate limit has been reached. Not an SLI metric", }, []string{"controller", "tokenName", "operation"}, ) TokenPoolGauge = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "token_pool_gauge", Help: "Gauge counter to track whether a token has been primary/secondary rate limited", }, []string{"rateLimited", "tokenName"}, ) ImportGitRepoTotalReqs = prometheus.NewCounter( prometheus.CounterOpts{ Name: "has_import_git_repo_total", Help: "Number of import from git repository requests processed", }, ) ImportGitRepoFailed = prometheus.NewCounter( prometheus.CounterOpts{ Name: "has_failed_importc_git_repo_total", Help: "Number of failed import from git repository requests", }, ) ImportGitRepoSucceeded = prometheus.NewCounter( prometheus.CounterOpts{ Name: "has_successful_import_git_repo_total", Help: "Number of successful import from git repository requests", }, ) HASAvailabilityGauge = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "has_availability", Help: "Availability of the Konflux application service component", }, []string{"check"}, ) )
View Source
var ( GitOpsRepoCreationTotalReqs = prometheus.NewCounter( prometheus.CounterOpts{ Name: "has_gitops_repo_creation_total", Help: "Number of gitops creation requests processed", }, ) GitOpsRepoCreationFailed = prometheus.NewCounter( prometheus.CounterOpts{ Name: "has_gitops_failed_repo_creation_total", Help: "Number of failed gitops creation requests", }, ) GitOpsRepoCreationSucceeded = prometheus.NewCounter( prometheus.CounterOpts{ Name: "has_gitops_successful_repo_creation_total", Help: "Number of successful gitops creation requests", }, ) )
Functions ¶
func GetComponentCreationFailed ¶
func GetComponentCreationFailed() prometheus.Counter
func GetComponentCreationSucceeded ¶
func GetComponentCreationSucceeded() prometheus.Counter
func GetComponentCreationTotalReqs ¶
func GetComponentCreationTotalReqs() prometheus.Counter
func GetComponentDeletionFailed ¶
func GetComponentDeletionFailed() prometheus.Counter
func GetComponentDeletionSucceeded ¶
func GetComponentDeletionSucceeded() prometheus.Counter
func GetComponentDeletionTotalReqs ¶
func GetComponentDeletionTotalReqs() prometheus.Counter
func HandleRateLimitMetrics ¶
func HandleRateLimitMetrics(err error, labels prometheus.Labels)
HandleRateLimitMetrics checks the error type to verify a primary or secondary rate limit has been encountered
func IncrementComponentCreationFailed ¶
func IncrementComponentCreationFailed(oldError, newError string)
IncrementComponentCreationFailed increments the component creation failed metric. Pass in the new error to update the metric, otherwise it will be ignored.
func IncrementComponentCreationSucceeded ¶
func IncrementComponentCreationSucceeded(oldError, newError string)
IncrementComponentCreationSucceeded increments the component creation succeeded metric.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.