mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-12 06:24:10 +01:00
23 lines
760 B
Go
23 lines
760 B
Go
package clickhouse
|
|
|
|
// Configuration describes the configuration for the ClickHouse component.
|
|
type Configuration struct {
|
|
// Servers define the list of clickhouse servers to connect to (with ports)
|
|
Servers []string
|
|
// Database defines the database to use
|
|
Database string
|
|
// Username defines the username to use for authentication
|
|
Username string
|
|
// Password defines the password to use for authentication
|
|
Password string
|
|
// AkvoradoURL allows one to override URL to reach Akvorado from Clickhouse
|
|
AkvoradoURL string
|
|
}
|
|
|
|
// DefaultConfiguration represents the default configuration for the ClickHouse component.
|
|
var DefaultConfiguration = Configuration{
|
|
Servers: []string{}, // No clickhouse by default
|
|
Database: "default",
|
|
Username: "default",
|
|
}
|