What is the official explanation for Grafana's:
Grafana is an open source program for visualizing large measurement data, providing a powerful and elegant way to create, share, and explore data. The data from your different metric data sources is displayed in dashboard.
Grafana is most commonly used for Internet infrastructure and application analysis, but it also has opportunities in other areas such as industrial sensors, home automation, Process control, and so on.
The Grafana has a hot-swappable control Panel and a scalable data source that currently supports graphite, InfluxDB, Opentsdb, and Elasticsearch.
App_mode: App Name, default is production
[Database]
# either "MySQL", "postgres" or "sqlite3", it ' s your choice
; type = Sqlite3
; host = 127.0.0.1:3306
; name = Grafana
; user = root
;p Assword =
# for "Postgres" only, either "Disable", "Require" or "verify-full"
; Ssl_mode = disable
# for "Sqlite3" only, Path relative to Data_path setting
;p ath = grafana.db
By default, Sqlite3 can be used to store data sources based on actual modifications
[Server]
HTTP_ADDR: The IP address of the listener, the default is 0.0.0.0
Http_port: Listening port, default is 3000
Protocol:http or HTTPS, the default is HTTP
Domain: This setting is part of the Root_url, when you access Grafana through the browser the public Domian name, default is localhost
Enforce_domain: If the header of the host does not match Domian, then jump to a correct domain, the default is False
Root_url: This is a full path URL for accessing Grafana on the Web, default is% (protocol) s://% (domain) s:% (http_port) s/
Router_logging: Whether the Web request log is logged, false by default
Cert_file: If you use HTTPS, you need to set
Cert_key: If you use HTTPS, you need to set
[Database]
Grafana default needs to use the database to store user and dashboard information, the default use of Sqlite3 to store, you can also switch to other databases
Type: Can be MySQL, postgres, sqlite3, default is Sqlite3
Path: Only sqlite3 required, define SQLITE3 storage path
Host: Just MySQL, Postgres needs, default is 127.0.0.1:3306
Name:grafana database name, default is Grafana
User: Users connecting to the database
Password: password for database user
Ssl_mode: Just postgres use
[Security]
Admin_user:grafana default Admin user, default is admin
Admin_password:grafana Admin default password, default is Admin
Login_remember_days: How many days to stay logged in
Secret_key: Keep signed-in status
Disable_gravatar:
[Users]
ALLOW_SIGN_UP: Whether to allow ordinary users to log on, if set to False, the user is forbidden to log on, the default is true, the admin can create users, and login Grafana
Allow_org_create: If set to False, prevents user from creating new organization, default is True
Auto_assign_org: When set to true, will automatically increase the number of new users to an organization with ID 1, when set to False, new users will add an organization
Auto_assign_org_role: New user-attached rule, default is viewer, can also be admin, Editor
[Auth.anonymous]
Enabled: Set to True to turn on Allow anonymous access, default is False
Org_name: Setting the organization name for anonymous users
Org_role: An access rule set for anonymous users, which is the viewer by default
[Auth.github]
For the GitHub project, it's obvious that hehe
Enabled = False
Allow_sign_up = False
client_id = some_id
Client_secret = Some_secret
Scopes = User:email
Auth_url = Https://github.com/login/oauth/authorize
Token_url = Https://github.com/login/oauth/access_token
Api_url = Https://api.github.com/user
Team_ids =
Allowed_domains =
Allowed_organizations =
[Auth.google]
For Google Apps,
Enabled = False
Allow_sign_up = False
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 =
[Auth.basic]
Enabled: When set to True, the HTTP API turns on Basic authentication
[Auth.ldap]
Enabled: Set to True to turn on LDAP authentication, default is False
Config_file: If LDAP is turned on, specify the configuration file for LDAP/etc/grafana/ldap.toml
[Auth.proxy]
Allows you to set authentication on an HTTP reverse proxy
Enabled: false By default
Header_name: Default is X-webauth-user
Header_property: Default is a name username
AUTO_SIGN_UP: The default is true. Turn on autoenrollment If the user does not exist in Grafana db
[Analytics]
Reporting_enabled: If set to True, anonymous usage analysis is sent to stats.grafana.org, which is used primarily to track allowed instances, versions, dashboard, and error statistics. The default is True
GOOGLE_ANALYTICS_UA_ID: Using GA for analysis, fill in your GA ID to
[Dashboards.json]
If you have a system that automatically generates JSON-formatted dashboard, you can turn on this feature to try
Enabled: false By default
Path: A full path to contain your JSON dashboard, default is/var/lib/grafana/dashboards
[Session]
Provider: Default is file, the value can also be memory, MySQL, Postgres
Provider_config: The configuration of this value is determined by the provider setting, if the provider is file, then is the data/xxxx path type, if provider is MySQL, User:[email protected] (127.0.0.1:3306)/database_name, if provider is Postgres, then user=a password=b host=localhost port=5432 dbname=c sslmode= Disable
Cookie_name:grafana's Cookie Name
Cookie_secure: If set to true, Grafana relies on HTTPS, default is False
Session_life_time:session expiration time, default is 86,400 seconds, 24 hours
Using the alert feature in version 4.0
[SMTP]
Enabled = True
Host = Smtp.126.com:25
User =gamebarlepus1
Password =126 's client authorization code
; cert_file =
; key_file =
; skip_verify = False
from_address = [email protected]
[Emails]
Welcome_email_on_sign_up = False
Templates_pattern = emails/*.html
[Log]
Mode: Can be console, file, default is console, file, can also set multiple, separated by commas
Buffer length of Buffer_len:channel, default is 10000
Level: Can be "Trace", "Debug", "info", "Warn", "Error", "Critical", the default is info
[Log.console]
Level: Setting levels
[Log.file]
Level: Setting levels
Log_rotate: Whether to turn on auto rotation
Max_lines: Maximum number of rows for a single log file, default is 1000000
Max_lines_shift: Maximum size of a single log file, default is 28, indicates 256MB
Daily_rotate: If log rotation is performed daily, the default is True
Max_days: Log expiration time, default is 7, 7 days after deletion
This article is from the "DBSpace" blog, so be sure to keep this source http://dbspace.blog.51cto.com/6873717/1891243
Grafana Basic Configuration file