Skip to content

Commit

Permalink
Fix Network pipeline in Alloy (#1674)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariomac authored Feb 18, 2025
1 parent 903f971 commit 0b67413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/export/prom/prom_net.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type NetPrometheusConfig struct {

// nolint:gocritic
func (p NetPrometheusConfig) Enabled() bool {
return p.Config != nil && p.Config.Port != 0 && (p.Config.NetworkMetricsEnabled() || p.GloballyEnabled)
return p.Config != nil && p.Config.EndpointEnabled() && (p.Config.NetworkMetricsEnabled() || p.GloballyEnabled)
}

type netMetricsReporter struct {
Expand Down

0 comments on commit 0b67413

Please sign in to comment.