Initialer Commit
commit
1d54538636
|
|
@ -0,0 +1,2 @@
|
||||||
|
/data
|
||||||
|
*.swp
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
FROM alpine:3.5
|
||||||
|
|
||||||
|
RUN apk --update search -qe 'collectd-*' | xargs apk add
|
||||||
|
|
||||||
|
#CMD ["umount", "/proc", "&&", "mount", "-o", "bind", "/mnt/proc", "/proc", "&&", "collectd", "-f"]
|
||||||
|
CMD ["collectd", "-f"]
|
||||||
|
|
@ -0,0 +1,54 @@
|
||||||
|
Interval 10
|
||||||
|
LoadPlugin syslog
|
||||||
|
LoadPlugin cpu
|
||||||
|
LoadPlugin memory
|
||||||
|
LoadPlugin network
|
||||||
|
LoadPlugin logfile
|
||||||
|
LoadPlugin write_graphite
|
||||||
|
|
||||||
|
|
||||||
|
<Plugin logfile>
|
||||||
|
LogLevel "debug"
|
||||||
|
File STDOUT
|
||||||
|
Timestamp true
|
||||||
|
PrintSeverity false
|
||||||
|
</Plugin>
|
||||||
|
|
||||||
|
|
||||||
|
<Plugin cpu>
|
||||||
|
ReportByCpu true
|
||||||
|
ReportByState true
|
||||||
|
ValuesPercentage false
|
||||||
|
</Plugin>
|
||||||
|
|
||||||
|
|
||||||
|
<Plugin memory>
|
||||||
|
ValuesAbsolute true
|
||||||
|
ValuesPercentage true
|
||||||
|
</Plugin>
|
||||||
|
<Plugin network>
|
||||||
|
Server "db" "25826"
|
||||||
|
|
||||||
|
MaxPacketSize 1452
|
||||||
|
Forward true
|
||||||
|
#CacheFlush 1800
|
||||||
|
TimeToLive 128
|
||||||
|
</Plugin>
|
||||||
|
|
||||||
|
<Plugin write_graphite>
|
||||||
|
<Node "docker-compose">
|
||||||
|
Host "db"
|
||||||
|
Port "2003"
|
||||||
|
Protocol "tcp"
|
||||||
|
ReconnectInterval 0
|
||||||
|
LogSendErrors true
|
||||||
|
Prefix "collectd"
|
||||||
|
Postfix "collectd"
|
||||||
|
StoreRates true
|
||||||
|
AlwaysAppendDS false
|
||||||
|
EscapeCharacter "_"
|
||||||
|
SeparateInstances false
|
||||||
|
# PreserveSeparator false
|
||||||
|
# DropDuplicateFields false
|
||||||
|
</Node>
|
||||||
|
</Plugin>
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,414 @@
|
||||||
|
##################### Grafana Configuration Example #####################
|
||||||
|
#
|
||||||
|
# Everything has defaults so you only need to uncomment things you want to
|
||||||
|
# change
|
||||||
|
|
||||||
|
# possible values : production, development
|
||||||
|
; app_mode = production
|
||||||
|
|
||||||
|
# instance name, defaults to HOSTNAME environment variable value or hostname if HOSTNAME var is empty
|
||||||
|
; instance_name = ${HOSTNAME}
|
||||||
|
|
||||||
|
#################################### Paths ####################################
|
||||||
|
[paths]
|
||||||
|
# Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used)
|
||||||
|
#
|
||||||
|
;data = /var/lib/grafana
|
||||||
|
#
|
||||||
|
# Directory where grafana can store logs
|
||||||
|
#
|
||||||
|
;logs = /var/log/grafana
|
||||||
|
#
|
||||||
|
# Directory where grafana will automatically scan and look for plugins
|
||||||
|
#
|
||||||
|
;plugins = /var/lib/grafana/plugins
|
||||||
|
|
||||||
|
#
|
||||||
|
#################################### Server ####################################
|
||||||
|
[server]
|
||||||
|
# Protocol (http, https, socket)
|
||||||
|
;protocol = http
|
||||||
|
|
||||||
|
# The ip address to bind to, empty will bind to all interfaces
|
||||||
|
;http_addr =
|
||||||
|
|
||||||
|
# The http port to use
|
||||||
|
;http_port = 3000
|
||||||
|
|
||||||
|
# The public facing domain name used to access grafana from a browser
|
||||||
|
;domain = localhost
|
||||||
|
|
||||||
|
# Redirect to correct domain if host header does not match domain
|
||||||
|
# Prevents DNS rebinding attacks
|
||||||
|
;enforce_domain = false
|
||||||
|
|
||||||
|
# The full public facing url you use in browser, used for redirects and emails
|
||||||
|
# If you use reverse proxy and sub path specify full url (with sub path)
|
||||||
|
;root_url = http://localhost:3000
|
||||||
|
|
||||||
|
# Log web requests
|
||||||
|
;router_logging = false
|
||||||
|
|
||||||
|
# the path relative working path
|
||||||
|
;static_root_path = public
|
||||||
|
|
||||||
|
# enable gzip
|
||||||
|
;enable_gzip = false
|
||||||
|
|
||||||
|
# https certs & key file
|
||||||
|
;cert_file =
|
||||||
|
;cert_key =
|
||||||
|
|
||||||
|
# Unix socket path
|
||||||
|
;socket =
|
||||||
|
|
||||||
|
#################################### Database ####################################
|
||||||
|
[database]
|
||||||
|
# You can configure the database connection by specifying type, host, name, user and password
|
||||||
|
# as seperate properties or as on string using the url propertie.
|
||||||
|
|
||||||
|
# Either "mysql", "postgres" or "sqlite3", it's your choice
|
||||||
|
;type = sqlite3
|
||||||
|
;host = 127.0.0.1:3306
|
||||||
|
;name = grafana
|
||||||
|
;user = root
|
||||||
|
# If the password contains # or ; you have to wrap it with trippel quotes. Ex """#password;"""
|
||||||
|
;password =
|
||||||
|
|
||||||
|
# Use either URL or the previous fields to configure the database
|
||||||
|
# Example: mysql://user:secret@host:port/database
|
||||||
|
;url =
|
||||||
|
|
||||||
|
# For "postgres" only, either "disable", "require" or "verify-full"
|
||||||
|
;ssl_mode = disable
|
||||||
|
|
||||||
|
# For "sqlite3" only, path relative to data_path setting
|
||||||
|
;path = grafana.db
|
||||||
|
|
||||||
|
# Max idle conn setting default is 2
|
||||||
|
;max_idle_conn = 2
|
||||||
|
|
||||||
|
# Max conn setting default is 0 (mean not set)
|
||||||
|
;max_open_conn =
|
||||||
|
|
||||||
|
|
||||||
|
#################################### Session ####################################
|
||||||
|
[session]
|
||||||
|
# Either "memory", "file", "redis", "mysql", "postgres", default is "file"
|
||||||
|
;provider = file
|
||||||
|
|
||||||
|
# Provider config options
|
||||||
|
# memory: not have any config yet
|
||||||
|
# file: session dir path, is relative to grafana data_path
|
||||||
|
# redis: config like redis server e.g. `addr=127.0.0.1:6379,pool_size=100,db=grafana`
|
||||||
|
# mysql: go-sql-driver/mysql dsn config string, e.g. `user:password@tcp(127.0.0.1:3306)/database_name`
|
||||||
|
# postgres: user=a password=b host=localhost port=5432 dbname=c sslmode=disable
|
||||||
|
;provider_config = sessions
|
||||||
|
|
||||||
|
# Session cookie name
|
||||||
|
;cookie_name = grafana_sess
|
||||||
|
|
||||||
|
# If you use session in https only, default is false
|
||||||
|
;cookie_secure = false
|
||||||
|
|
||||||
|
# Session life time, default is 86400
|
||||||
|
;session_life_time = 86400
|
||||||
|
|
||||||
|
#################################### Data proxy ###########################
|
||||||
|
[dataproxy]
|
||||||
|
|
||||||
|
# This enables data proxy logging, default is false
|
||||||
|
;logging = false
|
||||||
|
|
||||||
|
|
||||||
|
#################################### Analytics ####################################
|
||||||
|
[analytics]
|
||||||
|
# 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.
|
||||||
|
;reporting_enabled = true
|
||||||
|
|
||||||
|
# Set to false to disable all checks to https://grafana.net
|
||||||
|
# for new vesions (grafana itself and plugins), check is used
|
||||||
|
# in some UI views to notify that grafana or plugin update exists
|
||||||
|
# This option does not cause any auto updates, nor send any information
|
||||||
|
# only a GET request to http://grafana.com to get latest versions
|
||||||
|
;check_for_updates = true
|
||||||
|
|
||||||
|
# Google Analytics universal tracking code, only enabled if you specify an id here
|
||||||
|
;google_analytics_ua_id =
|
||||||
|
|
||||||
|
#################################### Security ####################################
|
||||||
|
[security]
|
||||||
|
# default admin user, created on startup
|
||||||
|
;admin_user = admin
|
||||||
|
|
||||||
|
# default admin password, can be changed before first start of grafana, or in profile settings
|
||||||
|
;admin_password = admin
|
||||||
|
|
||||||
|
# used for signing
|
||||||
|
;secret_key = SW2YcwTIb9zpOOhoPsMm
|
||||||
|
|
||||||
|
# Auto-login remember days
|
||||||
|
;login_remember_days = 7
|
||||||
|
;cookie_username = grafana_user
|
||||||
|
;cookie_remember_name = grafana_remember
|
||||||
|
|
||||||
|
# disable gravatar profile images
|
||||||
|
;disable_gravatar = false
|
||||||
|
|
||||||
|
# data source proxy whitelist (ip_or_domain:port separated by spaces)
|
||||||
|
;data_source_proxy_whitelist =
|
||||||
|
|
||||||
|
[snapshots]
|
||||||
|
# snapshot sharing options
|
||||||
|
;external_enabled = true
|
||||||
|
;external_snapshot_url = https://snapshots-origin.raintank.io
|
||||||
|
;external_snapshot_name = Publish to snapshot.raintank.io
|
||||||
|
|
||||||
|
# remove expired snapshot
|
||||||
|
;snapshot_remove_expired = true
|
||||||
|
|
||||||
|
# remove snapshots after 90 days
|
||||||
|
;snapshot_TTL_days = 90
|
||||||
|
|
||||||
|
#################################### Users ####################################
|
||||||
|
[users]
|
||||||
|
# disable user signup / registration
|
||||||
|
;allow_sign_up = true
|
||||||
|
|
||||||
|
# Allow non admin users to create organizations
|
||||||
|
;allow_org_create = true
|
||||||
|
|
||||||
|
# Set to true to automatically assign new users to the default organization (id 1)
|
||||||
|
;auto_assign_org = true
|
||||||
|
|
||||||
|
# Default role new users will be automatically assigned (if disabled above is set to true)
|
||||||
|
;auto_assign_org_role = Viewer
|
||||||
|
|
||||||
|
# Background text for the user field on the login page
|
||||||
|
;login_hint = email or username
|
||||||
|
|
||||||
|
# Default UI theme ("dark" or "light")
|
||||||
|
;default_theme = dark
|
||||||
|
|
||||||
|
# External user management, these options affect the organization users view
|
||||||
|
;external_manage_link_url =
|
||||||
|
;external_manage_link_name =
|
||||||
|
;external_manage_info =
|
||||||
|
|
||||||
|
[auth]
|
||||||
|
# Set to true to disable (hide) the login form, useful if you use OAuth, defaults to false
|
||||||
|
;disable_login_form = false
|
||||||
|
|
||||||
|
# Set to true to disable the signout link in the side menu. useful if you use auth.proxy, defaults to false
|
||||||
|
;disable_signout_menu = false
|
||||||
|
|
||||||
|
#################################### Anonymous Auth ##########################
|
||||||
|
[auth.anonymous]
|
||||||
|
# enable anonymous access
|
||||||
|
;enabled = false
|
||||||
|
|
||||||
|
# specify organization name that should be used for unauthenticated users
|
||||||
|
;org_name = Main Org.
|
||||||
|
|
||||||
|
# specify role for unauthenticated users
|
||||||
|
;org_role = Viewer
|
||||||
|
|
||||||
|
#################################### Github Auth ##########################
|
||||||
|
[auth.github]
|
||||||
|
;enabled = false
|
||||||
|
;allow_sign_up = true
|
||||||
|
;client_id = some_id
|
||||||
|
;client_secret = some_secret
|
||||||
|
;scopes = user:email,read:org
|
||||||
|
;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_organizations =
|
||||||
|
|
||||||
|
#################################### Google Auth ##########################
|
||||||
|
[auth.google]
|
||||||
|
;enabled = false
|
||||||
|
;allow_sign_up = true
|
||||||
|
;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 =
|
||||||
|
|
||||||
|
#################################### Generic OAuth ##########################
|
||||||
|
[auth.generic_oauth]
|
||||||
|
;enabled = false
|
||||||
|
;name = OAuth
|
||||||
|
;allow_sign_up = true
|
||||||
|
;client_id = some_id
|
||||||
|
;client_secret = some_secret
|
||||||
|
;scopes = user:email,read:org
|
||||||
|
;auth_url = https://foo.bar/login/oauth/authorize
|
||||||
|
;token_url = https://foo.bar/login/oauth/access_token
|
||||||
|
;api_url = https://foo.bar/user
|
||||||
|
;team_ids =
|
||||||
|
;allowed_organizations =
|
||||||
|
|
||||||
|
#################################### Grafana.com Auth ####################
|
||||||
|
[auth.grafana_com]
|
||||||
|
;enabled = false
|
||||||
|
;allow_sign_up = true
|
||||||
|
;client_id = some_id
|
||||||
|
;client_secret = some_secret
|
||||||
|
;scopes = user:email
|
||||||
|
;allowed_organizations =
|
||||||
|
|
||||||
|
#################################### Auth Proxy ##########################
|
||||||
|
[auth.proxy]
|
||||||
|
;enabled = false
|
||||||
|
;header_name = X-WEBAUTH-USER
|
||||||
|
;header_property = username
|
||||||
|
;auto_sign_up = true
|
||||||
|
;ldap_sync_ttl = 60
|
||||||
|
;whitelist = 192.168.1.1, 192.168.2.1
|
||||||
|
|
||||||
|
#################################### Basic Auth ##########################
|
||||||
|
[auth.basic]
|
||||||
|
;enabled = true
|
||||||
|
|
||||||
|
#################################### Auth LDAP ##########################
|
||||||
|
[auth.ldap]
|
||||||
|
;enabled = false
|
||||||
|
;config_file = /etc/grafana/ldap.toml
|
||||||
|
;allow_sign_up = true
|
||||||
|
|
||||||
|
#################################### SMTP / Emailing ##########################
|
||||||
|
[smtp]
|
||||||
|
;enabled = false
|
||||||
|
;host = localhost:25
|
||||||
|
;user =
|
||||||
|
# If the password contains # or ; you have to wrap it with trippel quotes. Ex """#password;"""
|
||||||
|
;password =
|
||||||
|
;cert_file =
|
||||||
|
;key_file =
|
||||||
|
;skip_verify = false
|
||||||
|
;from_address = admin@grafana.localhost
|
||||||
|
;from_name = Grafana
|
||||||
|
|
||||||
|
[emails]
|
||||||
|
;welcome_email_on_sign_up = false
|
||||||
|
|
||||||
|
#################################### Logging ##########################
|
||||||
|
[log]
|
||||||
|
# Either "console", "file", "syslog". Default is console and file
|
||||||
|
# Use space to separate multiple modes, e.g. "console file"
|
||||||
|
;mode = console file
|
||||||
|
|
||||||
|
# Either "debug", "info", "warn", "error", "critical", default is "info"
|
||||||
|
;level = info
|
||||||
|
|
||||||
|
# optional settings to set different levels for specific loggers. Ex filters = sqlstore:debug
|
||||||
|
;filters =
|
||||||
|
|
||||||
|
|
||||||
|
# For "console" mode only
|
||||||
|
[log.console]
|
||||||
|
;level =
|
||||||
|
|
||||||
|
# log line format, valid options are text, console and json
|
||||||
|
;format = console
|
||||||
|
|
||||||
|
# For "file" mode only
|
||||||
|
[log.file]
|
||||||
|
;level =
|
||||||
|
|
||||||
|
# log line format, valid options are text, console and json
|
||||||
|
;format = text
|
||||||
|
|
||||||
|
# This enables automated log rotate(switch of following options), default is true
|
||||||
|
;log_rotate = true
|
||||||
|
|
||||||
|
# Max line number of single file, default is 1000000
|
||||||
|
;max_lines = 1000000
|
||||||
|
|
||||||
|
# Max size shift of single file, default is 28 means 1 << 28, 256MB
|
||||||
|
;max_size_shift = 28
|
||||||
|
|
||||||
|
# Segment log daily, default is true
|
||||||
|
;daily_rotate = true
|
||||||
|
|
||||||
|
# Expired days of log file(delete after max days), default is 7
|
||||||
|
;max_days = 7
|
||||||
|
|
||||||
|
[log.syslog]
|
||||||
|
;level =
|
||||||
|
|
||||||
|
# log line format, valid options are text, console and json
|
||||||
|
;format = text
|
||||||
|
|
||||||
|
# Syslog network type and address. This can be udp, tcp, or unix. If left blank, the default unix endpoints will be used.
|
||||||
|
;network =
|
||||||
|
;address =
|
||||||
|
|
||||||
|
# Syslog facility. user, daemon and local0 through local7 are valid.
|
||||||
|
;facility =
|
||||||
|
|
||||||
|
# Syslog tag. By default, the process' argv[0] is used.
|
||||||
|
;tag =
|
||||||
|
|
||||||
|
|
||||||
|
#################################### AMQP Event Publisher ##########################
|
||||||
|
[event_publisher]
|
||||||
|
;enabled = false
|
||||||
|
;rabbitmq_url = amqp://localhost/
|
||||||
|
;exchange = grafana_events
|
||||||
|
|
||||||
|
;#################################### Dashboard JSON files ##########################
|
||||||
|
[dashboards.json]
|
||||||
|
;enabled = false
|
||||||
|
;path = /var/lib/grafana/dashboards
|
||||||
|
|
||||||
|
#################################### Alerting ############################
|
||||||
|
[alerting]
|
||||||
|
# Disable alerting engine & UI features
|
||||||
|
;enabled = true
|
||||||
|
# Makes it possible to turn off alert rule execution but alerting UI is visible
|
||||||
|
;execute_alerts = true
|
||||||
|
|
||||||
|
#################################### Internal Grafana Metrics ##########################
|
||||||
|
# Metrics available at HTTP API Url /api/metrics
|
||||||
|
[metrics]
|
||||||
|
# Disable / Enable internal metrics
|
||||||
|
;enabled = true
|
||||||
|
|
||||||
|
# Publish interval
|
||||||
|
;interval_seconds = 10
|
||||||
|
|
||||||
|
# Send internal metrics to Graphite
|
||||||
|
[metrics.graphite]
|
||||||
|
# Enable by setting the address setting (ex localhost:2003)
|
||||||
|
;address =
|
||||||
|
;prefix = prod.grafana.%(instance_name)s.
|
||||||
|
|
||||||
|
#################################### Grafana.com integration ##########################
|
||||||
|
# Url used to to import dashboards directly from Grafana.com
|
||||||
|
[grafana_com]
|
||||||
|
;url = https://grafana.com
|
||||||
|
|
||||||
|
#################################### External image storage ##########################
|
||||||
|
[external_image_storage]
|
||||||
|
# Used for uploading images to public servers so they can be included in slack/email messages.
|
||||||
|
# you can choose between (s3, webdav)
|
||||||
|
;provider =
|
||||||
|
|
||||||
|
[external_image_storage.s3]
|
||||||
|
;bucket_url =
|
||||||
|
;access_key =
|
||||||
|
;secret_key =
|
||||||
|
|
||||||
|
[external_image_storage.webdav]
|
||||||
|
;url =
|
||||||
|
;public_url =
|
||||||
|
;username =
|
||||||
|
;password =
|
||||||
|
|
@ -0,0 +1,85 @@
|
||||||
|
# To troubleshoot and get more log info enable ldap debug logging in grafana.ini
|
||||||
|
# [log]
|
||||||
|
# filters = ldap:debug
|
||||||
|
|
||||||
|
[[servers]]
|
||||||
|
# Ldap server host (specify multiple hosts space separated)
|
||||||
|
host = "127.0.0.1"
|
||||||
|
# Default port is 389 or 636 if use_ssl = true
|
||||||
|
port = 389
|
||||||
|
# Set to true if ldap server supports TLS
|
||||||
|
use_ssl = false
|
||||||
|
# Set to true if connect ldap server with STARTTLS pattern (create connection in insecure, then upgrade to secure connection with TLS)
|
||||||
|
start_tls = false
|
||||||
|
# set to true if you want to skip ssl cert validation
|
||||||
|
ssl_skip_verify = false
|
||||||
|
# set to the path to your root CA certificate or leave unset to use system defaults
|
||||||
|
# root_ca_cert = "/path/to/certificate.crt"
|
||||||
|
|
||||||
|
# Search user bind dn
|
||||||
|
bind_dn = "cn=admin,dc=grafana,dc=org"
|
||||||
|
# Search user bind password
|
||||||
|
# If the password contains # or ; you have to wrap it with trippel quotes. Ex """#password;"""
|
||||||
|
bind_password = 'grafana'
|
||||||
|
|
||||||
|
# User search filter, for example "(cn=%s)" or "(sAMAccountName=%s)" or "(uid=%s)"
|
||||||
|
search_filter = "(cn=%s)"
|
||||||
|
|
||||||
|
# An array of base dns to search through
|
||||||
|
search_base_dns = ["dc=grafana,dc=org"]
|
||||||
|
|
||||||
|
# In POSIX LDAP schemas, without memberOf attribute a secondary query must be made for groups.
|
||||||
|
# This is done by enabling group_search_filter below. You must also set member_of= "cn"
|
||||||
|
# in [servers.attributes] below.
|
||||||
|
|
||||||
|
# Users with nested/recursive group membership and an LDAP server that supports LDAP_MATCHING_RULE_IN_CHAIN
|
||||||
|
# can set group_search_filter, group_search_filter_user_attribute, group_search_base_dns and member_of
|
||||||
|
# below in such a way that the user's recursive group membership is considered.
|
||||||
|
#
|
||||||
|
# Nested Groups + Active Directory (AD) Example:
|
||||||
|
#
|
||||||
|
# AD groups store the Distinguished Names (DNs) of members, so your filter must
|
||||||
|
# recursively search your groups for the authenticating user's DN. For example:
|
||||||
|
#
|
||||||
|
# group_search_filter = "(member:1.2.840.113556.1.4.1941:=%s)"
|
||||||
|
# group_search_filter_user_attribute = "distinguishedName"
|
||||||
|
# group_search_base_dns = ["ou=groups,dc=grafana,dc=org"]
|
||||||
|
#
|
||||||
|
# [servers.attributes]
|
||||||
|
# ...
|
||||||
|
# member_of = "distinguishedName"
|
||||||
|
|
||||||
|
## Group search filter, to retrieve the groups of which the user is a member (only set if memberOf attribute is not available)
|
||||||
|
# group_search_filter = "(&(objectClass=posixGroup)(memberUid=%s))"
|
||||||
|
## Group search filter user attribute defines what user attribute gets substituted for %s in group_search_filter.
|
||||||
|
## Defaults to the value of username in [server.attributes]
|
||||||
|
## Valid options are any of your values in [servers.attributes]
|
||||||
|
## If you are using nested groups you probably want to set this and member_of in
|
||||||
|
## [servers.attributes] to "distinguishedName"
|
||||||
|
# group_search_filter_user_attribute = "distinguishedName"
|
||||||
|
## An array of the base DNs to search through for groups. Typically uses ou=groups
|
||||||
|
# group_search_base_dns = ["ou=groups,dc=grafana,dc=org"]
|
||||||
|
|
||||||
|
# Specify names of the ldap attributes your ldap uses
|
||||||
|
[servers.attributes]
|
||||||
|
name = "givenName"
|
||||||
|
surname = "sn"
|
||||||
|
username = "cn"
|
||||||
|
member_of = "memberOf"
|
||||||
|
email = "email"
|
||||||
|
|
||||||
|
# Map ldap groups to grafana org roles
|
||||||
|
[[servers.group_mappings]]
|
||||||
|
group_dn = "cn=admins,dc=grafana,dc=org"
|
||||||
|
org_role = "Admin"
|
||||||
|
# The Grafana organization database id, optional, if left out the default org (id 1) will be used
|
||||||
|
# org_id = 1
|
||||||
|
|
||||||
|
[[servers.group_mappings]]
|
||||||
|
group_dn = "cn=users,dc=grafana,dc=org"
|
||||||
|
org_role = "Editor"
|
||||||
|
|
||||||
|
[[servers.group_mappings]]
|
||||||
|
# If you want to match all (or no ldap groups) then you can use wildcard
|
||||||
|
group_dn = "*"
|
||||||
|
org_role = "Viewer"
|
||||||
|
|
@ -0,0 +1,263 @@
|
||||||
|
absolute value:ABSOLUTE:0:U
|
||||||
|
apache_bytes value:DERIVE:0:U
|
||||||
|
apache_connections value:GAUGE:0:65535
|
||||||
|
apache_idle_workers value:GAUGE:0:65535
|
||||||
|
apache_requests value:DERIVE:0:U
|
||||||
|
apache_scoreboard value:GAUGE:0:65535
|
||||||
|
ath_nodes value:GAUGE:0:65535
|
||||||
|
ath_stat value:DERIVE:0:U
|
||||||
|
backends value:GAUGE:0:65535
|
||||||
|
bitrate value:GAUGE:0:4294967295
|
||||||
|
blocked_clients value:GAUGE:0:U
|
||||||
|
bytes value:GAUGE:0:U
|
||||||
|
cache_eviction value:DERIVE:0:U
|
||||||
|
cache_operation value:DERIVE:0:U
|
||||||
|
cache_ratio value:GAUGE:0:100
|
||||||
|
cache_result value:DERIVE:0:U
|
||||||
|
cache_size value:GAUGE:0:1125899906842623
|
||||||
|
capacity value:GAUGE:0:U
|
||||||
|
ceph_bytes value:GAUGE:U:U
|
||||||
|
ceph_latency value:GAUGE:U:U
|
||||||
|
ceph_rate value:DERIVE:0:U
|
||||||
|
changes_since_last_save value:GAUGE:0:U
|
||||||
|
charge value:GAUGE:0:U
|
||||||
|
clock_last_meas value:GAUGE:0:U
|
||||||
|
clock_last_update value:GAUGE:U:U
|
||||||
|
clock_mode value:GAUGE:0:U
|
||||||
|
clock_reachability value:GAUGE:0:U
|
||||||
|
clock_skew_ppm value:GAUGE:-2:2
|
||||||
|
clock_state value:GAUGE:0:U
|
||||||
|
clock_stratum value:GAUGE:0:U
|
||||||
|
compression uncompressed:DERIVE:0:U, compressed:DERIVE:0:U
|
||||||
|
compression_ratio value:GAUGE:0:2
|
||||||
|
connections value:DERIVE:0:U
|
||||||
|
conntrack value:GAUGE:0:4294967295
|
||||||
|
contextswitch value:DERIVE:0:U
|
||||||
|
count value:GAUGE:0:U
|
||||||
|
counter value:COUNTER:U:U
|
||||||
|
cpu value:DERIVE:0:U
|
||||||
|
cpufreq value:GAUGE:0:U
|
||||||
|
current value:GAUGE:U:U
|
||||||
|
current_connections value:GAUGE:0:U
|
||||||
|
current_sessions value:GAUGE:0:U
|
||||||
|
delay value:GAUGE:-1000000:1000000
|
||||||
|
derive value:DERIVE:0:U
|
||||||
|
df used:GAUGE:0:1125899906842623, free:GAUGE:0:1125899906842623
|
||||||
|
df_complex value:GAUGE:0:U
|
||||||
|
df_inodes value:GAUGE:0:U
|
||||||
|
dilution_of_precision value:GAUGE:0:U
|
||||||
|
disk_io_time io_time:DERIVE:0:U, weighted_io_time:DERIVE:0:U
|
||||||
|
disk_latency read:GAUGE:0:U, write:GAUGE:0:U
|
||||||
|
disk_merged read:DERIVE:0:U, write:DERIVE:0:U
|
||||||
|
disk_octets read:DERIVE:0:U, write:DERIVE:0:U
|
||||||
|
disk_ops read:DERIVE:0:U, write:DERIVE:0:U
|
||||||
|
disk_ops_complex value:DERIVE:0:U
|
||||||
|
disk_time read:DERIVE:0:U, write:DERIVE:0:U
|
||||||
|
dns_answer value:DERIVE:0:U
|
||||||
|
dns_notify value:DERIVE:0:U
|
||||||
|
dns_octets queries:DERIVE:0:U, responses:DERIVE:0:U
|
||||||
|
dns_opcode value:DERIVE:0:U
|
||||||
|
dns_qtype value:DERIVE:0:U
|
||||||
|
dns_qtype_cached value:GAUGE:0:4294967295
|
||||||
|
dns_query value:DERIVE:0:U
|
||||||
|
dns_question value:DERIVE:0:U
|
||||||
|
dns_rcode value:DERIVE:0:U
|
||||||
|
dns_reject value:DERIVE:0:U
|
||||||
|
dns_request value:DERIVE:0:U
|
||||||
|
dns_resolver value:DERIVE:0:U
|
||||||
|
dns_response value:DERIVE:0:U
|
||||||
|
dns_transfer value:DERIVE:0:U
|
||||||
|
dns_update value:DERIVE:0:U
|
||||||
|
dns_zops value:DERIVE:0:U
|
||||||
|
drbd_resource value:DERIVE:0:U
|
||||||
|
duration seconds:GAUGE:0:U
|
||||||
|
email_check value:GAUGE:0:U
|
||||||
|
email_count value:GAUGE:0:U
|
||||||
|
email_size value:GAUGE:0:U
|
||||||
|
entropy value:GAUGE:0:4294967295
|
||||||
|
evicted_keys value:DERIVE:0:U
|
||||||
|
expired_keys value:DERIVE:0:U
|
||||||
|
fanspeed value:GAUGE:0:U
|
||||||
|
file_handles value:GAUGE:0:U
|
||||||
|
file_size value:GAUGE:0:U
|
||||||
|
files value:GAUGE:0:U
|
||||||
|
flow value:GAUGE:0:U
|
||||||
|
fork_rate value:DERIVE:0:U
|
||||||
|
frequency value:GAUGE:0:U
|
||||||
|
frequency_error value:GAUGE:-2:2
|
||||||
|
frequency_offset value:GAUGE:-1000000:1000000
|
||||||
|
fscache_stat value:DERIVE:0:U
|
||||||
|
gauge value:GAUGE:U:U
|
||||||
|
hash_collisions value:DERIVE:0:U
|
||||||
|
http_request_methods value:DERIVE:0:U
|
||||||
|
http_requests value:DERIVE:0:U
|
||||||
|
http_response_codes value:DERIVE:0:U
|
||||||
|
humidity value:GAUGE:0:100
|
||||||
|
if_collisions value:DERIVE:0:U
|
||||||
|
if_dropped rx:DERIVE:0:U, tx:DERIVE:0:U
|
||||||
|
if_errors rx:DERIVE:0:U, tx:DERIVE:0:U
|
||||||
|
if_multicast value:DERIVE:0:U
|
||||||
|
if_octets rx:DERIVE:0:U, tx:DERIVE:0:U
|
||||||
|
if_packets rx:DERIVE:0:U, tx:DERIVE:0:U
|
||||||
|
if_rx_errors value:DERIVE:0:U
|
||||||
|
if_rx_octets value:DERIVE:0:U
|
||||||
|
if_tx_errors value:DERIVE:0:U
|
||||||
|
if_tx_octets value:DERIVE:0:U
|
||||||
|
invocations value:DERIVE:0:U
|
||||||
|
io_octets rx:DERIVE:0:U, tx:DERIVE:0:U
|
||||||
|
io_packets rx:DERIVE:0:U, tx:DERIVE:0:U
|
||||||
|
ipt_bytes value:DERIVE:0:U
|
||||||
|
ipt_packets value:DERIVE:0:U
|
||||||
|
irq value:DERIVE:0:U
|
||||||
|
latency value:GAUGE:0:U
|
||||||
|
links value:GAUGE:0:U
|
||||||
|
load shortterm:GAUGE:0:5000, midterm:GAUGE:0:5000, longterm:GAUGE:0:5000
|
||||||
|
md_disks value:GAUGE:0:U
|
||||||
|
memcached_command value:DERIVE:0:U
|
||||||
|
memcached_connections value:GAUGE:0:U
|
||||||
|
memcached_items value:GAUGE:0:U
|
||||||
|
memcached_octets rx:DERIVE:0:U, tx:DERIVE:0:U
|
||||||
|
memcached_ops value:DERIVE:0:U
|
||||||
|
memory value:GAUGE:0:281474976710656
|
||||||
|
memory_lua value:GAUGE:0:281474976710656
|
||||||
|
memory_throttle_count value:DERIVE:0:U
|
||||||
|
multimeter value:GAUGE:U:U
|
||||||
|
mutex_operations value:DERIVE:0:U
|
||||||
|
mysql_bpool_bytes value:GAUGE:0:U
|
||||||
|
mysql_bpool_counters value:DERIVE:0:U
|
||||||
|
mysql_bpool_pages value:GAUGE:0:U
|
||||||
|
mysql_commands value:DERIVE:0:U
|
||||||
|
mysql_handler value:DERIVE:0:U
|
||||||
|
mysql_innodb_data value:DERIVE:0:U
|
||||||
|
mysql_innodb_dblwr value:DERIVE:0:U
|
||||||
|
mysql_innodb_log value:DERIVE:0:U
|
||||||
|
mysql_innodb_pages value:DERIVE:0:U
|
||||||
|
mysql_innodb_row_lock value:DERIVE:0:U
|
||||||
|
mysql_innodb_rows value:DERIVE:0:U
|
||||||
|
mysql_locks value:DERIVE:0:U
|
||||||
|
mysql_log_position value:DERIVE:0:U
|
||||||
|
mysql_octets rx:DERIVE:0:U, tx:DERIVE:0:U
|
||||||
|
mysql_select value:DERIVE:0:U
|
||||||
|
mysql_sort value:DERIVE:0:U
|
||||||
|
mysql_sort_merge_passes value:DERIVE:0:U
|
||||||
|
mysql_sort_rows value:DERIVE:0:U
|
||||||
|
mysql_slow_queries value:DERIVE:0:U
|
||||||
|
nfs_procedure value:DERIVE:0:U
|
||||||
|
nginx_connections value:GAUGE:0:U
|
||||||
|
nginx_requests value:DERIVE:0:U
|
||||||
|
node_octets rx:DERIVE:0:U, tx:DERIVE:0:U
|
||||||
|
node_rssi value:GAUGE:0:255
|
||||||
|
node_stat value:DERIVE:0:U
|
||||||
|
node_tx_rate value:GAUGE:0:127
|
||||||
|
objects value:GAUGE:0:U
|
||||||
|
operations value:DERIVE:0:U
|
||||||
|
operations_per_second value:GAUGE:0:U
|
||||||
|
packets value:DERIVE:0:U
|
||||||
|
pending_operations value:GAUGE:0:U
|
||||||
|
percent value:GAUGE:0:100.1
|
||||||
|
percent_bytes value:GAUGE:0:100.1
|
||||||
|
percent_inodes value:GAUGE:0:100.1
|
||||||
|
pf_counters value:DERIVE:0:U
|
||||||
|
pf_limits value:DERIVE:0:U
|
||||||
|
pf_source value:DERIVE:0:U
|
||||||
|
pf_state value:DERIVE:0:U
|
||||||
|
pf_states value:GAUGE:0:U
|
||||||
|
pg_blks value:DERIVE:0:U
|
||||||
|
pg_db_size value:GAUGE:0:U
|
||||||
|
pg_n_tup_c value:DERIVE:0:U
|
||||||
|
pg_n_tup_g value:GAUGE:0:U
|
||||||
|
pg_numbackends value:GAUGE:0:U
|
||||||
|
pg_scan value:DERIVE:0:U
|
||||||
|
pg_xact value:DERIVE:0:U
|
||||||
|
ping value:GAUGE:0:65535
|
||||||
|
ping_droprate value:GAUGE:0:100
|
||||||
|
ping_stddev value:GAUGE:0:65535
|
||||||
|
players value:GAUGE:0:1000000
|
||||||
|
power value:GAUGE:U:U
|
||||||
|
pressure value:GAUGE:0:U
|
||||||
|
protocol_counter value:DERIVE:0:U
|
||||||
|
ps_code value:GAUGE:0:9223372036854775807
|
||||||
|
ps_count processes:GAUGE:0:1000000, threads:GAUGE:0:1000000
|
||||||
|
ps_cputime user:DERIVE:0:U, syst:DERIVE:0:U
|
||||||
|
ps_data value:GAUGE:0:9223372036854775807
|
||||||
|
ps_disk_octets read:DERIVE:0:U, write:DERIVE:0:U
|
||||||
|
ps_disk_ops read:DERIVE:0:U, write:DERIVE:0:U
|
||||||
|
ps_pagefaults minflt:DERIVE:0:U, majflt:DERIVE:0:U
|
||||||
|
ps_rss value:GAUGE:0:9223372036854775807
|
||||||
|
ps_stacksize value:GAUGE:0:9223372036854775807
|
||||||
|
ps_state value:GAUGE:0:65535
|
||||||
|
ps_vm value:GAUGE:0:9223372036854775807
|
||||||
|
pubsub value:GAUGE:0:U
|
||||||
|
queue_length value:GAUGE:0:U
|
||||||
|
records value:GAUGE:0:U
|
||||||
|
requests value:GAUGE:0:U
|
||||||
|
response_code value:GAUGE:0:U
|
||||||
|
response_time value:GAUGE:0:U
|
||||||
|
root_delay value:GAUGE:U:U
|
||||||
|
root_dispersion value:GAUGE:U:U
|
||||||
|
route_etx value:GAUGE:0:U
|
||||||
|
route_metric value:GAUGE:0:U
|
||||||
|
routes value:GAUGE:0:U
|
||||||
|
satellites value:GAUGE:0:U
|
||||||
|
segments value:GAUGE:0:65535
|
||||||
|
serial_octets rx:DERIVE:0:U, tx:DERIVE:0:U
|
||||||
|
signal_noise value:GAUGE:U:0
|
||||||
|
signal_power value:GAUGE:U:0
|
||||||
|
signal_quality value:GAUGE:0:U
|
||||||
|
smart_attribute current:GAUGE:0:255, worst:GAUGE:0:255, threshold:GAUGE:0:255, pretty:GAUGE:0:U
|
||||||
|
smart_badsectors value:GAUGE:0:U
|
||||||
|
smart_powercycles value:GAUGE:0:U
|
||||||
|
smart_poweron value:GAUGE:0:U
|
||||||
|
smart_temperature value:GAUGE:-300:300
|
||||||
|
snr value:GAUGE:0:U
|
||||||
|
spam_check value:GAUGE:0:U
|
||||||
|
spam_score value:GAUGE:U:U
|
||||||
|
spl value:GAUGE:U:U
|
||||||
|
swap value:GAUGE:0:1099511627776
|
||||||
|
swap_io value:DERIVE:0:U
|
||||||
|
tcp_connections value:GAUGE:0:4294967295
|
||||||
|
temperature value:GAUGE:U:U
|
||||||
|
threads value:GAUGE:0:U
|
||||||
|
time_dispersion value:GAUGE:-1000000:1000000
|
||||||
|
time_offset value:GAUGE:-1000000:1000000
|
||||||
|
time_offset_ntp value:GAUGE:-1000000:1000000
|
||||||
|
time_offset_rms value:GAUGE:-1000000:1000000
|
||||||
|
time_ref value:GAUGE:0:U
|
||||||
|
timeleft value:GAUGE:0:U
|
||||||
|
total_bytes value:DERIVE:0:U
|
||||||
|
total_connections value:DERIVE:0:U
|
||||||
|
total_objects value:DERIVE:0:U
|
||||||
|
total_operations value:DERIVE:0:U
|
||||||
|
total_requests value:DERIVE:0:U
|
||||||
|
total_sessions value:DERIVE:0:U
|
||||||
|
total_threads value:DERIVE:0:U
|
||||||
|
total_time_in_ms value:DERIVE:0:U
|
||||||
|
total_values value:DERIVE:0:U
|
||||||
|
uptime value:GAUGE:0:4294967295
|
||||||
|
users value:GAUGE:0:65535
|
||||||
|
vcl value:GAUGE:0:65535
|
||||||
|
vcpu value:GAUGE:0:U
|
||||||
|
virt_cpu_total value:DERIVE:0:U
|
||||||
|
virt_vcpu value:DERIVE:0:U
|
||||||
|
vmpage_action value:DERIVE:0:U
|
||||||
|
vmpage_faults minflt:DERIVE:0:U, majflt:DERIVE:0:U
|
||||||
|
vmpage_io in:DERIVE:0:U, out:DERIVE:0:U
|
||||||
|
vmpage_number value:GAUGE:0:4294967295
|
||||||
|
volatile_changes value:GAUGE:0:U
|
||||||
|
voltage value:GAUGE:U:U
|
||||||
|
voltage_threshold value:GAUGE:U:U, threshold:GAUGE:U:U
|
||||||
|
vs_memory value:GAUGE:0:9223372036854775807
|
||||||
|
vs_processes value:GAUGE:0:65535
|
||||||
|
vs_threads value:GAUGE:0:65535
|
||||||
|
|
||||||
|
#
|
||||||
|
# Legacy types
|
||||||
|
# (required for the v5 upgrade target)
|
||||||
|
#
|
||||||
|
arc_counts demand_data:COUNTER:0:U, demand_metadata:COUNTER:0:U, prefetch_data:COUNTER:0:U, prefetch_metadata:COUNTER:0:U
|
||||||
|
arc_l2_bytes read:COUNTER:0:U, write:COUNTER:0:U
|
||||||
|
arc_l2_size value:GAUGE:0:U
|
||||||
|
arc_ratio value:GAUGE:0:U
|
||||||
|
arc_size current:GAUGE:0:U, target:GAUGE:0:U, minlimit:GAUGE:0:U, maxlimit:GAUGE:0:U
|
||||||
|
mysql_qcache hits:COUNTER:0:U, inserts:COUNTER:0:U, not_cached:COUNTER:0:U, lowmem_prunes:COUNTER:0:U, queries_in_cache:GAUGE:0:U
|
||||||
|
mysql_threads running:GAUGE:0:U, connected:GAUGE:0:U, cached:GAUGE:0:U, created:COUNTER:0:U
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: influxdb:1.3-alpine
|
||||||
|
volumes:
|
||||||
|
- ./data/influx/db:/var/lib/influxdb
|
||||||
|
- ./conf/influx/collectd:/usr/share/collectd/:ro
|
||||||
|
ports:
|
||||||
|
- "8086:8086"
|
||||||
|
- "25826:25826/udp"
|
||||||
|
- "2003:2003"
|
||||||
|
env_file: variables.env
|
||||||
|
graph:
|
||||||
|
image: grafana/grafana
|
||||||
|
volumes:
|
||||||
|
- ./data/grafana/lib/:/var/lib/grafana
|
||||||
|
- ./data/grafana/log/:/var/log/grafana
|
||||||
|
- ./conf/grafana/:/etc/grafana
|
||||||
|
ports:
|
||||||
|
- 3000:3000
|
||||||
|
env_file: variables.env
|
||||||
|
collectd:
|
||||||
|
build: collectd
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- ./conf/collectd/:/etc/collectd/
|
||||||
|
# - /proc/:/mnt/proc/:ro
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
INFLUXDB_REPORTING_DISABLED=true
|
||||||
|
|
||||||
|
INFLUXDB_COLLECTD_ENABLED=true
|
||||||
|
INFLUXDB_COLLECTD_DATABASE=collectd
|
||||||
|
INFLUXDB_COLLECTD_BIND_ADDRESS = ":25826"
|
||||||
|
|
||||||
|
INFLUXDB_GRAPHITE_0_ENABLED=true
|
||||||
|
INFLUXDB_GRAPHITE_0_DATABASE="graphite"
|
||||||
|
|
||||||
|
|
||||||
|
GF_SECURITY_ADMIN_USER=root
|
||||||
|
GF_SECURITY_ADMIN_PASSWORD=toor
|
||||||
Loading…
Reference in New Issue