- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for CurrentStats (0.08 sec)
-
cmd/metrics-v3-cache.go
loadHealth, ) } func getDiffStats(initialStats, currentStats madmin.DiskIOStats) madmin.DiskIOStats { return madmin.DiskIOStats{ ReadIOs: currentStats.ReadIOs - initialStats.ReadIOs, WriteIOs: currentStats.WriteIOs - initialStats.WriteIOs, ReadSectors: currentStats.ReadSectors - initialStats.ReadSectors, WriteSectors: currentStats.WriteSectors - initialStats.WriteSectors,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu May 09 00:51:34 UTC 2024 - 8.1K bytes - Viewed (0) -
internal/logger/targets.go
} // AuditTargets returns active audit targets. // Returned slice may not be modified in any way. func AuditTargets() []Target { return auditTargets.get() } // CurrentStats returns the current statistics. func CurrentStats() map[string]types.TargetStats { sys := SystemTargets() audit := AuditTargets() res := make(map[string]types.TargetStats, len(sys)+len(audit)) cnt := make(map[string]int, len(sys)+len(audit))
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jun 03 15:44:50 UTC 2024 - 6K bytes - Viewed (0) -
cmd/metrics-v3-audit.go
targetID) ) // loadAuditMetrics - `MetricsLoaderFn` for audit // such as failed messages and total messages. func loadAuditMetrics(_ context.Context, m MetricValues, c *metricsCache) error { audit := logger.CurrentStats() for id, st := range audit { labels := []string{targetID, id} m.Set(auditFailedMessages, float64(st.FailedMessages), labels...) m.Set(auditTargetQueueLength, float64(st.QueueLength), labels...)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 10 14:50:39 UTC 2024 - 1.9K bytes - Viewed (0) -
cmd/metrics-resource.go
func updateDriveIOStats(currentStats madmin.DiskIOStats, latestStats madmin.DiskIOStats, labels map[string]string) { sectorSize := uint64(512) kib := float64(1 << 10) diffInSeconds := time.Now().UTC().Sub(lastDriveStatsRefresh).Seconds() if diffInSeconds == 0 { // too soon to update the stats return } diffStats := getDiffStats(latestStats, currentStats)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jul 24 23:30:33 UTC 2024 - 17.2K bytes - Viewed (0) -
cmd/metrics-v2.go
}, VariableLabels: map[string]string{"target_id": st.ID.ID, "target_name": st.ID.Name}, Value: float64(st.FailedRequests), }) } // Audit and system: audit := logger.CurrentStats() for id, st := range audit { metrics = append(metrics, MetricV2{ Description: MetricDescription{ Namespace: minioNamespace, Subsystem: auditSubsystem,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 15 12:04:40 UTC 2024 - 131.9K bytes - Viewed (0)