Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

552 B
Raw Blame
//go:build !linux

package hostmetrics

import (
	"log/slog"

	sdkmetric "go.opentelemetry.io/otel/sdk/metric"
)

// InterruptsCollector is a no-op on non-Linux platforms.
type InterruptsCollector struct{}

// NewInterruptsCollector soft-fails on non-Linux.
func NewInterruptsCollector(provider *sdkmetric.MeterProvider, logger *slog.Logger, perCPU bool) (*InterruptsCollector, error) {
	logger.Info("interrupts metrics unavailable on this platform")
	return &InterruptsCollector{}, nil
}

// Close is a no-op.
func (c *InterruptsCollector) Close() {}