sansae@sansaeubuntu:~$ cd /etc/grafana sansae@sansaeubuntu:/etc/grafana$ ls grafana.ini ldap.toml provisioning sansae@sansaeubuntu:/etc/grafana$ sansae@sansaeubuntu:/etc/grafana$ sansae@sansaeubuntu:/etc/grafana$ sudo vim grafana.ini #################################### Paths #################################### [paths] # Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used) ;data = /var/lib/grafana # Temporary files in `data` directory older than given duration will be removed ;temp_data_lifetime = 24h # Directory where grafana can store logs ;logs = /var/log/grafana ~~~~~~~~~~~~~~~~ #################################### Database #################################### [database] # You can configure the database connection by specifying type, host, name, user and password # as separate properties or as on string using the url properties. # Either "mysql", "postgres" or "sqlite3", it's your choice ;type = sqlite3 ;host = 127.0.0.1:3306 ;name = grafana ;user = root # If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;""" ;password = # Use either URL or the previous fields to configure the database # Example: mysql://user:secret@host:port/database ;url = sansae@sansaeubuntu:/etc/grafana$ sudo systemctl restart grafana-server sansae@sansaeubuntu:/etc/grafana$ sudo systemctl stop grafana-server sansae@sansaeubuntu:/etc/grafana$ sudo systemctl start grafana-server
Overview
Content Tools
Add Comment