Run gofmt.

pull/79/head
Julius Volz 2015-05-28 21:21:54 +02:00
parent c1992f18e5
commit 9f046cd88e
13 changed files with 1 additions and 21 deletions

View File

@ -26,7 +26,6 @@ var (
) )
type diskstatsCollector struct { type diskstatsCollector struct {
ignoredDevicesPattern *regexp.Regexp ignoredDevicesPattern *regexp.Regexp
metrics []prometheus.Collector metrics []prometheus.Collector
} }

View File

@ -25,7 +25,6 @@ var (
) )
type filesystemCollector struct { type filesystemCollector struct {
ignoredMountPointsPattern *regexp.Regexp ignoredMountPointsPattern *regexp.Regexp
size, free, avail, files, filesFree *prometheus.GaugeVec size, free, avail, files, filesFree *prometheus.GaugeVec

View File

@ -25,7 +25,6 @@ const (
type gmondCollector struct { type gmondCollector struct {
metrics map[string]*prometheus.GaugeVec metrics map[string]*prometheus.GaugeVec
} }
func init() { func init() {

View File

@ -18,7 +18,6 @@ const (
) )
type interruptsCollector struct { type interruptsCollector struct {
metric *prometheus.CounterVec metric *prometheus.CounterVec
} }
@ -30,7 +29,6 @@ func init() {
// interrupts stats // interrupts stats
func NewInterruptsCollector() (Collector, error) { func NewInterruptsCollector() (Collector, error) {
return &interruptsCollector{ return &interruptsCollector{
metric: prometheus.NewCounterVec( metric: prometheus.NewCounterVec(
prometheus.CounterOpts{ prometheus.CounterOpts{
Namespace: Namespace, Namespace: Namespace,

View File

@ -17,7 +17,6 @@ import (
const lastLoginSubsystem = "last_login" const lastLoginSubsystem = "last_login"
type lastLoginCollector struct { type lastLoginCollector struct {
metric prometheus.Gauge metric prometheus.Gauge
} }

View File

@ -17,7 +17,6 @@ const (
) )
type loadavgCollector struct { type loadavgCollector struct {
metric prometheus.Gauge metric prometheus.Gauge
} }
@ -29,7 +28,6 @@ func init() {
// load, seconds since last login and a list of tags as specified by config. // load, seconds since last login and a list of tags as specified by config.
func NewLoadavgCollector() (Collector, error) { func NewLoadavgCollector() (Collector, error) {
return &loadavgCollector{ return &loadavgCollector{
metric: prometheus.NewGauge(prometheus.GaugeOpts{ metric: prometheus.NewGauge(prometheus.GaugeOpts{
Namespace: Namespace, Namespace: Namespace,
Name: "load1", Name: "load1",

View File

@ -38,8 +38,7 @@ func init() {
// RAID status through megacli. // RAID status through megacli.
func NewMegaCliCollector() (Collector, error) { func NewMegaCliCollector() (Collector, error) {
return &megaCliCollector{ return &megaCliCollector{
cli: *megacliCommand,
cli: *megacliCommand,
driveTemperature: prometheus.NewGaugeVec(prometheus.GaugeOpts{ driveTemperature: prometheus.NewGaugeVec(prometheus.GaugeOpts{
Namespace: Namespace, Namespace: Namespace,
Name: "megacli_drive_temperature_celsius", Name: "megacli_drive_temperature_celsius",

View File

@ -24,7 +24,6 @@ var (
) )
type netDevCollector struct { type netDevCollector struct {
metrics map[string]*prometheus.GaugeVec metrics map[string]*prometheus.GaugeVec
} }

View File

@ -19,7 +19,6 @@ const (
) )
type netStatCollector struct { type netStatCollector struct {
metrics map[string]prometheus.Gauge metrics map[string]prometheus.Gauge
} }

View File

@ -9,8 +9,6 @@ import (
) )
type runitCollector struct { type runitCollector struct {
state, stateDesired, stateNormal *prometheus.GaugeVec state, stateDesired, stateNormal *prometheus.GaugeVec
} }
@ -26,7 +24,6 @@ func NewRunitCollector() (Collector, error) {
) )
return &runitCollector{ return &runitCollector{
state: prometheus.NewGaugeVec( state: prometheus.NewGaugeVec(
prometheus.GaugeOpts{ prometheus.GaugeOpts{
Namespace: Namespace, Namespace: Namespace,

View File

@ -17,7 +17,6 @@ const (
) )
type statCollector struct { type statCollector struct {
cpu *prometheus.CounterVec cpu *prometheus.CounterVec
intr prometheus.Counter intr prometheus.Counter
ctxt prometheus.Counter ctxt prometheus.Counter
@ -35,7 +34,6 @@ func init() {
// network device stats. // network device stats.
func NewStatCollector() (Collector, error) { func NewStatCollector() (Collector, error) {
return &statCollector{ return &statCollector{
cpu: prometheus.NewCounterVec( cpu: prometheus.NewCounterVec(
prometheus.CounterOpts{ prometheus.CounterOpts{
Namespace: Namespace, Namespace: Namespace,

View File

@ -35,7 +35,6 @@ const (
) )
type tcpStatCollector struct { type tcpStatCollector struct {
metric *prometheus.GaugeVec metric *prometheus.GaugeVec
} }
@ -47,7 +46,6 @@ func init() {
// a new Collector exposing network stats. // a new Collector exposing network stats.
func NewTCPStatCollector() (Collector, error) { func NewTCPStatCollector() (Collector, error) {
return &tcpStatCollector{ return &tcpStatCollector{
metric: prometheus.NewGaugeVec( metric: prometheus.NewGaugeVec(
prometheus.GaugeOpts{ prometheus.GaugeOpts{
Namespace: Namespace, Namespace: Namespace,

View File

@ -10,7 +10,6 @@ import (
) )
type timeCollector struct { type timeCollector struct {
metric prometheus.Counter metric prometheus.Counter
} }
@ -22,7 +21,6 @@ func init() {
// the current system time in seconds since epoch. // the current system time in seconds since epoch.
func NewTimeCollector() (Collector, error) { func NewTimeCollector() (Collector, error) {
return &timeCollector{ return &timeCollector{
metric: prometheus.NewCounter(prometheus.CounterOpts{ metric: prometheus.NewCounter(prometheus.CounterOpts{
Namespace: Namespace, Namespace: Namespace,
Name: "time", Name: "time",