Forked InfluxDB SDK and added support for using pre-generated admin token during setup. This ensures we no longer need to persist the token during startup.

fixes #248
This commit is contained in:
Jason Kulatunga
2022-05-18 09:14:05 -07:00
parent a589d11d01
commit 5ac0aa8f74
4 changed files with 123 additions and 31 deletions
+1
View File
@@ -45,6 +45,7 @@ func (c *configuration) Init() error {
c.SetDefault("web.influxdb.bucket", "metrics")
c.SetDefault("web.influxdb.init_username", "admin")
c.SetDefault("web.influxdb.init_password", "password12345")
c.SetDefault("web.influxdb.token", "scrutiny-default-admin-token")
c.SetDefault("web.influxdb.retention_policy", true)
//c.SetDefault("disks.include", []string{})