icingadb/config.example.yml
Julian Brost f08c67cc1f Rename config.yml.example to config.example.yml
This makes more tools recognize this as a YAML file and enable syntax
highlighting for example.
2022-06-13 13:50:59 +02:00

64 lines
2.1 KiB
YAML

# This is the configuration file for Icinga DB.
database:
type: mysql
host: localhost
port: 3306
database: icingadb
user: icingadb
password: icingadb
# Connection configuration for the Redis where Icinga writes its configuration, state and history.
# This is the same connection as configured in the 'icingadb' feature of the corresponding Icinga node.
# High availability setups require a dedicated Redis server per Icinga node and
# therefore a dedicated Icinga DB instance that connects to it.
redis:
# Redis host or absolute Unix socket path.
host: localhost
# Redis port. The Redis server provided by the icingadb-redis package listens on port '6380'.
# If not specified, the standard Redis port '6379' is used instead.
port: 6380
logging:
# Default logging level. Can be set to 'fatal', 'error', 'warn', 'info' or 'debug'.
# If not set, defaults to 'info'.
# level: info
# Logging output. Can be set to 'console' (stderr) or 'systemd-journald'.
# If not set, logs to systemd-journald when running under systemd, otherwise stderr.
# output:
# Interval for periodic logging defined as duration string.
# A duration string is a sequence of decimal numbers and a unit suffix, such as "20s".
# Valid units are "ms", "s", "m", "h".
# Defaults to "20s".
# interval: 20s
# Map of component-logging level pairs to define a different log level than the default value for each component.
options:
# config-sync:
# database:
# dump-signals:
# heartbeat:
# high-availability:
# history-sync:
# overdue-sync:
# redis:
# retention:
# runtime-updates:
retention:
# Number of days to retain full historical data. By default, historical data is retained forever.
# history-days:
# Number of days to retain historical data for SLA reporting. By default, it is retained forever.
# sla-days:
# Map of history category to number of days to retain its data in order to
# enable retention only for specific categories or to override the number that has been configured in days.
options:
# acknowledgement:
# comment:
# downtime:
# flapping:
# notification:
# state: