char lekirk: i am stewpid
This commit is contained in:
@@ -24,6 +24,10 @@ type ReaderCfg struct {
|
|||||||
type ExporterCfg struct {
|
type ExporterCfg struct {
|
||||||
Type string `yaml:"type"`
|
Type string `yaml:"type"`
|
||||||
Addr string `yaml:"addr,omitempty"`
|
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"`
|
JSONFile string `yaml:"json_file,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
4
main.go
4
main.go
@@ -42,8 +42,8 @@ func main() {
|
|||||||
es = append(es, prom)
|
es = append(es, prom)
|
||||||
case "dev":
|
case "dev":
|
||||||
es = append(es, exporters.NewDevExporter(ec.JSONFile))
|
es = append(es, exporters.NewDevExporter(ec.JSONFile))
|
||||||
case "telegraf":
|
case "influxdb":
|
||||||
// es = append(es, exporters.NewTelegraf(ec.Addr))
|
es = append(es, exporters.NewInfluxDBExporter(ec.URL, ec.Token, ec.User, ec.Pass))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user