Download the PHP package ujamii/prometheus-trello-exporter without Composer
On this page you can find all versions of the php package ujamii/prometheus-trello-exporter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ujamii/prometheus-trello-exporter
More information about ujamii/prometheus-trello-exporter
Files in ujamii/prometheus-trello-exporter
Package prometheus-trello-exporter
Short Description Metrics endpoint for trello data.
License MIT
Informations about the package prometheus-trello-exporter
Exporter for trello data in prometheus format
This package uses the Trello REST API to query for some statistics and outputs them in OpenMetrics format, which can be scraped by Prometheus.
For easier deployment we also provide a Docker container.
API Keys
For authentication at the REST API this tool needs a pair of API keys, which you can create by signing into Trello and visiting trello.com/app-key
Usage
You can either include this library into you own code, or run it as a container.
with Composer
Installation
Usage in your custom file
with Docker
The image is based on php:8.1-apache
and thus exposes data on port 80 by default. Assuming you fire this up with
-p 80:80
on localhost, you can see the metrics at http://localhost/metrics.
Configuration is done with three environment variables: TRELLO_API_KEY
and TRELLO_API_TOKEN
for authentication and
an optional TRELLO_ORG
variable if you want to query the boards from an organization instead of the boards from the
user.
Get the prebuild image from GitHub
with Docker Compose
Output
The script will generate something like:
All versions of prometheus-trello-exporter with dependencies
stevenmaguire/trello-php Version ^1.0.0
openmetrics-php/exposition-text Version ^0.3.1