Go to documentation repository
Page History
...
The self-diagnostics service implements rules that allow you to monitor various system statuses. You can see a full list of rules available for a particular server in the web interface of the self-diagnostics service in the Status → Rule section: http://127.0.0.1:20040/rules, where:
- alert is a rule name;
- expr is a rule triggering condition;
- actions are actions of the rule;
- summary is a rule description.
Info | ||
---|---|---|
| ||
There are rules that generate alarms, but don't perform any actions. Such rules are labeled disabled: true. |
Examples of rules:
alert | expr | actions | summary | |||||||
---|---|---|---|---|---|---|---|---|---|---|
Low disk free space (logs) | If free space on the system disk is less than 20 GB, all server logs, including archived logs, are deleted to free up space:
| ACTION_CLEANUP_LOGS | Clean up of the logs directory when there is insufficient space on the system disk | |||||||
Low disk free space (database) | If free disk space for the database is less than 15 GB, all events older than one week are deleted:
| ACTION_CLEANUP_DB | Clean up of Postgres database when there is insufficient space on the disk. If free disk space for the database is less than:
| |||||||
archive_no_samples | Rule checks if new frames go to the archive. If new frames don't go to the archive within five minutes, the archive process is restarted:
| ACTION_RESTART_NGP_UNIT | Restart of the archive service if new frames don't go to the archive | |||||||
detector_no_sample | Rule checks if frames go to the detector. If new frames don't go to the detector, the detector service is restarted:
| ACTION_RESTART_NGP_UNIT | Restart of the detector service if the active detector doesn't receive new frames | |||||||
statistics_server_unhealthy | If the statistics server doesn't update the item counter or becomes unavailable, the statistics services are automatically restarted:
| ACTION_RESTART_NGP_UNIT | Restart of the statistics service if there are no statistics events |