metrics

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package metrics provide metrics for teredix

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
}

Collector collect metrics

func NewCollector

func NewCollector() *Collector

NewCollector create new collector

func (*Collector) CollectTotalMemoryUsageByScannerInBytes

func (c *Collector) CollectTotalMemoryUsageByScannerInBytes(scannerName, scannerKind string, memoryUsage float64)

CollectTotalMemoryUsageByScannerInBytes collect total memory usage by scanner

func (*Collector) CollectTotalMemoryUsageByScannerInKB

func (c *Collector) CollectTotalMemoryUsageByScannerInKB(scannerName, scannerKind string, memoryUsage float64)

CollectTotalMemoryUsageByScannerInKB collect total memory usage by scanner

func (*Collector) CollectTotalMemoryUsageByScannerInMB

func (c *Collector) CollectTotalMemoryUsageByScannerInMB(scannerName, scannerKind string, memoryUsage float64)

CollectTotalMemoryUsageByScannerInMB collect total memory usage by scanner

func (*Collector) CollectTotalProcessErrorCount

func (c *Collector) CollectTotalProcessErrorCount(failureType string)

CollectTotalProcessErrorCount collect total process error count

func (*Collector) CollectTotalResourceCount

func (c *Collector) CollectTotalResourceCount(source, kind string, totalResource int)

CollectTotalResourceCount collect total resource count

func (*Collector) CollectTotalResourceCountByMetaData

func (c *Collector) CollectTotalResourceCountByMetaData(source, kind, metaDataKey string, metaDataValue string, totalResource int)

CollectTotalResourceCountByMetaData collect total resource count by metadata key

func (*Collector) CollectTotalResourceDiscoveredByScanner

func (c *Collector) CollectTotalResourceDiscoveredByScanner(scannerName, scannerKind string, totalResourceDiscovered float64)

CollectTotalResourceDiscoveredByScanner collect total resource discovered by scanner

func (*Collector) CollectTotalScannerBuild

func (c *Collector) CollectTotalScannerBuild(totalScanners float64)

CollectTotalScannerBuild collect total scanner build

func (*Collector) CollectTotalScannerBuildByKind

func (c *Collector) CollectTotalScannerBuildByKind(scannerKind string)

CollectTotalScannerBuildByKind collect total scanner build by name

func (*Collector) CollectTotalScannerJobAddedToQueue

func (c *Collector) CollectTotalScannerJobAddedToQueue(scannerName, scannerKind, result string)

CollectTotalScannerJobAddedToQueue collect total scanner job added to queue

func (*Collector) CollectTotalScannerJobStatusCount

func (c *Collector) CollectTotalScannerJobStatusCount(scannerName, scannerKind, status string)

CollectTotalScannerJobStatusCount collect total scanner job status count

func (*Collector) CollectTotalSchedulerStartCount

func (c *Collector) CollectTotalSchedulerStartCount()

CollectTotalSchedulerStartCount collect total scheduler start count

func (*Collector) CollectTotalStorageBatchPersistingLatencyInMs

func (c *Collector) CollectTotalStorageBatchPersistingLatencyInMs(totalLatency float64)

CollectTotalStorageBatchPersistingLatencyInMs collect total storage batch persisting latency

func (*Collector) RecordScanTimeInSecs

func (c *Collector) RecordScanTimeInSecs(scannerName, scannerKind string, duration float64)

RecordScanTimeInSecs collect total scan time duration in seconds

Jump to

Keyboard shortcuts

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