Skip to content

Commit 9f046cd

Browse files
committed
Run gofmt.
1 parent c1992f1 commit 9f046cd

13 files changed

+1
-21
lines changed

collector/diskstats.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ var (
2626
)
2727

2828
type diskstatsCollector struct {
29-
3029
ignoredDevicesPattern *regexp.Regexp
3130
metrics []prometheus.Collector
3231
}

collector/filesystem.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ var (
2525
)
2626

2727
type filesystemCollector struct {
28-
2928
ignoredMountPointsPattern *regexp.Regexp
3029

3130
size, free, avail, files, filesFree *prometheus.GaugeVec

collector/gmond.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ const (
2525

2626
type gmondCollector struct {
2727
metrics map[string]*prometheus.GaugeVec
28-
2928
}
3029

3130
func init() {

collector/interrupts.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const (
1818
)
1919

2020
type interruptsCollector struct {
21-
2221
metric *prometheus.CounterVec
2322
}
2423

@@ -30,7 +29,6 @@ func init() {
3029
// interrupts stats
3130
func NewInterruptsCollector() (Collector, error) {
3231
return &interruptsCollector{
33-
3432
metric: prometheus.NewCounterVec(
3533
prometheus.CounterOpts{
3634
Namespace: Namespace,

collector/lastlogin.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import (
1717
const lastLoginSubsystem = "last_login"
1818

1919
type lastLoginCollector struct {
20-
2120
metric prometheus.Gauge
2221
}
2322

collector/loadavg.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const (
1717
)
1818

1919
type loadavgCollector struct {
20-
2120
metric prometheus.Gauge
2221
}
2322

@@ -29,7 +28,6 @@ func init() {
2928
// load, seconds since last login and a list of tags as specified by config.
3029
func NewLoadavgCollector() (Collector, error) {
3130
return &loadavgCollector{
32-
3331
metric: prometheus.NewGauge(prometheus.GaugeOpts{
3432
Namespace: Namespace,
3533
Name: "load1",

collector/megacli.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ func init() {
3838
// RAID status through megacli.
3939
func NewMegaCliCollector() (Collector, error) {
4040
return &megaCliCollector{
41-
42-
cli: *megacliCommand,
41+
cli: *megacliCommand,
4342
driveTemperature: prometheus.NewGaugeVec(prometheus.GaugeOpts{
4443
Namespace: Namespace,
4544
Name: "megacli_drive_temperature_celsius",

collector/netdev.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ var (
2424
)
2525

2626
type netDevCollector struct {
27-
2827
metrics map[string]*prometheus.GaugeVec
2928
}
3029

collector/netstat.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const (
1919
)
2020

2121
type netStatCollector struct {
22-
2322
metrics map[string]prometheus.Gauge
2423
}
2524

collector/runit.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import (
99
)
1010

1111
type runitCollector struct {
12-
13-
1412
state, stateDesired, stateNormal *prometheus.GaugeVec
1513
}
1614

@@ -26,7 +24,6 @@ func NewRunitCollector() (Collector, error) {
2624
)
2725

2826
return &runitCollector{
29-
3027
state: prometheus.NewGaugeVec(
3128
prometheus.GaugeOpts{
3229
Namespace: Namespace,

collector/stat.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const (
1717
)
1818

1919
type statCollector struct {
20-
2120
cpu *prometheus.CounterVec
2221
intr prometheus.Counter
2322
ctxt prometheus.Counter
@@ -35,7 +34,6 @@ func init() {
3534
// network device stats.
3635
func NewStatCollector() (Collector, error) {
3736
return &statCollector{
38-
3937
cpu: prometheus.NewCounterVec(
4038
prometheus.CounterOpts{
4139
Namespace: Namespace,

collector/tcpstat.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ const (
3535
)
3636

3737
type tcpStatCollector struct {
38-
3938
metric *prometheus.GaugeVec
4039
}
4140

@@ -47,7 +46,6 @@ func init() {
4746
// a new Collector exposing network stats.
4847
func NewTCPStatCollector() (Collector, error) {
4948
return &tcpStatCollector{
50-
5149
metric: prometheus.NewGaugeVec(
5250
prometheus.GaugeOpts{
5351
Namespace: Namespace,

collector/time.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
)
1111

1212
type timeCollector struct {
13-
1413
metric prometheus.Counter
1514
}
1615

@@ -22,7 +21,6 @@ func init() {
2221
// the current system time in seconds since epoch.
2322
func NewTimeCollector() (Collector, error) {
2423
return &timeCollector{
25-
2624
metric: prometheus.NewCounter(prometheus.CounterOpts{
2725
Namespace: Namespace,
2826
Name: "time",

0 commit comments

Comments
 (0)