Editing /etc/grafana/grafana.ini
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | <code>[[/etc/grafana/]]grafana.ini | + | *<code>[[/etc/grafana/]]grafana.ini</code> |
+ | <pre> | ||
+ | ##################### Grafana Configuration Example ##################### | ||
+ | # | ||
+ | # Everything has defaults so you only need to uncomment things you want to | ||
+ | # change | ||
+ | |||
+ | # possible values : production, development | ||
+ | ;app_mode = production | ||
− | + | # instance name, defaults to HOSTNAME environment variable value or hostname if HOSTNAME var is empty | |
− | + | ;instance_name = ${HOSTNAME} | |
− | |||
− | = | + | #################################### 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 | # Temporary files in `data` directory older than given duration will be removed | ||
;temp_data_lifetime = 24h | ;temp_data_lifetime = 24h | ||
Line 411: | Line 403: | ||
;allowed_domains = | ;allowed_domains = | ||
;allowed_groups = | ;allowed_groups = | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | #################################### Google Auth ########################## | |
+ | [auth.google] | ||
+ | ;enabled = false | ||
+ | ;allow_sign_up = true | ||
+ | ;client_id = some_client_id | ||
+ | ;client_secret = some_client_secret | ||
+ | ;scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email | ||
+ | ;auth_url = https://accounts.google.com/o/oauth2/auth | ||
+ | ;token_url = https://accounts.google.com/o/oauth2/token | ||
+ | ;api_url = https://www.googleapis.com/oauth2/v1/userinfo | ||
+ | ;allowed_domains = | ||
+ | ;hosted_domain = | ||
+ | |||
#################################### Grafana.com Auth #################### | #################################### Grafana.com Auth #################### | ||
[auth.grafana_com] | [auth.grafana_com] | ||
Line 928: | Line 918: | ||
;enabled = true | ;enabled = true | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Advertising: