github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/docker/grafana/grafana.ini (about)

     1  ##################### Grafana Configuration Example #####################
     2  #
     3  # Everything has defaults so you only need to uncomment things you want to
     4  # change
     5  
     6  # possible values : production, development
     7  ; app_mode = production
     8  
     9  # instance name, defaults to HOSTNAME environment variable value or hostname if HOSTNAME var is empty
    10  ; instance_name = ${HOSTNAME}
    11  
    12  #################################### Paths ####################################
    13  [paths]
    14  # Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used)
    15  #
    16  ;data = /var/lib/grafana
    17  #
    18  # Directory where grafana can store logs
    19  #
    20  ;logs = /var/log/grafana
    21  #
    22  # Directory where grafana will automatically scan and look for plugins
    23  #
    24  ;plugins = /var/lib/grafana/plugins
    25  
    26  #
    27  #################################### Server ####################################
    28  [server]
    29  # Protocol (http, https, socket)
    30  ;protocol = http
    31  
    32  # The ip address to bind to, empty will bind to all interfaces
    33  ;http_addr =
    34  
    35  # The http port  to use
    36  ;http_port = 3000
    37  
    38  # The public facing domain name used to access grafana from a browser
    39  ;domain = localhost
    40  
    41  # Redirect to correct domain if host header does not match domain
    42  # Prevents DNS rebinding attacks
    43  ;enforce_domain = false
    44  
    45  # The full public facing url you use in browser, used for redirects and emails
    46  # If you use reverse proxy and sub path specify full url (with sub path)
    47  ;root_url = http://localhost:3000
    48  
    49  # Log web requests
    50  ;router_logging = false
    51  
    52  # the path relative working path
    53  ;static_root_path = public
    54  
    55  # enable gzip
    56  ;enable_gzip = false
    57  
    58  # https certs & key file
    59  ;cert_file =
    60  ;cert_key =
    61  
    62  # Unix socket path
    63  ;socket =
    64  
    65  #################################### Database ####################################
    66  [database]
    67  # You can configure the database connection by specifying type, host, name, user and password
    68  # as seperate properties or as on string using the url propertie.
    69  
    70  # Either "mysql", "postgres" or "sqlite3", it's your choice
    71  ;type = sqlite3
    72  ;host = 127.0.0.1:3306
    73  ;name = grafana
    74  ;user = root
    75  # If the password contains # or ; you have to wrap it with trippel quotes. Ex """#password;"""
    76  ;password =
    77  
    78  # Use either URL or the previous fields to configure the database
    79  # Example: mysql://user:secret@host:port/database
    80  ;url =
    81  
    82  # For "postgres" only, either "disable", "require" or "verify-full"
    83  ;ssl_mode = disable
    84  
    85  # For "sqlite3" only, path relative to data_path setting
    86  ;path = grafana.db
    87  
    88  # Max conn setting default is 0 (mean not set)
    89  ;max_idle_conn =
    90  ;max_open_conn =
    91  
    92  
    93  #################################### Session ####################################
    94  [session]
    95  # Either "memory", "file", "redis", "mysql", "postgres", default is "file"
    96  ;provider = file
    97  
    98  # Provider config options
    99  # memory: not have any config yet
   100  # file: session dir path, is relative to grafana data_path
   101  # redis: config like redis server e.g. `addr=127.0.0.1:6379,pool_size=100,db=grafana`
   102  # mysql: go-sql-driver/mysql dsn config string, e.g. `user:password@tcp(127.0.0.1:3306)/database_name`
   103  # postgres: user=a password=b host=localhost port=5432 dbname=c sslmode=disable
   104  ;provider_config = sessions
   105  
   106  # Session cookie name
   107  ;cookie_name = grafana_sess
   108  
   109  # If you use session in https only, default is false
   110  ;cookie_secure = false
   111  
   112  # Session life time, default is 86400
   113  ;session_life_time = 86400
   114  
   115  #################################### Data proxy ###########################
   116  [dataproxy]
   117  
   118  # This enables data proxy logging, default is false
   119  ;logging = false
   120  
   121  
   122  #################################### Analytics ####################################
   123  [analytics]
   124  # Server reporting, sends usage counters to stats.grafana.org every 24 hours.
   125  # No ip addresses are being tracked, only simple counters to track
   126  # running instances, dashboard and error counts. It is very helpful to us.
   127  # Change this option to false to disable reporting.
   128  ;reporting_enabled = true
   129  
   130  # Set to false to disable all checks to https://grafana.net
   131  # for new vesions (grafana itself and plugins), check is used
   132  # in some UI views to notify that grafana or plugin update exists
   133  # This option does not cause any auto updates, nor send any information
   134  # only a GET request to http://grafana.com to get latest versions
   135  ;check_for_updates = true
   136  
   137  # Google Analytics universal tracking code, only enabled if you specify an id here
   138  ;google_analytics_ua_id =
   139  
   140  #################################### Security ####################################
   141  [security]
   142  # default admin user, created on startup
   143  ;admin_user = admin
   144  
   145  # default admin password, can be changed before first start of grafana,  or in profile settings
   146  ;admin_password = admin
   147  
   148  # used for signing
   149  ;secret_key = SW2YcwTIb9zpOOhoPsMm
   150  
   151  # Auto-login remember days
   152  ;login_remember_days = 7
   153  ;cookie_username = grafana_user
   154  ;cookie_remember_name = grafana_remember
   155  
   156  # disable gravatar profile images
   157  ;disable_gravatar = false
   158  
   159  # data source proxy whitelist (ip_or_domain:port separated by spaces)
   160  ;data_source_proxy_whitelist =
   161  
   162  [snapshots]
   163  # snapshot sharing options
   164  ;external_enabled = true
   165  ;external_snapshot_url = https://snapshots-origin.raintank.io
   166  ;external_snapshot_name = Publish to snapshot.raintank.io
   167  
   168  # remove expired snapshot
   169  ;snapshot_remove_expired = true
   170  
   171  # remove snapshots after 90 days
   172  ;snapshot_TTL_days = 90
   173  
   174  #################################### Users ####################################
   175  [users]
   176  # disable user signup / registration
   177  ;allow_sign_up = true
   178  
   179  # Allow non admin users to create organizations
   180  ;allow_org_create = true
   181  
   182  # Set to true to automatically assign new users to the default organization (id 1)
   183  ;auto_assign_org = true
   184  
   185  # Default role new users will be automatically assigned (if disabled above is set to true)
   186  ;auto_assign_org_role = Viewer
   187  
   188  # Background text for the user field on the login page
   189  ;login_hint = email or username
   190  
   191  # Default UI theme ("dark" or "light")
   192  ;default_theme = dark
   193  
   194  # External user management, these options affect the organization users view
   195  ;external_manage_link_url =
   196  ;external_manage_link_name =
   197  ;external_manage_info =
   198  
   199  [auth]
   200  # Set to true to disable (hide) the login form, useful if you use OAuth, defaults to false
   201  ;disable_login_form = false
   202  
   203  # Set to true to disable the signout link in the side menu. useful if you use auth.proxy, defaults to false
   204  ;disable_signout_menu = false
   205  
   206  #################################### Anonymous Auth ##########################
   207  [auth.anonymous]
   208  # enable anonymous access
   209  ;enabled = false
   210  
   211  # specify organization name that should be used for unauthenticated users
   212  ;org_name = Main Org.
   213  
   214  # specify role for unauthenticated users
   215  ;org_role = Viewer
   216  
   217  #################################### Github Auth ##########################
   218  [auth.github]
   219  ;enabled = false
   220  ;allow_sign_up = true
   221  ;client_id = some_id
   222  ;client_secret = some_secret
   223  ;scopes = user:email,read:org
   224  ;auth_url = https://github.com/login/oauth/authorize
   225  ;token_url = https://github.com/login/oauth/access_token
   226  ;api_url = https://api.github.com/user
   227  ;team_ids =
   228  ;allowed_organizations =
   229  
   230  #################################### Google Auth ##########################
   231  [auth.google]
   232  ;enabled = false
   233  ;allow_sign_up = true
   234  ;client_id = some_client_id
   235  ;client_secret = some_client_secret
   236  ;scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
   237  ;auth_url = https://accounts.google.com/o/oauth2/auth
   238  ;token_url = https://accounts.google.com/o/oauth2/token
   239  ;api_url = https://www.googleapis.com/oauth2/v1/userinfo
   240  ;allowed_domains =
   241  
   242  #################################### Generic OAuth ##########################
   243  [auth.generic_oauth]
   244  ;enabled = false
   245  ;name = OAuth
   246  ;allow_sign_up = true
   247  ;client_id = some_id
   248  ;client_secret = some_secret
   249  ;scopes = user:email,read:org
   250  ;auth_url = https://foo.bar/login/oauth/authorize
   251  ;token_url = https://foo.bar/login/oauth/access_token
   252  ;api_url = https://foo.bar/user
   253  ;team_ids =
   254  ;allowed_organizations =
   255  
   256  #################################### Grafana.com Auth ####################
   257  [auth.grafana_com]
   258  ;enabled = false
   259  ;allow_sign_up = true
   260  ;client_id = some_id
   261  ;client_secret = some_secret
   262  ;scopes = user:email
   263  ;allowed_organizations =
   264  
   265  #################################### Auth Proxy ##########################
   266  [auth.proxy]
   267  ;enabled = false
   268  ;header_name = X-WEBAUTH-USER
   269  ;header_property = username
   270  ;auto_sign_up = true
   271  ;ldap_sync_ttl = 60
   272  ;whitelist = 192.168.1.1, 192.168.2.1
   273  
   274  #################################### Basic Auth ##########################
   275  [auth.basic]
   276  ;enabled = true
   277  
   278  #################################### Auth LDAP ##########################
   279  [auth.ldap]
   280  ;enabled = false
   281  ;config_file = /etc/grafana/ldap.toml
   282  ;allow_sign_up = true
   283  
   284  #################################### SMTP / Emailing ##########################
   285  [smtp]
   286  ;enabled = false
   287  ;host = localhost:25
   288  ;user =
   289  # If the password contains # or ; you have to wrap it with trippel quotes. Ex """#password;"""
   290  ;password =
   291  ;cert_file =
   292  ;key_file =
   293  ;skip_verify = false
   294  ;from_address = admin@grafana.localhost
   295  ;from_name = Grafana
   296  
   297  [emails]
   298  ;welcome_email_on_sign_up = false
   299  
   300  #################################### Logging ##########################
   301  [log]
   302  # Either "console", "file", "syslog". Default is console and  file
   303  # Use space to separate multiple modes, e.g. "console file"
   304  ;mode = console file
   305  
   306  # Either "debug", "info", "warn", "error", "critical", default is "info"
   307  ;level = info
   308  
   309  # optional settings to set different levels for specific loggers. Ex filters = sqlstore:debug
   310  ;filters =
   311  
   312  
   313  # For "console" mode only
   314  [log.console]
   315  ;level =
   316  
   317  # log line format, valid options are text, console and json
   318  ;format = console
   319  
   320  # For "file" mode only
   321  [log.file]
   322  ;level =
   323  
   324  # log line format, valid options are text, console and json
   325  ;format = text
   326  
   327  # This enables automated log rotate(switch of following options), default is true
   328  ;log_rotate = true
   329  
   330  # Max line number of single file, default is 1000000
   331  ;max_lines = 1000000
   332  
   333  # Max size shift of single file, default is 28 means 1 << 28, 256MB
   334  ;max_size_shift = 28
   335  
   336  # Segment log daily, default is true
   337  ;daily_rotate = true
   338  
   339  # Expired days of log file(delete after max days), default is 7
   340  ;max_days = 7
   341  
   342  [log.syslog]
   343  ;level =
   344  
   345  # log line format, valid options are text, console and json
   346  ;format = text
   347  
   348  # Syslog network type and address. This can be udp, tcp, or unix. If left blank, the default unix endpoints will be used.
   349  ;network =
   350  ;address =
   351  
   352  # Syslog facility. user, daemon and local0 through local7 are valid.
   353  ;facility =
   354  
   355  # Syslog tag. By default, the process' argv[0] is used.
   356  ;tag =
   357  
   358  
   359  #################################### AMQP Event Publisher ##########################
   360  [event_publisher]
   361  ;enabled = false
   362  ;rabbitmq_url = amqp://localhost/
   363  ;exchange = grafana_events
   364  
   365  ;#################################### Dashboard JSON files ##########################
   366  [dashboards.json]
   367  enabled = true
   368  path = /etc/grafana/dashboards
   369  
   370  #################################### Alerting ############################
   371  [alerting]
   372  # Disable alerting engine & UI features
   373  ;enabled = true
   374  # Makes it possible to turn off alert rule execution but alerting UI is visible
   375  ;execute_alerts = true
   376  
   377  #################################### Internal Grafana Metrics ##########################
   378  # Metrics available at HTTP API Url /api/metrics
   379  [metrics]
   380  # Disable / Enable internal metrics
   381  ;enabled           = true
   382  
   383  # Publish interval
   384  ;interval_seconds  = 10
   385  
   386  # Send internal metrics to Graphite
   387  [metrics.graphite]
   388  # Enable by setting the address setting (ex localhost:2003)
   389  ;address =
   390  ;prefix = prod.grafana.%(instance_name)s.
   391  
   392  #################################### Grafana.com integration  ##########################
   393  # Url used to to import dashboards directly from Grafana.com
   394  [grafana_com]
   395  ;url = https://grafana.com
   396  
   397  #################################### External image storage ##########################
   398  [external_image_storage]
   399  # Used for uploading images to public servers so they can be included in slack/email messages.
   400  # you can choose between (s3, webdav)
   401  ;provider =
   402  
   403  [external_image_storage.s3]
   404  ;bucket_url =
   405  ;access_key =
   406  ;secret_key =
   407  
   408  [external_image_storage.webdav]
   409  ;url =
   410  ;public_url =
   411  ;username =
   412  ;password =