go fmt
This commit is contained in:
parent
3dd68cd8e6
commit
efc789cec2
@ -49,7 +49,7 @@ var (
|
||||
"Number of errors found since startup.",
|
||||
[]string{"type"}, nil,
|
||||
)
|
||||
|
||||
|
||||
metricServerPing = prometheus.NewDesc(
|
||||
prometheus.BuildFQName(sockNamespace, "", "up"),
|
||||
"Check if the fail2ban server is up",
|
||||
@ -206,7 +206,7 @@ func (e *Exporter) collectJailMetrics(ch chan<- prometheus.Metric) {
|
||||
metricJailCount, prometheus.GaugeValue, count,
|
||||
)
|
||||
|
||||
for i := range(jails) {
|
||||
for i := range jails {
|
||||
e.collectJailStatsMetric(ch, jails[i])
|
||||
}
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
package socket
|
||||
|
||||
import (
|
||||
"log"
|
||||
"net"
|
||||
"fmt"
|
||||
"strings"
|
||||
"github.com/kisielk/og-rek"
|
||||
"github.com/nlpodyssey/gopickle/types"
|
||||
"log"
|
||||
"net"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type Fail2BanSocket struct {
|
||||
@ -76,9 +76,9 @@ func (s *Fail2BanSocket) GetJailStats(jail string) (JailStats, error) {
|
||||
|
||||
stats := JailStats{
|
||||
FailedCurrent: -1,
|
||||
FailedTotal: -1,
|
||||
FailedTotal: -1,
|
||||
BannedCurrent: -1,
|
||||
BannedTotal: -1,
|
||||
BannedTotal: -1,
|
||||
}
|
||||
|
||||
if lvl1, ok := response.(*types.Tuple); ok {
|
||||
|
Loading…
x
Reference in New Issue
Block a user