Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document api-timeout & config options in config.example.yml #248

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 41 additions & 11 deletions config.example.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# The address of the Icinga Notifications HTTP listener to be bound to.
# This can be configured in many different ways, as listed below.
#listen: "localhost:5680" # default
#listen: ":5680" # any interface
#listen: "192.0.2.1:5680"
Expand All @@ -6,20 +8,46 @@
# Set credentials for some debug endpoints provided via HTTP. If not set, these are disabled.
#debug-password: "put-something-secret-here"

# The base Icinga Web 2 URL being used as the base URL for all object, notification and event URLs.
icingaweb2-url: http://localhost/icingaweb2/

# Directory containing all executable Icinga Notifications channel plugins.
# By default, all of Icinga Notifications built-in channel plugins are installed in the directory below.
#channels-dir: /usr/libexec/icinga-notifications/channels
api-timeout: 1m

# The Icinga 2 API request timeout defined as a duration string.
# Note, this timeout does not apply to the Icinga 2 event streams, but to those other API endpoints like /v1/objects
# used to occasionally retrieve some additional information of a Checkable.
# A duration string is a sequence of decimal numbers and a unit suffix, such as "20s".
# Valid units are "ms", "s", "m", "h".
#api-timeout: 1m

# Connection configuration for the database where Icinga Notifications stores configuration and historical data.
# This is also the database used in Icinga Notifications Web to view and work with the data.
database:
type: pgsql
host: /run/postgresql
#host: localhost
#port: 5432
user: notifications
# Database type. Either 'mysql' for MySQL or 'pgsql' for PostgreSQL.
# Defaults to 'mysql'.
# type: mysql

# Database host or absolute Unix socket path.
host: localhost

# Database port. By default, the MySQL or PostgreSQL port, depending on the database type.
# port:

# Database name.
database: notifications
#password: notifications

logging:
# Database user.
user: notifications

# Database password.
password: CHANGEME

# Icinga Notifications logs its activities at various severity levels and any errors that occur either
# on the console or in systemd's journal. The latter is used automatically when running under systemd.
# In any case, the default log level is 'info'.
# logging:
# Default logging level. Can be set to 'fatal', 'error', 'warn', 'info' or 'debug'.
# If not set, defaults to 'info'.
#level: info
Expand All @@ -35,8 +63,10 @@ logging:
#interval: 20s

# Map of component-logging level pairs to define a different log level than the default value for each component.
options:
# options:
#channel:
#database:
runtime-updates: info
#listener:
#icinga2:
#incident:
#listener:
#runtime-updates:
6 changes: 6 additions & 0 deletions doc/03-Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ For a package installation, the default will point to the correct location and m
This directory should be `/usr/libexec/icinga-notifications/channels` on systems that follow the Filesystem Hierarchy Standard.
It may also be `/usr/lib/icinga-notifications/channels`, depending on the operating system conventions.

### API Timeout

The `api-timeout` specifies the Icinga 2 API request timeout defined as a [duration string](#duration-string).
Note, this timeout does not apply to the Icinga 2 event streams, but to those API endpoints
like `/v1/objects`, `/v1/status` used to occasionally retrieve some additional information of a Checkable.

## Database Configuration

Connection configuration for the database where Icinga Notifications stores configuration and historical data.
Expand Down
Loading