Download the PHP package one-content/prometheus without Composer
On this page you can find all versions of the php package one-content/prometheus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download one-content/prometheus
More information about one-content/prometheus
Files in one-content/prometheus
Package prometheus
Short Description This is Prometheus Module for One Content
License
Informations about the package prometheus
prometheus-exporter-laravel
Installation
Configuration
The package has a default configuration which uses the following environment variables.
To customize the configuration file, publish the package configuration using Artisan.
You can then edit the generated config at app/config/prometheus.php
.
Storage Adapters
The storage adapter is used to persist metrics across requests. The memory
adapter is enabled by default, meaning
data will only be persisted across the current request. We recommend using the redis
or apc
adapter in production
environments.
The PROMETHEUS_STORAGE_ADAPTER
env var is used to specify the storage adapter.
If redis
is used, the REDIS_HOST
and REDIS_PORT
vars also need to be configured.
Exporting Metrics
The package adds a /metrics
end-point, enabled by default, which exposes all metrics gathered by collectors.
This can be turned on/off using the PROMETHEUS_METRICS_ROUTE_ENABLED
var, and can also be changed using the
PROMETHEUS_METRICS_ROUTE_PATH
var.
If you would like to protect this end-point, you can write any custom middleware and enable it using
PROMETHEUS_METRICS_ROUTE_MIDDLEWARE
.
All versions of prometheus with dependencies
illuminate/support Version ^5.3 || ^6.0 || ^7.0 || ^8.0
illuminate/routing Version ^5.3 || ^6.0 || ^7.0 || ^8.0
promphp/prometheus_client_php Version ^2.6.0