Skip to content

Commit

Permalink
fix: revert bad removal
Browse files Browse the repository at this point in the history
  • Loading branch information
mcosta74 committed Mar 6, 2023
1 parent 178588b commit adad172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (ne *NATSExporter) InitializeCollectors() error {
}

getJsz := opts.GetJszFilter != ""
if !opts.GetConnz && !opts.GetRoutez &&
if !opts.GetHealthz && !opts.GetConnz && !opts.GetConnzDetailed && !opts.GetRoutez &&
!opts.GetSubz && !opts.GetVarz && !opts.GetGatewayz && !opts.GetLeafz &&
!opts.GetStreamingChannelz && !opts.GetStreamingServerz && !opts.GetReplicatorVarz && !getJsz {
return fmt.Errorf("no Collectors specfied")
Expand Down

0 comments on commit adad172

Please sign in to comment.