You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.md
+14-3Lines changed: 14 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,8 @@ The following are common parameters which it is possible to specify in the confi
7
7
| Parameter | Description | Expected format | Example | Required |
8
8
|---|---|---|---|---|
9
9
|environment| You can specify various environments. The values "production" (not verbose) and "development" (verbose) will affect the verbosity of the error/debug logs. Other values don't affect the functionalities, they will be used to identify from which environment the log is coming from. | A string | production | Yes |
10
-
|notificationIntervalSeconds| The amount of seconds before the same alert can be repeated. An alert is repeated only if the cause of it has not being solved. | An integer | 1800 | Yes |
11
-
|clearNotificationQueueAfterSeconds| If the cause of an alert is resolved, then stop waiting for more information about the issue. | An integer (greater than notificationIntervalSeconds) | 1900 | Yes |
12
-
|checkStaleNotificationsSeconds| The amount of seconds between a check on stale alerts. A stale alert happens when the cause of an alert is resolved before the next notification round, in such a case send it anyway. | An integer | 60 | Yes |
10
+
|notificationIntervalSeconds|Defines the amount of seconds after which an alert can be repeated. An alert is repeated only if the event that triggered it is not yet solved. Please, don't set this value to Infinity, use instead alertOnlyOnce. | An integer | 1800 | Yes |
11
+
|alertOnlyOnce| A boolean that, if set to true, will prevent repetitions of the same alert even if the event that triggered it is not yet solved. In this case notificationIntervalSeconds will be ignored. If set to true, the signature of all alerts will be cached in order to recognize if they already happened in the past. This may lead to a memory leak if the amount of alerts is considerable. | A boolean | false | No |
13
12
|monitoredPrefixesFiles| The [list](docs/prefixes.md#array) of files containing the prefixes to monitor. See [here](docs/prefixes.md#prefixes) for more informations. | A list of strings (valid .yml files) | -prefixes.yml | Yes |
14
13
|logging| A dictionary of parameters containing the configuration for the file logging. ||| Yes|
15
14
|logging.directory| The directory where the log files will be generated. The directory will be created if not existent. | A string | logs | Yes |
@@ -159,6 +158,7 @@ Parameters for this report module:
159
158
160
159
|Parameter| Description|
161
160
|---|---|
161
+
|showPaths| Amount of AS_PATHs to report in the alert (0 to disable). |
162
162
|senderEmail| The email address that will be used as sender for the alerts. |
163
163
|smtp| A dictionary containing the SMTP configuration. Some parameters are described in `config.yml.example`. For all the options refer to the [nodemailer documentation](https://nodemailer.com/smtp/). |
164
164
|notifiedEmails| A dictionary containing email addresses grouped by user groups. (key: group, value: list of emails)|
@@ -179,3 +179,14 @@ Parameters for this report module:
179
179
|hooks.default| The default user group. Each user group is a WebHook (url). |
180
180
181
181
182
+
#### reportKafka
183
+
184
+
This report sends the alerts (including the BGP messages triggering them) to Kafka. By default it creates a topic `bgpalerter`.
185
+
186
+
Parameters for this report module:
187
+
188
+
|Parameter| Description|
189
+
|---|---|
190
+
|host| Host and port of the Kafka instance/broker (e.g. localhost:9092).|
191
+
|topics| A dictionary containing a mapping from BGPalerter channels to Kafka topics (e.g. `hijack: hijack-topic`). By default all channels are sent to the topic `bgpalerter` (`default: bgpalerter`) |
Copy file name to clipboardExpand all lines: docs/prefixes.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,12 @@ Below the list of possible parameters. **Remember to prepend them with a `--` in
14
14
15
15
| Parameter | Description | Expected format | Example | Required |
16
16
|---|---|---|---|---|
17
-
| -a| The AS number(s) you want to generate the list for | A comma-separated list of integers | 2914,3333 | Yes |
18
-
| -o | The YAML output file | A string ending in ".yml" | prefixes.yml | Yes
17
+
| -o| The YAML output file | A string ending in ".yml" | prefixes.yml| Yes |
18
+
| -a| The AS number(s) you want to generate the list for | A comma-separated list of integers | 2914,3333 | No (one among -a, -p, -pf is required) |
19
19
| -e | Prefixes to exclude from the list | A comma-separated list of prefixes | 165.254.255.0/24,192.147.168.0/24 | No |
20
20
| -i | Avoid monitoring delegated prefixes. If a more specific prefix is found and it results announced by an AS different from the one declared in -a, then set `ignore: true` and `ignoreMorespecifics: true` | Nothing | | No
21
+
| -p | Prefixes for which the list will be generated | A comma-separated list of prefixes | 165.254.255.0/24,192.147.168.0/24 | No (one among -a, -p, -pf is required) |
22
+
| -pf | A file containing the prefixes for which the list will be generated | A text file having a prefix for each line | prefixes.txt | No (one among -a, -p, -pf is required) |
21
23
22
24
23
25
## <aname="prefixes-fields"></a>Prefixes list fields
console.log("WARNING: The generated configuration is a snapshot of what is currently announced by "+asns+" but some of the prefixes don't have ROA objects associated. Please, verify the config file by hand!");
192
+
console.log("WARNING: The generated configuration is a snapshot of what is currently announced. Some of the prefixes don't have ROA objects associated or are RPKI invalid. Please, verify the config file by hand!");
0 commit comments