Automattic / Automattic/jetmon

Extract `PEER_OFFLINE_LIMIT` into `config.json`

Open
#18 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
17
Forks
4
PR merge metrics
No merged PRs in 30d

Description

[`PEER_OFFLINE_LIMIT`](https://github.com/Automattic/jetmon/blob/master/lib/jetmon.js#L26) in `jetmon.js` determines how many peers have to confirm that the site is down before a notification email is sent.
By default it's 3, however on our local envs we only run a single veriflier service, therefore we need to set this to `1` to actually send the monitoring data to WPCOM.

We need to:
- extract this setting into `config.json`
- add this information into `README.md`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at lib/jetmon.js line 26 to trace how PEER_OFFLINE_LIMIT is read and used, then inspect the existing config.json structure. Move the setting into config.json with the required default and document it in README.md; done means the configured value controls notifications and the README explains the option.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation, observability-sre
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.