forked from bitlair/ansible
Add monitoring role
This commit is contained in:
parent
dca17d5750
commit
d06406c9f4
17 changed files with 539 additions and 0 deletions
85
roles/monitoring/templates/grafana.ini
Normal file
85
roles/monitoring/templates/grafana.ini
Normal file
|
@ -0,0 +1,85 @@
|
|||
# Managed by Asnible
|
||||
|
||||
app_mode = production
|
||||
instance_name = monitoring
|
||||
|
||||
# Directories
|
||||
[paths]
|
||||
data = /var/lib/grafana
|
||||
logs = /var/log/grafana
|
||||
plugins = /var/lib/grafana/plugins
|
||||
|
||||
# HTTP options
|
||||
[server]
|
||||
http_addr = {{ grafana_address }}
|
||||
http_port = {{ grafana_port }}
|
||||
domain = {{ grafana_domain }}
|
||||
root_url = {{ grafana_url }}
|
||||
protocol = http
|
||||
enforce_domain = False
|
||||
socket =
|
||||
cert_key =
|
||||
cert_file =
|
||||
enable_gzip = False
|
||||
static_root_path = public
|
||||
router_logging = False
|
||||
serve_from_sub_path = False
|
||||
|
||||
# Database
|
||||
[database]
|
||||
type = sqlite3
|
||||
|
||||
# Remote cache
|
||||
[remote_cache]
|
||||
|
||||
# Security
|
||||
[security]
|
||||
admin_user = admin
|
||||
admin_password = {{ grafana_admin_password }}
|
||||
|
||||
# Users management and registration
|
||||
[users]
|
||||
allow_sign_up = False
|
||||
auto_assign_org_role = Viewer
|
||||
default_theme = dark
|
||||
|
||||
[emails]
|
||||
welcome_email_on_sign_up = False
|
||||
|
||||
# Analytics
|
||||
[analytics]
|
||||
reporting_enabled = "True"
|
||||
|
||||
# Dashboards
|
||||
[dashboards]
|
||||
versions_to_keep = 20
|
||||
|
||||
[dashboards.json]
|
||||
enabled = true
|
||||
path = /var/lib/grafana/dashboards
|
||||
|
||||
# Alerting
|
||||
[alerting]
|
||||
enabled = true
|
||||
execute_alerts = True
|
||||
|
||||
# SMTP and email config
|
||||
|
||||
# Logging
|
||||
[log]
|
||||
mode = console, file
|
||||
level = info
|
||||
|
||||
# Grafana.com configuration
|
||||
[grafana_com]
|
||||
url = https://grafana.com
|
||||
|
||||
[auth.anonymous]
|
||||
enabled = true
|
||||
org_name = Bitlair
|
||||
org_role = Viewer
|
||||
|
||||
[auth.ldap]
|
||||
enabled = true
|
||||
config_file = /etc/grafana/ldap.toml
|
||||
allow_sign_up = true
|
Loading…
Add table
Add a link
Reference in a new issue