datasources
Section datasources
defines data sources connections that are available for the Balerter.
Supported data sources:
Clickhouse
name
string
Required, Unique
Datasource name
This name uses for connect to datasource from scripts. For example :
host
string
Required
Connection host
port
int
By default:
6440
Connection port
username
string
By default:
default
Connection username
password
string
Connection password
database
string
By default:
default
Connection database
sslCertPath
string
Path to SSL cert. If empty, SSL do not use
timeout
int
By default: 5000 (5 sec)
Timeout, milliseconds
Prometheus
name
string
Required, Unique
Datasource name
url
string
Required
Request URI.
API path /api/v1/...
will be added
basicAuth
Username and password, if Prometheus require Basic Auth
timeout
int
By default: 5000 (5 sec)
timeout, milliseconds
Postgres
name
string
Required, Unique
Datasource name
host
string
Required
Connection host
port
int
By default:
5432
Connection port
username
string
By default:
postgres
Connection username
password
string
By default:
postgres
Connection password
database
string
By default:
postgres
Connection database
sslMode
string
By default
disable
SSL mode
sslCertPath
string
Path to SSL cert
timeout
int
By default: 5000 (5 sec)
timeout, milliseconds
Loki
name
string
Required, Unique
Datasource name
url
string
Required
Request URI.
API path /api/v1/...
will be added
timeout
int
By default: 5000 (5 sec)
timeout, milliseconds
basicAuth
Username and password, if Loki require Basic Auth
MySQL
name
string
Required, Unique
Datasource name
dsn
string
Required
DSN (Data Source Name) for connect to DB
Format: [username[:password]@][protocol[(address)]]/dbname[?param1=value1&...¶mN=valueN]
An example: user:secret@tcp(127.0.0.1:3306)/db
golang packge for more information about DSN
timeout
int
By default: 5000 (5 sec)
timeout, milliseconds