char lekirk: i am stewpid

This commit is contained in:
2026-10-11 15:03:19 +02:00
parent 963138efcf
commit 8200da46bf
2 changed files with 6 additions and 2 deletions

View File

@@ -24,6 +24,10 @@ type ReaderCfg struct {
type ExporterCfg struct {
Type string `yaml:"type"`
Addr string `yaml:"addr,omitempty"`
URL string `yaml:"url,omitempty"`
Token string `yaml:"token,omitempty"`
User string `yaml:"user,omitempty"`
Pass string `yaml:"pass,omitempty"`
JSONFile string `yaml:"json_file,omitempty"`
}

View File

@@ -42,8 +42,8 @@ func main() {
es = append(es, prom)
case "dev":
es = append(es, exporters.NewDevExporter(ec.JSONFile))
case "telegraf":
// es = append(es, exporters.NewTelegraf(ec.Addr))
case "influxdb":
es = append(es, exporters.NewInfluxDBExporter(ec.URL, ec.Token, ec.User, ec.Pass))
}
}