Skip to content

Commit dce573f

Browse files
authored
Update mock collector grafana dashboards (#1110)
1 parent b9b8428 commit dce573f

File tree

4 files changed

+7666
-817
lines changed

4 files changed

+7666
-817
lines changed

internal/collector/containermetricsreceiver/internal/scraper/cpuscraper/scraper.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ func (s *CPUScraper) Scrape(context.Context) (pmetric.Metrics, error) {
6969

7070
s.settings.Logger.Debug("Collected container CPU metrics", zap.Any("cpu", stats))
7171

72+
s.mb.RecordSystemCPULogicalCountDataPoint(now, int64(stats.NumberOfLogicalCPUs))
7273
s.mb.RecordSystemCPUUtilizationDataPoint(now, stats.User, metadata.AttributeStateUser)
7374
s.mb.RecordSystemCPUUtilizationDataPoint(now, stats.System, metadata.AttributeStateSystem)
7475

0 commit comments

Comments
 (0)