1
2023-11-15 11:55:52 +01:00
2023-11-15 11:48:39 +01:00
2023-11-15 11:48:39 +01:00
2023-11-13 17:40:37 +01:00
2023-11-13 17:40:37 +01:00
2023-11-13 17:40:37 +01:00
2023-11-13 17:40:37 +01:00
2023-11-14 10:48:39 +01:00
2023-11-14 09:51:05 +01:00
2023-11-15 11:55:52 +01:00

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

Description
No description provided
Readme MIT 35 KiB
Languages
Go 86.1%
Makefile 13.9%