webarchitect609/monitor
Composer 安装命令:
composer require webarchitect609/monitor
包简介
Super-lightweight monitoring via HTTP-request.
README 文档
README
Be careful! This is non-stable alpha version so far!
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!
统计信息
- 总下载量: 11.23k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-24