Documentation ¶
Overview ¶
Package metrics provide metrics for teredix
Index ¶
- type Collector
- func (c *Collector) CollectTotalMemoryUsageByScannerInBytes(scannerName, scannerKind string, memoryUsage float64)
- func (c *Collector) CollectTotalMemoryUsageByScannerInKB(scannerName, scannerKind string, memoryUsage float64)
- func (c *Collector) CollectTotalMemoryUsageByScannerInMB(scannerName, scannerKind string, memoryUsage float64)
- func (c *Collector) CollectTotalProcessErrorCount(failureType string)
- func (c *Collector) CollectTotalResourceCount(source, kind string, totalResource int)
- func (c *Collector) CollectTotalResourceCountByMetaData(source, kind, metaDataKey string, metaDataValue string, totalResource int)
- func (c *Collector) CollectTotalResourceDiscoveredByScanner(scannerName, scannerKind string, totalResourceDiscovered float64)
- func (c *Collector) CollectTotalScannerBuild(totalScanners float64)
- func (c *Collector) CollectTotalScannerBuildByKind(scannerKind string)
- func (c *Collector) CollectTotalScannerJobAddedToQueue(scannerName, scannerKind, result string)
- func (c *Collector) CollectTotalScannerJobStatusCount(scannerName, scannerKind, status string)
- func (c *Collector) CollectTotalSchedulerStartCount()
- func (c *Collector) CollectTotalStorageBatchPersistingLatencyInMs(totalLatency float64)
- func (c *Collector) RecordScanTimeInSecs(scannerName, scannerKind string, duration float64)
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 (*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 ¶
CollectTotalProcessErrorCount collect total process error count
func (*Collector) CollectTotalResourceCount ¶
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 ¶
CollectTotalScannerBuild collect total scanner build
func (*Collector) CollectTotalScannerBuildByKind ¶
CollectTotalScannerBuildByKind collect total scanner build by name
func (*Collector) CollectTotalScannerJobAddedToQueue ¶
CollectTotalScannerJobAddedToQueue collect total scanner job added to queue
func (*Collector) CollectTotalScannerJobStatusCount ¶
CollectTotalScannerJobStatusCount collect total scanner job status count
func (*Collector) CollectTotalSchedulerStartCount ¶
func (c *Collector) CollectTotalSchedulerStartCount()
CollectTotalSchedulerStartCount collect total scheduler start count
func (*Collector) CollectTotalStorageBatchPersistingLatencyInMs ¶
CollectTotalStorageBatchPersistingLatencyInMs collect total storage batch persisting latency
func (*Collector) RecordScanTimeInSecs ¶
RecordScanTimeInSecs collect total scan time duration in seconds