Skip to content

Commit eca7872

Browse files
yhabteabjulianbrost
authored andcommittedJul 22, 2024·
Document api-timeout & config options in config.example.yml
1 parent 5492d74 commit eca7872

File tree

2 files changed

+47
-11
lines changed

2 files changed

+47
-11
lines changed
 

‎config.example.yml

+41-11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# The address of the Icinga Notifications HTTP listener to be bound to.
2+
# This can be configured in many different ways, as listed below.
13
#listen: "localhost:5680" # default
24
#listen: ":5680" # any interface
35
#listen: "192.0.2.1:5680"
@@ -6,20 +8,46 @@
68
# Set credentials for some debug endpoints provided via HTTP. If not set, these are disabled.
79
#debug-password: "put-something-secret-here"
810

11+
# The base Icinga Web 2 URL being used as the base URL for all object, notification and event URLs.
912
icingaweb2-url: http://localhost/icingaweb2/
13+
14+
# Directory containing all executable Icinga Notifications channel plugins.
15+
# By default, all of Icinga Notifications built-in channel plugins are installed in the directory below.
1016
#channels-dir: /usr/libexec/icinga-notifications/channels
11-
api-timeout: 1m
1217

18+
# The Icinga 2 API request timeout defined as a duration string.
19+
# Note, this timeout does not apply to the Icinga 2 event streams, but to those other API endpoints like /v1/objects
20+
# used to occasionally retrieve some additional information of a Checkable.
21+
# A duration string is a sequence of decimal numbers and a unit suffix, such as "20s".
22+
# Valid units are "ms", "s", "m", "h".
23+
#api-timeout: 1m
24+
25+
# Connection configuration for the database where Icinga Notifications stores configuration and historical data.
26+
# This is also the database used in Icinga Notifications Web to view and work with the data.
1327
database:
14-
type: pgsql
15-
host: /run/postgresql
16-
#host: localhost
17-
#port: 5432
18-
user: notifications
28+
# Database type. Either 'mysql' for MySQL or 'pgsql' for PostgreSQL.
29+
# Defaults to 'mysql'.
30+
# type: mysql
31+
32+
# Database host or absolute Unix socket path.
33+
host: localhost
34+
35+
# Database port. By default, the MySQL or PostgreSQL port, depending on the database type.
36+
# port:
37+
38+
# Database name.
1939
database: notifications
20-
#password: notifications
2140

22-
logging:
41+
# Database user.
42+
user: notifications
43+
44+
# Database password.
45+
password: CHANGEME
46+
47+
# Icinga Notifications logs its activities at various severity levels and any errors that occur either
48+
# on the console or in systemd's journal. The latter is used automatically when running under systemd.
49+
# In any case, the default log level is 'info'.
50+
# logging:
2351
# Default logging level. Can be set to 'fatal', 'error', 'warn', 'info' or 'debug'.
2452
# If not set, defaults to 'info'.
2553
#level: info
@@ -35,8 +63,10 @@ logging:
3563
#interval: 20s
3664

3765
# Map of component-logging level pairs to define a different log level than the default value for each component.
38-
options:
66+
# options:
67+
#channel:
3968
#database:
40-
runtime-updates: info
41-
#listener:
69+
#icinga2:
4270
#incident:
71+
#listener:
72+
#runtime-updates:

‎doc/03-Configuration.md

+6
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ For a package installation, the default will point to the correct location and m
3333
This directory should be `/usr/libexec/icinga-notifications/channels` on systems that follow the Filesystem Hierarchy Standard.
3434
It may also be `/usr/lib/icinga-notifications/channels`, depending on the operating system conventions.
3535

36+
### API Timeout
37+
38+
The `api-timeout` specifies the Icinga 2 API request timeout defined as a [duration string](#duration-string).
39+
Note, this timeout does not apply to the Icinga 2 event streams, but to those API endpoints
40+
like `/v1/objects`, `/v1/status` used to occasionally retrieve some additional information of a Checkable.
41+
3642
## Database Configuration
3743

3844
Connection configuration for the database where Icinga Notifications stores configuration and historical data.

0 commit comments

Comments
 (0)
Please sign in to comment.