dreamfactory / df-exporter-prometheus
DreamFactory(tm) Metrics Exporter for Prometheus
1.1.0
2023-03-01 08:51 UTC
Requires
- php: ^8.0
- ext-json: *
- dreamfactory/df-core: ~1.0
- dreamfactory/df-system: ~0.6
- predis/predis: 1.1.*
- promphp/prometheus_client_php: 2.2.*
- spatie/laravel-http-logger: ^1.1
Requires (Dev)
- filp/whoops: ~2.0
- phpunit/phpunit: ~7.0
README
Adds export metrics about using the DreamFactory API.
Warning. This package is not compatible with df-mongo-logs.
Configuration
This package depends on the Redis cache. DreamFactory supports InMemory and Redis cache,
but DreamFactory Exporter will only work if CACHE_DRIVER
is redis
.
Configurations for this package:
Env | Description | Values | Default value |
---|---|---|---|
CACHE_DRIVER | It should always be redis |
any | redis |
PROMETHEUS_ENABLED | Determines whether it is allowed to collect and expose metrics | true , false |
false |
PROMETHEUS_TELEMETRY | Metrics endpoint for Prometheus | string | /metrics |
PROMETHEUS_INCLUDE_SYSTEM_REQUESTS | Do Prometheus have to log system calls? | true , false |
false |
PROMETHEUS_ALLOWED_HOSTNAME | Allowed hostname to call /metrics endpoint | /regex/ |
/^.*$/ |
Metrics
# HELP dreamfactory_api_requests_total The total amount of API requests processed
# TYPE dreamfactory_api_requests_total counter
# HELP php_info Information about the PHP environment.
# TYPE php_info gauge