PHPackages                             ujamii/prometheus-trello-exporter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ujamii/prometheus-trello-exporter

ActiveProject[Utility &amp; Helpers](/categories/utility)

ujamii/prometheus-trello-exporter
=================================

Metrics endpoint for trello data.

v0.5.1(3y ago)552MITPHPPHP &gt;=8.0CI passing

Since Mar 18Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/ujamii/prometheus-trello-exporter)[ Packagist](https://packagist.org/packages/ujamii/prometheus-trello-exporter)[ RSS](/packages/ujamii-prometheus-trello-exporter/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (8)Used By (0)

Exporter for trello data in prometheus format
=============================================

[](#exporter-for-trello-data-in-prometheus-format)

This package uses the Trello [REST API](https://developers.trello.com/v1.0/reference) to query for some statistics and outputs them in [OpenMetrics](https://github.com/OpenObservability/OpenMetrics) format, which can be scraped by [Prometheus](https://prometheus.io/).

For easier deployment we also provide a [Docker container](#with-docker).

API Keys
--------

[](#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](https://trello.com/app-key)

Usage
-----

[](#usage)

You can either include this library into you own code, or run it as a container.

### with Composer

[](#with-composer)

**Installation**

```
composer req ujamii/prometheus-trello-exporter
```

**Usage in your custom file**

```
require 'vendor/autoload.php';

$exporter = new \Ujamii\OpenMetrics\Trello\TrelloExporter('', '', '');
$exporter->run();
```

### with Docker

[](#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 .

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.

```
docker run -d --name trello-prometheus -e TRELLO_API_KEY=verylongfoobarkey -e TRELLO_API_TOKEN=foobarlongtoken -p "80:80" ghcr.io/ujamii/prometheus-trello-exporter
```

Get the prebuild image from [GitHub](https://github.com/ujamii/prometheus-trello-exporter/pkgs/container/prometheus-trello-exporter)

### with Docker Compose

[](#with-docker-compose)

```
cp docker-compose.example.yml docker-copose.yml
vim docker-compose.yml #add env variables
docker-compose up -d
```

Output
------

[](#output)

The script will generate something like:

```
# TYPE trello_cards_in_list_total gauge
# HELP trello_cards_in_list_total Number of cards per list.
trello_cards_in_list_total{board="FooBar Board", list="To Do"} 2.000000
trello_cards_in_list_total{board="FooBar Board", list="In Progress"} 0.000000
trello_cards_in_list_total{board="FooBar Board", list="Done"} 16.000000
# TYPE trello_labeled_cards_on_board gauge
# HELP trello_labeled_cards_on_board Number of cards per board and label.
trello_labeled_cards_on_board{board="FooBar Board", label="on hold"} 2.000000
trello_labeled_cards_on_board{board="FooBar Board", label="late"} 1.000000
trello_labeled_cards_on_board{board="FooBar Board", label="needs input"} 5.000000
# TYPE trello_cards_per_board_member gauge
# HELP trello_cards_per_board_member Number of cards per board and member.
trello_cards_per_board_member{board="FooBar Board", member="John Doe"} 3.000000
trello_cards_per_board_member{board="FooBar Board", member="Jane Doe"} 13.000000
...

```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance58

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~301 days

Recently: every ~377 days

Total

6

Last Release

1103d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1526725?v=4)[Michael Grundkötter](/maintainers/mgrundkoetter)[@mgrundkoetter](https://github.com/mgrundkoetter)

---

Top Contributors

[![mgrundkoetter](https://avatars.githubusercontent.com/u/1526725?v=4)](https://github.com/mgrundkoetter "mgrundkoetter (27 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")

---

Tags

prometheusprometheus-exportertrellotrello-api

### Embed Badge

![Health badge](/badges/ujamii-prometheus-trello-exporter/health.svg)

```
[![Health](https://phpackages.com/badges/ujamii-prometheus-trello-exporter/health.svg)](https://phpackages.com/packages/ujamii-prometheus-trello-exporter)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
