No description
Find a file
2025-03-06 08:07:47 +00:00
.gitignore feat: Initialize CryptPad Prometheus Exporter 2024-06-04 21:06:10 +02:00
exporter.py feat: add dynamic config for CryptPad exporter 2024-06-05 12:23:17 +02:00
LICENSE feat: Initialize CryptPad Prometheus Exporter 2024-06-04 21:06:10 +02:00
README.md feat: add dynamic config for CryptPad exporter 2024-06-05 12:23:17 +02:00
renovate.json Add renovate.json 2025-03-06 07:09:46 +00:00
requirements.txt feat: Initialize CryptPad Prometheus Exporter 2024-06-04 21:06:10 +02:00

CryptPad Prometheus Exporter

This is a simple Prometheus exporter for CryptPad. Currently it only exports the number of registered users, but it is still a work in progress.

Installation

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Usage

source venv/bin/activate
python exporter.py

Configuration

The exporter can be configured using environment variables or command line arguments.

  • PINS_DIR/--pins-dir: The directory where the CryptPad pins are stored. Default: /srv/cryptpad/data/pins
  • PORT/--port: The port the exporter listens on. Default: 8000

License

This project is licensed under the MIT License - see the LICENSE file for details.