-
Notifications
You must be signed in to change notification settings - Fork 23
[Web service] program health report
HouzuoGuo edited this page Dec 18, 2023
·
4 revisions
Hosted by laitos web server, the comprehensive report shows:
- System status:
- Clock time, uptime.
- System load, disk, and memory usage.
- Program status:
- Public IP address, uptime.
- Program environment, working directory.
- Daemon requests statistics.
- Latest log entries and stack traces.
Under JSON key HTTPHandlers
, write a string property called InformationEndpoint
, value being the URL location that
will serve the report. Keep the location a secret to yourself and make it difficult to guess.
Here is an example setup:
{ ... "HTTPHandlers": { ... "InformationEndpoint": "/very-secret-program-health-report", ... }, ... }
The report is hosted by web server, therefore remember to run web server.
In a web browser, navigate to InformationEndpoint
of laitos web server, and inspect the program health report in plain text.
Using a programmable HTTP client (e.g. curl), use the Accept: application/json
to retrieve JSON-formatted response.
- Make the endpoint difficult to guess, this helps to prevent misuse of the service.
- laitos only keeps a small number of recent log entries in memory for inspection. Seek host OS's help to view more historical log entries.
- Some log messages are automatically discarded due to throttling, see also High request per second and logging
Table of Contents
- Home
- Get started
- Component list
- Tips for running on public cloud
- Tips for using apps over satellite
- laitos terminal
Daemon Components
- DNS server
- Mail server
- Web server
- Web proxy server
- Telnet server
- Telegram chat-bot
- Simple IP services server
- SNMP server
- System maintenance
- Phone home telemetry
Web Service Components
- Twilio telephone/SMS hook
- Microsoft chat bot hook
- The Things Network LORA tracker integration
- Recurring commands
- App command form
- Simple app command execution API
- GitLab browser
- Temporary file storage
- Simple web proxy
- Desktop on a page (virtual machine)
- Read telemetry records
- Program health report
- System process explorer
- Prometheus metrics exporter
- HTTP request inspector
- HTTP request logger
Apps