package
Version:
v1.0.3
Opens a new window with list of versions in this module.
Published: Jan 13, 2025
License: AGPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Monitor MonitorConfig `mapstructure:"Monitor"`
DB DBConfig `mapstructure:"Database"`
}
type DBConfig struct {
Type string `mapstructure:"Type"`
BatchSize int `mapstructure:"BatchSize"`
FlushTime string `mapstructure:"FlushInterval"`
InfluxDB *InfluxDBConfig `mapstructure:"Influxdb"`
}
type Enabled struct {
Task bool `mapstructure:"Task"`
IPMI bool `mapstructure:"Ipmi"`
GPU bool `mapstructure:"Gpu"`
RAPL bool `mapstructure:"Rapl"`
System bool `mapstructure:"System"`
}
type InfluxDBConfig struct {
URL string `mapstructure:"Url"`
Token string `mapstructure:"Token"`
Org string `mapstructure:"Org"`
NodeBucket string `mapstructure:"NodeBucket"`
TaskBucket string `mapstructure:"TaskBucket"`
}
type MonitorConfig struct {
SamplePeriod string `mapstructure:"SamplePeriod"`
Enabled Enabled `mapstructure:"Enabled"`
LogPath string `mapstructure:"LogPath"`
GPUType string `mapstructure:"GPUType"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.