Skip to content

Commit

Permalink
enable pf metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Jan 8, 2024
1 parent 007f007 commit 9f61f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func Execute() error {
})

if config.PrometheusConfig.Enabled {
if config.Mode == cfg.IptablesMode || config.Mode == cfg.NftablesMode {
if config.Mode == cfg.IptablesMode || config.Mode == cfg.NftablesMode || config.Mode == cfg.PfMode {
go backend.CollectMetrics()
prometheus.MustRegister(metrics.TotalDroppedBytes, metrics.TotalDroppedPackets, metrics.TotalActiveBannedIPs)
}
Expand Down

0 comments on commit 9f61f9e

Please sign in to comment.