metrics

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
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

func (m *Metrics) IncFileIntegrityError(reason string)

IncFileIntegrityError increments the FileIntegrity error counter per the given reason.

func (*Metrics) IncFileIntegrityNodeStatus

func (m *Metrics) IncFileIntegrityNodeStatus(condition, node string)

IncFileIntegrityNodeStatus increments the FileIntegrity counter for FileIntegrityNodeStatus condition transitions.

func (*Metrics) IncFileIntegrityNodeStatusError

func (m *Metrics) IncFileIntegrityNodeStatusError(errMsg string, node string)

IncFileIntegrityNodeStatusError increments the FileIntegrity counter for FileIntegrityNodeStatus errors, per errMsg.

func (*Metrics) IncFileIntegrityPause

func (m *Metrics) IncFileIntegrityPause(node string)

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

func (m *Metrics) IncFileIntegrityReinitByNode(node string)

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

func (m *Metrics) IncFileIntegrityUnpause(node string)

IncFileIntegrityUnpause increments the FileIntegrity counter for unpausing the scan (removing hold-off).

func (*Metrics) Register

func (m *Metrics) Register() error

Register iterates over all available Metrics and registers them.

func (*Metrics) SetFileIntegrityNodeStatusGaugeBad

func (m *Metrics) SetFileIntegrityNodeStatusGaugeBad(node string)

SetFileIntegrityNodeStatusGaugeBad sets the node_failed gauge to 1.

func (*Metrics) SetFileIntegrityNodeStatusGaugeGood

func (m *Metrics) SetFileIntegrityNodeStatusGaugeGood(node string)

SetFileIntegrityNodeStatusGaugeGood sets the node_failed gauge to 0.

func (*Metrics) Start

func (m *Metrics) Start(ctx context.Context) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL