1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00

updated uptime monitor example

This commit is contained in:
Massimo Candela
2019-12-13 15:27:47 +01:00
committed by GitHub
parent b184f8468f
commit 8ce8a8a8f1

View File

@@ -161,27 +161,6 @@ logging:
checkForUpdatesAtBoot: true
############################
# Uptime monitor settings:
# The uptime monitor enables an API (http://localhost:8011/status) which shows the current status of BGPalerter
# If any component reports an invalid state, the "warning" field will be set to true and the HTTP status code will be 500.
#
# - active - A boolean that if set to true enables the monitor. When set to false none of the monitoring components
# and dependencies are loaded (and no port has to be open).
# - useStatusCodes - A boolean that if set to true enables HTTP status codes in the response. Nothing changes in the
# JSON output provided by the API.
# - port - The port on which the API will be reachable.
uptimeMonitor:
active: false
useStatusCodes: true
port: 8011
############################
pidFile: bgpalerter.pid
#uptimeMonitors:
# - file: uptimeApi
# params:
@@ -194,3 +173,5 @@ pidFile: bgpalerter.pid
# url: url_to_poll
# intervalSeconds: 300
# method: get
pidFile: bgpalerter.pid