A custom prometheus exportor
Jeroen De Meerleer
0f50e874d4
This commit introduces a new Dockerfile that sets up a PHP 8.3 environment with Apache. It includes the following significant changes: - Sets the working directory to /var/www/html - Copies current directory contents into the container - Installs Composer and activates mod_rewrite - Installs Process Control extension using curl command - Runs composer install to fetch dependencies - Exposes port 9050 and modifies Apache configuration to listen on this port - Adds environment variables to Apache configuration - Changes ownership of /var/www/html to www-data user - Starts the Apache server using apache2-foreground command |
||
---|---|---|
templates | ||
.gitignore | ||
.htaccess | ||
composer.json | ||
composer.lock | ||
config.example.php | ||
dockerfile | ||
index.php | ||
LICENCE.md | ||
README.md | ||
script.php |
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/>.