Documentation ¶
Index ¶
- Constants
- type DeploymentStatus
- type History
- type Metrics
- func (m *Metrics) IncDeploymentCleanup(deployment *appsv1.Deployment, armed bool, channel string, reason string)
- func (m *Metrics) IncRuleActivations(pod *v1.Pod, reason string)
- func (m Metrics) SetDeploymentStatus(deployment *appsv1.Deployment, channel string, armed bool, ...)
- func (m Metrics) SetGraceCutoff(deployment *appsv1.Deployment, graceCutoff time.Time)
- func (m *Metrics) SlackChannel(ctx context.Context, ns string) string
Constants ¶
View Source
const ( RollbackLabel = "rollback" DownscaleLabel = "downscale" )
View Source
const Unknown = "unknown"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeploymentStatus ¶
type DeploymentStatus float64
const CLEANUP DeploymentStatus = 200
CLEANUP Deployment is in the process of rolling back or downscaling.
const FAILING DeploymentStatus = 100
FAILING Deployment is detected as failing and currently in grace period.
const OK DeploymentStatus = 1
OK Deployment is detected as ok.
type History ¶
type History struct {
// contains filtered or unexported fields
}
func NewHistory ¶
func (*History) HistorizeDeploymentFailing ¶
func (*History) HistorizeDeploymentKilled ¶
type Metrics ¶
type Metrics struct { DeploymentCleanup *prometheus.CounterVec RuleActivations *prometheus.CounterVec TeamNotifications *prometheus.CounterVec DeploymentStatusTotal *prometheus.CounterVec DeploymentUpdated *prometheus.GaugeVec DeploymentGraceCutoff *prometheus.GaugeVec SlackChannelMapping *prometheus.GaugeVec // contains filtered or unexported fields }
func (*Metrics) IncDeploymentCleanup ¶
func (*Metrics) IncRuleActivations ¶
func (Metrics) SetDeploymentStatus ¶
func (m Metrics) SetDeploymentStatus(deployment *appsv1.Deployment, channel string, armed bool, status DeploymentStatus)
func (Metrics) SetGraceCutoff ¶
func (m Metrics) SetGraceCutoff(deployment *appsv1.Deployment, graceCutoff time.Time)
Click to show internal directories.
Click to hide internal directories.