Skip to content

Commit

Permalink
Windows build fix - New scrapers applied (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhogayatakb authored Dec 20, 2024
1 parent 748c1a9 commit 38b7463
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (s *networkScraper) recordNetworkConntrackMetrics() error {
return nil
}

func (s *scraper) recordSystemNetworkIoBandwidth(now pcommon.Timestamp, networkBandwidthMap map[string]bcal.NetworkBandwidth) {
func (s *networkScraper) recordSystemNetworkIoBandwidth(now pcommon.Timestamp, networkBandwidthMap map[string]bcal.NetworkBandwidth) {
if s.config.Metrics.SystemNetworkIoBandwidth.Enabled {
for device, networkBandwidth := range networkBandwidthMap {
s.mb.RecordSystemNetworkIoBandwidthDataPoint(now, networkBandwidth.InboundRate, device, metadata.AttributeDirectionReceive)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/internal/scraper/processscraper/ucal"
)

func (s *scraper) recordCPUPercentMetric(now pcommon.Timestamp, cpuPercent float64) {
func (s *processScraper) recordCPUPercentMetric(now pcommon.Timestamp, cpuPercent float64) {
s.mb.RecordProcessCPUPercentDataPoint(now, cpuPercent)
}

Expand All @@ -27,7 +27,7 @@ func (s *processScraper) recordCPUTimeMetric(now pcommon.Timestamp, cpuTime *cpu
s.mb.RecordProcessCPUTimeDataPoint(now, cpuTime.System, metadata.AttributeStateSystem)
}

func (s *scraper) recordMemoryPercentMetric(now pcommon.Timestamp, memoryPercent float32) {
func (s *processScraper) recordMemoryPercentMetric(now pcommon.Timestamp, memoryPercent float32) {
s.mb.RecordProcessMemoryPercentDataPoint(now, float64(memoryPercent))
}

Expand Down

0 comments on commit 38b7463

Please sign in to comment.