You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: grafana/README.md
+98-1Lines changed: 98 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,103 @@
4
4
## Description
5
5
[Grafana](https://grafana.org/) is a graphing application built for time series data. It natively supports influxdb and provides great dashboarding support. This project is focused on provided a grafana installation that can be run within a kubernetes installation. The grafana application is agnostic to [Workflow](https://github.com/deis/workflow) and can be installed as a stand alone system with the monitoring suite.
6
6
7
+
## Configuration
8
+
| ENV Var | Default Value | Description |
9
+
|---------|---------------|-------------|
10
+
| <aname="app_mode"></a> [APP_MODE](#app_mode)| development | Has two possible values (production or development). |
11
+
| <aname="data_path"></a> [DATA_PATH](#data_path)| /var/lib/grafana | Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used). |
12
+
| <aname="log_path"></a> [LOG_PATH](#log_path)| /var/log | Directory where grafana can store logs. |
13
+
| <aname="server_protocol"></a> [SERVER_PROTOCOL](#server_protocol)| http | Protocol (http or https). |
14
+
| <aname="bind_address"></a> [BIND_ADDRESS](#bind_address)|`""`| The ip address to bind to, empty will bind to all interfaces |
15
+
| <aname="bind_port"></a> [BIND_PORT](#bind_port)| 3000 | The http port to use |
16
+
| <aname="domain"></a> [DOMAIN](#domain)| localhost | The public facing domain name used to access grafana from a browser |
17
+
| <aname="enforce_domain"></a> [ENFORCE_DOMAIN](#enforce_domain)| false | Redirect to correct domain if host header does not match domain. Prevents DNS rebinding attacks |
18
+
| <aname="root_url"></a> [ROOT_URL](#root_url)|`"%(protocol)s://%(domain)s:%(http_port)s/"`| The full public facing url |
19
+
| <aname="router_logging"></a> [ROUTER_LOGGING](#router_logging)| false | Log web requests |
20
+
| <aname="static_root_path"></a> [STATIC_ROOT_PATH](#static_root_path)| public | the path relative working path |
| <aname="database_host"></a> [DATABASE_HOST](#database_host)| no default | Address to external database host |
26
+
| <aname="database_name"></a> [DATABASE_NAME](#database_name)| no default | Name of database to store information |
27
+
| <aname="database_user"></a> [DATABASE_USER](#database_user)| no default | User to log into the database with |
28
+
| <aname="database_password"></a> [DATABASE_PASSWORD](#database_password)| no default | Database password |
29
+
| <aname="database_ssl_mode"></a> [DATABASE_SSL_MODE](#database_ssl_mode)| no default | For "postgres" only, either "disable", "require" or "verify-full" |
30
+
| <aname="database_path"></a> [DATABASE_PATH](#database_path)| no default | For "sqlite3" only, path relative to data_path setting |
31
+
| <aname="session_provider"></a> [SESSION_PROVIDER](#session_provider)| file | Either "memory", "file", "redis", "mysql", "postgres", default is "file" |
32
+
| <aname="session_provider_config"></a> [SESSION_PROVIDER_CONFIG](#session_provider_config)| no default | Provider config options <br>`memory: not have any config yet`<br>`file: session dir path, is relative to grafana data_path`<br>`redis: addr=127.0.0.1:6379,pool_size=100,db=grafana`<br>`mysql: user:password@tcp(127.0.0.1:3306)/database_name`<br>`postgres: user=a password=b host=localhost port=5432 dbname=c sslmode=disable`|
33
+
| <aname="session_cookie_name"></a> [SESSION_COOKIE_NAME](#session_cookie_name)| grafana_sess | Session cookie name |
34
+
| <aname="session_life_time"></a> [SESSION_LIFE_TIME](#session_life_time)| 86400 | Session life time, default is 86400 |
35
+
| <aname="grafana_reporting"></a> [GRAFANA_REPORTING](#grafana_reporting)| false | Server reporting, sends usage counters to stats.grafana.org every 24 hours. No ip addresses are being tracked, only simple counters to track running instances, dashboard and error counts. It is very helpful to us. Change this option to false to disable reporting. |
36
+
| <aname="google_analytics_ua_id"></a> [GOOGLE_ANALYTICS_UA_ID](#google_analytics_ua_id)| no default | Google Analytics universal tracking code, only enabled if you specify an id here |
37
+
| <aname="default_user"></a> [DEFAULT_USER](#default_user)| admin | default admin user, created on startup |
38
+
| <aname="default_user_password"></a> [DEFAULT_USER_PASSWORD](#default_user_password)| admin | default admin password, can be changed before first start of grafana, or in profile settings |
39
+
| <aname="secret_key"></a> [SECRET_KEY](#secret_key)| SW2YcwTIb9zpOOhoPsMm | used for signing |
40
+
| <aname="login_remember_day"></a> [LOGIN_REMEMBER_DAYS](#login_remember_day)| 7 | Auto-login remember days |
| <aname="datasource_proxy_whitelist"></a> [DATASOURCE_PROXY_WHITELIST](#datasource_proxy_whitelist)| no default | data source proxy whitelist (ip_or_domain:port seperated by spaces) |
| <aname="allow_org_create"></a> [ALLOW_ORG_CREATE](#allow_org_create)| true | Allow non admin users to create organizations |
47
+
| <aname="auto_assign_org"></a> [AUTO_ASSIGN_ORG](#auto_assign_org)| true | Set to true to automatically assign new users to the default organization (id 1) |
48
+
| <aname="auto_assign_org_role"></a> [AUTO_ASSIGN_ORG_ROLE](#auto_assign_org_role)| Viewer | Default role new users will be automatically assigned (if disabled above is set to true) |
49
+
| <aname="login_hint"></a> [LOGIN_HINT](#login_hint)| email or username | Background text for the user field on the login page |
| <aname="smtp_from_address"></a> [SMTP_FROM_ADDRESS](#smtp_from_address)|admin@grafana.localhost| From address to use when sending emails |
87
+
| <aname="welcome_email"></a> [WELCOME_EMAIL](#welcome_email)| false | Send welcome email on sign up |
88
+
| <aname="log_mode"></a> [LOG_MODE](#log_mode)| console | Either "console", "file", default is "console" Use comma to separate multiple modes, e.g. "console, file" |
89
+
| <aname="buffer_length"></a> [BUFFER_LENGTH](#buffer_length)| 10000 | Buffer length of channel, keep it as it is if you don't know what it is. |
90
+
| <aname="log_level"></a> [LOG_LEVEL](#log_level)| Info | Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace" |
91
+
| <aname="log_level_console"></a> [LOG_LEVEL_CONSOLE](#log_level_console)| Info | For "console" mode only |
92
+
| <aname="log_level_file"></a> [LOG_LEVEL_FILE](#log_level_file)| Info | For "file" mode only |
93
+
| <aname="log_rotate"></a> [LOG_ROTATE](#log_rotate)| true | This enables automated log rotate(switch of following options), default is true |
94
+
| <aname="log_max_lines"></a> [LOG_MAX_LINES](#log_max_lines)| 1000000 | Max line number of single file |
95
+
| <aname="log_max_lines_shift"></a> [LOG_MAX_LINES_SHIFT](#log_max_lines_shift)| 28 | Max size shift of single file, default is 28 means 1 << 28, 256MB |
0 commit comments