Format fixes

This commit is contained in:
Thomas Roehl 2021-11-29 15:32:58 +01:00
parent 6d14e66505
commit 28163f5d2e
5 changed files with 45 additions and 46 deletions

View File

@ -1,15 +1,15 @@
package collectors package collectors
import ( import (
"encoding/json"
"errors" "errors"
lp "github.com/influxdata/line-protocol" lp "github.com/influxdata/line-protocol"
"log" "log"
"os"
"os/exec"
"strconv" "strconv"
"strings" "strings"
"time" "time"
"os"
"os/exec"
"encoding/json"
) )
const IPMITOOL_PATH = `/usr/bin/ipmitool` const IPMITOOL_PATH = `/usr/bin/ipmitool`

View File

@ -1,6 +1,7 @@
package collectors package collectors
import ( import (
"encoding/json"
"fmt" "fmt"
lp "github.com/influxdata/line-protocol" lp "github.com/influxdata/line-protocol"
"io/ioutil" "io/ioutil"
@ -9,12 +10,10 @@ import (
"strconv" "strconv"
"strings" "strings"
"time" "time"
"encoding/json"
) )
const HWMON_PATH = `/sys/class/hwmon` const HWMON_PATH = `/sys/class/hwmon`
type TempCollectorConfig struct { type TempCollectorConfig struct {
ExcludeMetrics []string `json:"exclude_metrics"` ExcludeMetrics []string `json:"exclude_metrics"`
TagOverride map[string]map[string]string `json:"tag_override"` TagOverride map[string]map[string]string `json:"tag_override"`