cam_machi

grafana-cm.yml

Oct 14th, 2020
13
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. apiVersion: v1
  2. kind: ConfigMap
  3. metadata:
  4.   name: grafana-conf
  5. data:
  6.   grafana.ini: |
  7.    #################################### Server ####################################
  8.     [server]
  9.     # Protocol (http, https, socket)
  10.     protocol = http
  11.     # The ip address to bind to, empty will bind to all interfaces
  12.     http_addr =
  13.     # The http port  to use
  14.     http_port = 3000
  15.     # The public facing domain name used to access grafana from a browser
  16.     domain = ophealthdashboard-2x.us-south.containers.appdomain.cloud
  17.     # Redirect to correct domain if host header does not match domain
  18.     # Prevents DNS rebinding attacks
  19.     ;enforce_domain = false
  20.     # The full public facing url you use in browser, used for redirects and emails
  21.     # If you use reverse proxy and sub path specify full url (with sub path)
  22.     root_url = https://%(domain)s/grafana
  23.     #serve_from_sub_path: true
  24.     # https certs & key file
  25.     # cert_file = /etc/grafana/ssl/general.crt
  26.     # cert_key = /etc/grafana/ssl/general.key
  27.     #################################### Database ####################################
  28.     [database]
  29.     # You can configure the database connection by specifying type, host, name, user and password
  30.     # as separate properties or as on string using the url properties.
  31.     # Either "mysql", "postgres" or "sqlite3", it's your choice
  32.     type = mysql
  33.     ;host = 127.0.0.1:3306
  34.     ;name = grafana
  35.     ;user = root
  36.     # If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
  37.     ;password =
  38.     # Use either URL or the previous fields to configure the database
  39.     url = mysql://admin:${GRAFANA_DB_PASSWORD}@***/grafana
  40.     # For "postgres" only, either "disable", "require" or "verify-full"
  41.     ;ssl_mode = disable
  42.     # For "sqlite3" only, path relative to data_path setting
  43.     ;path = grafana.db
  44.     # Max idle conn setting default is 2
  45.     ;max_idle_conn = 2
  46.     # Max conn setting default is 0 (mean not set)
  47.     ;max_open_conn =
  48.     # Connection Max Lifetime default is 14400 (means 14400 seconds or 4 hours)
  49.     ;conn_max_lifetime = 14400
  50.     # Set to true to log the sql calls and execution times.
  51.     log_queries =
  52.     [remote_cache]
  53.     ;type = database
  54.     #################################### Session Removed in v6.2 #################################
  55.     # [session]
  56.     # Removed starting from Grafana v6.2. Please use remote_cache option instead.
  57.     # Either "memory", "file", "redis", "mysql", "postgres", default is "file"
  58.     # provider = memory
  59.     # Provider config options
  60.     # memory: not have any config yet
  61.     # file: session dir path, is relative to grafana data_path
  62.     # redis: config like redis server e.g. `addr=127.0.0.1:6379,pool_size=100,db=grafana`
  63.     # mysql: go-sql-driver/mysql dsn config string, e.g. `user:password@tcp(127.0.0.1:3306)/database_name`
  64.     # postgres: user=a password=b host=localhost port=5432 dbname=c sslmode=disable
  65.     ;provider_config = sessions
  66.     # Session cookie name
  67.     ;cookie_name = grafana_sess
  68.     # If you use session in https only, default is false
  69.     ;cookie_secure = false
  70.     # Session life time, default is 86400
  71.     ;session_life_time = 86400
  72.     #################################### Security ####################################
  73.     [security]
  74.     # default admin user, created on startup
  75.     ;admin_user =
  76.     # default admin password, can be changed before first start of grafana,  or in profile settings
  77.     ;admin_password =
  78.     # used for signing
  79.     ;secret_key =
  80.     # Auto-login remember days
  81.     ;login_remember_days = 7
  82.     ;cookie_username = grafana_user
  83.     ;cookie_remember_name = grafana_remember
  84.     # disable gravatar profile images
  85.     disable_gravatar = true
  86.     # data source proxy whitelist (ip_or_domain:port separated by spaces)
  87.     ;data_source_proxy_whitelist =
  88.     data_source_proxy_whitelist = ophealthdashboard-2x.us-south.containers.appdomain.cloud
  89.     # disable protection against brute force login attempts
  90.     ;disable_brute_force_login_protection = false
  91.     #################################### Dashboards History ##################
  92.     [dashboards]
  93.     # Number dashboard versions to keep (per dashboard). Default: 20, Minimum: 1
  94.     ;versions_to_keep = 20
  95.     #################################### Users ###############################
  96.     [users]
  97.     # disable user signup / registration
  98.     ;allow_sign_up = true
  99.     # Allow non admin users to create organizations
  100.     ;allow_org_create = false
  101.     # Set to true to automatically assign new users to the default organization (id 1)
  102.     auto_assign_org = true
  103.     # Default role new users will be automatically assigned (if disabled above is set to true)
  104.     auto_assign_org_role = Viewer
  105.     # Background text for the user field on the login page
  106.     login_hint = Use w3 intranet ID
  107.     # Default UI theme ("dark" or "light")
  108.     ;default_theme = dark
  109.     # External user management, these options affect the organization users view
  110.     ;external_manage_link_url =
  111.     ;external_manage_link_name =
  112.     ;external_manage_info =
  113.     # Viewers can edit/inspect dashboard settings in the browser. But not save the dashboard.
  114.     ;viewers_can_edit = false
  115.     [auth]
  116.     # Set to true to disable (hide) the login form, useful if you use OAuth, defaults to false
  117.     disable_login_form = true
  118.     # Set to true to disable the signout link in the side menu. useful if you use auth.proxy, defaults to false
  119.     ;disable_signout_menu = true
  120.     #oauth_auto_login = true
  121.     #################################### Anonymous Auth ##########################
  122.     [auth.anonymous]
  123.     # enable anonymous access
  124.     ;enabled = false
  125.     # specify organization name that should be used for unauthenticated users
  126.     ;org_name = Main Org.
  127.     # specify role for unauthenticated users
  128.     ;org_role = Viewer
  129.     #################################### Auth Proxy ##########################
  130.     [auth.proxy]
  131.     enabled = false
  132.     header_name = X-WEBAUTH-USER
  133.     header_property = email
  134.     ########headers = Name:X-WEBAUTH-NAME Email:X-WEBAUTH-EMAIL
  135.     auto_sign_up = true
  136.     ldap_sync_ttl = 60
  137.     ;whitelist = ***
  138.     [auth.generic_oauth]
  139.     enabled = true
  140.     client_id = ${OIDC_CLIENT_ID}
  141.     client_secret = ${OIDC_CLIENT_SECRET}
  142.     scopes = openid email profile
  143.     #email_attribute_name = "email"
  144.     auth_url = ***
  145.     token_url = ***
  146.     api_url = ***
  147.     allow_sign_up = true
  148.     #################################### Basic Auth ##########################
  149.     [auth.basic]
  150.     enabled = false
  151.     #################################### Auth LDAP ##########################
  152.     [auth.ldap]
  153.     ;enabled = true
  154.     ;config_file = /etc/grafana/ldap.toml
  155.     ;allow_sign_up = true
  156.     #################################### Logging ##########################
  157.     [log]
  158.     # Either "console", "file", "syslog". Default is console and  file
  159.     # Use space to separate multiple modes, e.g. "console file"
  160.     ;mode = console file
  161.     # Either "debug", "info", "warn", "error", "critical", default is "info"
  162.     ;level = info
  163.     level = info
  164.     # optional settings to set different levels for specific loggers. Ex filters = sqlstore:debug
  165.     ;filters =
  166.     # For "console" mode only
  167.     [log.console]
  168.     ;level =
  169.     # log line format, valid options are text, console and json
  170.     ;format = console
  171.     # For "file" mode only
  172.     [log.file]
  173.     ;level =
  174.     # log line format, valid options are text, console and json
  175.     ;format = text
  176.     # This enables automated log rotate(switch of following options), default is true
  177.     ;log_rotate = true
  178.     # Max line number of single file, default is 1000000
  179.     ;max_lines = 1000000
  180.     # Max size shift of single file, default is 28 means 1 << 28, 256MB
  181.     ;max_size_shift = 28
  182.     # Segment log daily, default is true
  183.     ;daily_rotate = true
  184.     # Expired days of log file(delete after max days), default is 7
  185.     ;max_days = 7
  186.     [log.syslog]
  187.     ;level =
  188.     # log line format, valid options are text, console and json
  189.     ;format = text
  190.     # Syslog network type and address. This can be udp, tcp, or unix. If left blank, the default unix endpoints will be used.
  191.     ;network =
  192.     ;address =
  193.     # Syslog facility. user, daemon and local0 through local7 are valid.
  194.     ;facility =
  195.     # Syslog tag. By default, the process' argv[0] is used.
  196.     ;tag =
  197.     [panels]
  198.     disable_sanitize_html =  true
  199.     #################################### Alerting ############################
  200.     [alerting]
  201.     # Disable alerting engine & UI features
  202.     enabled = false
  203.     # Makes it possible to turn off alert rule execution but alerting UI is visible
  204.     ;execute_alerts = true
  205.     [snapshots]
  206.     external_enabled = false
RAW Paste Data