2024-06-04 19:06:10 +00: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
|
|
|
|
|
|
|
|
```bash
|
|
|
|
python3 -m venv venv
|
|
|
|
source venv/bin/activate
|
|
|
|
pip install -r requirements.txt
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```bash
|
|
|
|
source venv/bin/activate
|
|
|
|
python exporter.py
|
|
|
|
```
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
2024-06-05 10:23:17 +00:00
|
|
|
The exporter can be configured using environment variables or command line arguments.
|
2024-06-04 19:06:10 +00:00
|
|
|
|
2024-06-05 10:23:17 +00:00
|
|
|
- `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`
|
2024-06-04 19:06:10 +00:00
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|