Commit 4e33314c by dadosch

unix socket docs

parent 5da3584d
...@@ -181,7 +181,7 @@ embedded database (included in the main Grafana binary). ...@@ -181,7 +181,7 @@ embedded database (included in the main Grafana binary).
### url ### url
Use either URL or or the other fields below to configure the database Use either URL or the other fields below to configure the database
Example: `mysql://user:secret@host:port/database` Example: `mysql://user:secret@host:port/database`
### type ### type
...@@ -195,9 +195,9 @@ will be stored. ...@@ -195,9 +195,9 @@ will be stored.
### host ### host
Only applicable to MySQL or Postgres. Includes IP or hostname and port. Only applicable to MySQL or Postgres. Includes IP or hostname and port or in case of unix sockets the path to it.
For example, for MySQL running on the same host as Grafana: `host = For example, for MySQL running on the same host as Grafana: `host =
127.0.0.1:3306` 127.0.0.1:3306` or with unix sockets: `host = /var/run/mysqld/mysqld.sock`
### name ### name
...@@ -697,9 +697,9 @@ session provider you have configured. ...@@ -697,9 +697,9 @@ session provider you have configured.
- **file:** session file path, e.g. `data/sessions` - **file:** session file path, e.g. `data/sessions`
- **mysql:** go-sql-driver/mysql dsn config string, e.g. `user:password@tcp(127.0.0.1:3306)/database_name` - **mysql:** go-sql-driver/mysql dsn config string, e.g. `user:password@tcp(127.0.0.1:3306)/database_name`
- **postgres:** ex: user=a password=b host=localhost port=5432 dbname=c sslmode=verify-full - **postgres:** ex: `user=a password=b host=localhost port=5432 dbname=c sslmode=verify-full`
- **memcache:** ex: 127.0.0.1:11211 - **memcache:** ex: `127.0.0.1:11211`
- **redis:** ex: `addr=127.0.0.1:6379,pool_size=100,prefix=grafana` - **redis:** ex: `addr=127.0.0.1:6379,pool_size=100,prefix=grafana`. For unix socket, use for example: `network=unix,addr=/var/run/redis/redis.sock,pool_size=100,db=grafana`
Postgres valid `sslmode` are `disable`, `require`, `verify-ca`, and `verify-full` (default). Postgres valid `sslmode` are `disable`, `require`, `verify-ca`, and `verify-full` (default).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment