Run gofmt.

This commit is contained in:
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 {
ignoredDevicesPattern *regexp.Regexp
metrics []prometheus.Collector
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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