Documentation ¶
Index ¶
- Constants
- type Metrics
- func (m *Metrics) IncFileIntegrityDaemonsetDelete()
- func (m *Metrics) IncFileIntegrityDaemonsetPodKill()
- func (m *Metrics) IncFileIntegrityDaemonsetUpdate()
- func (m *Metrics) IncFileIntegrityError(reason string)
- func (m *Metrics) IncFileIntegrityNodeStatus(condition, node string)
- func (m *Metrics) IncFileIntegrityNodeStatusError(errMsg string, node string)
- func (m *Metrics) IncFileIntegrityPause(node string)
- func (m *Metrics) IncFileIntegrityPhaseActive()
- func (m *Metrics) IncFileIntegrityPhaseError()
- func (m *Metrics) IncFileIntegrityPhaseInit()
- func (m *Metrics) IncFileIntegrityPhasePending()
- func (m *Metrics) IncFileIntegrityReinitByConfig()
- func (m *Metrics) IncFileIntegrityReinitByDemand()
- func (m *Metrics) IncFileIntegrityReinitByNode(node string)
- func (m *Metrics) IncFileIntegrityReinitDaemonsetDelete()
- func (m *Metrics) IncFileIntegrityReinitDaemonsetUpdate()
- func (m *Metrics) IncFileIntegrityUnpause(node string)
- func (m *Metrics) Register() error
- func (m *Metrics) SetFileIntegrityNodeStatusGaugeBad(node string)
- func (m *Metrics) SetFileIntegrityNodeStatusGaugeGood(node string)
- func (m *Metrics) Start(ctx context.Context) error
Constants ¶
const ( // HandlerPath is the default path for serving metrics. HandlerPath = "/metrics-fio" ControllerMetricsServiceName = "metrics-fio" ControllerMetricsPort int32 = 8585 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics is the main structure of this package.
func NewControllerMetrics ¶
func NewControllerMetrics() *Metrics
NewControllerMetrics returns a new Metrics instance.
func (*Metrics) IncFileIntegrityDaemonsetDelete ¶
func (m *Metrics) IncFileIntegrityDaemonsetDelete()
IncFileIntegrityDaemonsetDelete increments the counter for deletes of the FileIntegrity daemonSet.
func (*Metrics) IncFileIntegrityDaemonsetPodKill ¶
func (m *Metrics) IncFileIntegrityDaemonsetPodKill()
IncFileIntegrityDaemonsetPodKill increments the counter for force-pod deletion of the FileIntegrity daemonSet pods.
func (*Metrics) IncFileIntegrityDaemonsetUpdate ¶
func (m *Metrics) IncFileIntegrityDaemonsetUpdate()
IncFileIntegrityDaemonsetUpdate increments the counter for updates to the FileIntegrity daemonSet.
func (*Metrics) IncFileIntegrityError ¶
IncFileIntegrityError increments the FileIntegrity error counter per the given reason.
func (*Metrics) IncFileIntegrityNodeStatus ¶
IncFileIntegrityNodeStatus increments the FileIntegrity counter for FileIntegrityNodeStatus condition transitions.
func (*Metrics) IncFileIntegrityNodeStatusError ¶
IncFileIntegrityNodeStatusError increments the FileIntegrity counter for FileIntegrityNodeStatus errors, per errMsg.
func (*Metrics) IncFileIntegrityPause ¶
IncFileIntegrityUnpause increments the FileIntegrity counter for pausing the scans (hold-off).
func (*Metrics) IncFileIntegrityPhaseActive ¶
func (m *Metrics) IncFileIntegrityPhaseActive()
IncFileIntegrityPhaseActive increments the FileIntegrity Phase active counter.
func (*Metrics) IncFileIntegrityPhaseError ¶
func (m *Metrics) IncFileIntegrityPhaseError()
IncFileIntegrityPhaseError increments the FileIntegrity Phase error counter.
func (*Metrics) IncFileIntegrityPhaseInit ¶
func (m *Metrics) IncFileIntegrityPhaseInit()
IncFileIntegrityPhaseInit increments the FileIntegrity Phase init counter.
func (*Metrics) IncFileIntegrityPhasePending ¶
func (m *Metrics) IncFileIntegrityPhasePending()
IncFileIntegrityPhasePending increments the FileIntegrity Phase pending counter.
func (*Metrics) IncFileIntegrityReinitByConfig ¶
func (m *Metrics) IncFileIntegrityReinitByConfig()
IncFileIntegrityReinitByConfig increments the FileIntegrity counter for the total number of database re-initializations triggered by a configuration change.
func (*Metrics) IncFileIntegrityReinitByDemand ¶
func (m *Metrics) IncFileIntegrityReinitByDemand()
IncFileIntegrityReinitByDemand increments the FileIntegrity counter for the total number of database re-initializations triggered by the re-init annotation.
func (*Metrics) IncFileIntegrityReinitByNode ¶
IncFileIntegrityReinitByNode increments the FileIntegrity counter for the total number of database re-initializations triggered by the node controller through the re-init annotation, per node.
func (*Metrics) IncFileIntegrityReinitDaemonsetDelete ¶
func (m *Metrics) IncFileIntegrityReinitDaemonsetDelete()
IncFileIntegrityReinitDaemonsetDelete increments the counter for deletes of the FileIntegrity re-init daemonSet.
func (*Metrics) IncFileIntegrityReinitDaemonsetUpdate ¶
func (m *Metrics) IncFileIntegrityReinitDaemonsetUpdate()
IncFileIntegrityReinitDaemonsetUpdate increments the counter for updates to the FileIntegrity re-init daemonSet.
func (*Metrics) IncFileIntegrityUnpause ¶
IncFileIntegrityUnpause increments the FileIntegrity counter for unpausing the scan (removing hold-off).
func (*Metrics) SetFileIntegrityNodeStatusGaugeBad ¶
SetFileIntegrityNodeStatusGaugeBad sets the node_failed gauge to 1.
func (*Metrics) SetFileIntegrityNodeStatusGaugeGood ¶
SetFileIntegrityNodeStatusGaugeGood sets the node_failed gauge to 0.