Skip to content

Commit

Permalink
Document logging configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
raviks789 authored and lippserd committed Sep 28, 2021
1 parent 2e4e45a commit 9a8d605
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
20 changes: 20 additions & 0 deletions config.yml.example
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
# This is the configuration file for Icinga DB.

database:
host: icingadb
port: 3306
database: icingadb
user: icingadb
password: icingadb

redis:
address: redis:6380

logging:
# Default logging level. Can be set to 'fatal', 'error', 'warning', 'info' or 'debug'.
# If not set, defaults to 'info'.
level:

# Map of component-logging level pairs to define a different log level than the default value for each component.
options:
database:
redis:
heartbeat:
high-availability:
config-sync:
history-sync:
runtime-updates:
overdue-sync:
dump-signals:
23 changes: 23 additions & 0 deletions doc/03-Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,29 @@ database | **Required.** Database database.
user | **Required.** Database username.
password | **Required.** Database password.

## Logging Configuration <a id="configuration-logging"></a>

Configuration of the logging component used by Icinga DB.

Option | Description
-------------------------|-----------------------------------------------
level | **Optional.** Specifies the default logging level. Can be set to `fatal`, `error`, `warning`, `info` or `debug`. Defaults to `info`.
options | **Optional.** Map of component name to logging level in order to set a different logging level for each component instead of the default one. See [logging components](#logging-components) for details.

### Logging Components <a id="logging-components"></a>

Component | Description
-------------------------|-----------------------------------------------
database | Database connection status and queries.
redis | Redis connection status and queries.
heartbeat | Icinga heartbeats received through Redis.
high-availability | Manages responsibility of Icinga DB instances.
config-sync | Config object synchronization between Redis and MySQL.
history-sync | Synchronization of history entries from Redis to MySQL.
runtime-updates | Runtime updates of config objects after the initial config synchronization.
overdue-sync | Calculation and synchronization of the overdue status of checkables.
dump-signals | Dump signals received from Icinga.

## Example Configuration <a id="configuration-example"></a>

```yaml
Expand Down

0 comments on commit 9a8d605

Please sign in to comment.