https://github.com/webarchitect609/monitor
Super-lightweight monitoring via HTTP-request.
https://github.com/webarchitect609/monitor
Last synced: about 1 year ago
JSON representation
Super-lightweight monitoring via HTTP-request.
- Host: GitHub
- URL: https://github.com/webarchitect609/monitor
- Owner: webarchitect609
- Created: 2020-04-24T14:24:26.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-22T12:20:02.000Z (almost 2 years ago)
- Last Synced: 2024-10-31T09:08:36.831Z (over 1 year ago)
- Language: PHP
- Size: 19.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Super-lightweight monitoring via HTTP-request.
==============================================
**Be careful! This is non-stable alpha version so far!**
[](https://travis-ci.org/webarchitect609/monitor)
The library enables to monitor different metrics via HTTP-request using token in X-Monitor-Token header.
How to use:
-----------------
1 Copy `resources/monitor-dist.php` with convenient name to web-site folder.
2 Setup parameters following the instructions in the file. Don't forget to specify a long enough secure token! And try
not to enable your application fully. Use only minimal configuration to allow the library to collect metrics.
3 Check everything is correct. For example, using curl:
```
curl -XGET 'http://example.org/monitor.php?metric=dummy-metric' \
-H 'X-Monitor-Token: very-long-token-to-be-placed-here!'
```
4 Setup monitoring software (for example, Zabbix) for sending a request with the token and the name of desired metric.
Enjoy beautiful data graphs!