Add initial structure of influxdb monitoring.

This commit is contained in:
Maximilian Paß
2022-04-09 17:51:34 +02:00
parent e4ebb5b384
commit 8feffdae3a
12 changed files with 225 additions and 20 deletions

View File

@ -53,6 +53,12 @@ var (
Level: "INFO",
},
Sentry: sentry.ClientOptions{},
InfluxDB: InfluxDB{
Url: "",
Token: "",
Organization: "",
Bucket: "",
},
}
configurationFilePath = "./configuration.yaml"
configurationInitialized = false
@ -115,13 +121,22 @@ type logger struct {
Level string
}
// InfluxDB configures the usage of an Influx db monitoring.
type InfluxDB struct {
Url string
Token string
Organization string
Bucket string
}
// configuration contains the complete configuration of Poseidon.
type configuration struct {
Server server
Nomad Nomad
AWS AWS
Logger logger
Sentry sentry.ClientOptions
Server server
Nomad Nomad
AWS AWS
Logger logger
Sentry sentry.ClientOptions
InfluxDB InfluxDB
}
// InitConfig merges configuration options from environment variables and