mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-27 02:53:02 +01:00
Run gofmt.
This commit is contained in:
parent
c1992f18e5
commit
9f046cd88e
@ -26,7 +26,6 @@ var (
|
||||
)
|
||||
|
||||
type diskstatsCollector struct {
|
||||
|
||||
ignoredDevicesPattern *regexp.Regexp
|
||||
metrics []prometheus.Collector
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ var (
|
||||
)
|
||||
|
||||
type filesystemCollector struct {
|
||||
|
||||
ignoredMountPointsPattern *regexp.Regexp
|
||||
|
||||
size, free, avail, files, filesFree *prometheus.GaugeVec
|
||||
|
@ -25,7 +25,6 @@ const (
|
||||
|
||||
type gmondCollector struct {
|
||||
metrics map[string]*prometheus.GaugeVec
|
||||
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
@ -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,
|
||||
|
@ -17,7 +17,6 @@ import (
|
||||
const lastLoginSubsystem = "last_login"
|
||||
|
||||
type lastLoginCollector struct {
|
||||
|
||||
metric prometheus.Gauge
|
||||
}
|
||||
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -24,7 +24,6 @@ var (
|
||||
)
|
||||
|
||||
type netDevCollector struct {
|
||||
|
||||
metrics map[string]*prometheus.GaugeVec
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,6 @@ const (
|
||||
)
|
||||
|
||||
type netStatCollector struct {
|
||||
|
||||
metrics map[string]prometheus.Gauge
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user