A custom prometheus exportor
Jeroen De Meerleer
66933d7d19
The code now checks if the request URI is '/metrics' or if the PHP script is running from the command line interface (CLI). This change allows for proper handling of CLI requests in addition to web requests. |
||
---|---|---|
templates | ||
.gitignore | ||
composer.json | ||
composer.lock | ||
config.example.php | ||
index.php | ||
LICENCE.md | ||
README.md |
Custom Prometheus
Copyright (c) 2024- Jeroen De Meerleer me@jeroened.be
A script to add custom prometheus exporters. Output is received from external scripts and urls.
Licence
Copyright (c) 2024- Jeroen De Meerleer <me@jeroened.be>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.