main
Prometheus PHP Latency Exporter
This exporter simply executes PHP scripts and export the execution time in a Prometheus compatible way.
Build
Requirements:
- git
- go
- make
git clone https://git.rznet.fr/tchivert/prometheus-phplatency-exporter.git
cd prometheus-phplatency-exporter
make
Usage:
You will need PHP installed on the host you want to run the exporter on, and all the extensions required by your scripts.
phplatency-exporter --help
Usage of phplatency-exporter:
-a string
address to use (default "0.0.0.0")
-c string
config file path (default "scripts.conf")
-i int
time interval in seconds between two checks (default 30)
-p string
port to run on (default "9063")
-d
enable debug logs
Configuration
The configuration simply contains the path of the PHP scripts to test. For example:
import.php
mysql-test.php
Acknowledgments
Languages
Go
86.1%
Makefile
13.9%