Zulip prometheus exporter
This is based on the work by brokenpip3 in zulip-exporter
Installation
pip3 install zulip-exporter
Or
pipx install git+https://github.com/Digitalist-Open-Cloud/Zulip-Exporter.git
Or use the docker image (prefered)
Environment variable
| Environment Variable | Description | Default | Required |
|---|---|---|---|
ZULIP_EMAIL |
Zulip email from zuliprc | ✅ | |
ZULIP_API_KEY |
Zulip api-key from zuliprc | ✅ | |
ZULIP_SITE |
URL where your Zulip server is located | ✅ | |
PORT |
Http port to listen on | 9863 |
❌ |
SLEEP |
Time to wait in seconds between metric grabbing cycles | 120 |
❌ |
Usage
To use the Zulip exporter, you first need to set the environment variables.
When just start the exporter, like:
zulip-exporter
Or run with docker image, like:
docker run --rm -p 9863:9863 -e ZULIP_SITE=https://my.zulip.site -e ZULIP_API_KEY=secretAPIkey -e ZULIP_EMAIL=user@myzulip.com docker.io/digitalist/zulip-exporter
Docker compose example
zulip-exporter:
container_name: zulip-exporter
restart: unless-stopped
image: quay.io/brokenpip3/zulip-exporter:0.0.1
labels:
io.prometheus.scrape: true
io.prometheus.port: 9863
io.prometheus.path: /metrics
env_file:
- .env-zulip
ports:
- "9863"
Kubernetes
see example
Metrics
-
Server info:
zulip_server -
Users info:
zulip_user_* -
Streams info:
zulip_stream_*
Prometheus rules examples
see rules examples
Grafana dashboard
Development
Setup
- poetry install
- poetry run python3 zulip-exporter
Publish
- poetry install
- poetry build
- poetry publish
Metadata
Release files for zulip-exporter 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zulip_exporter-0.0.9.tar.gz | 3.1 kB | Without provenance | Details for zulip_exporter-0.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zulip_exporter-0.0.9-py3-none-any.whl | Python 3 | none | any | Details for zulip_exporter-0.0.9-py3-none-any.whl |
Total release size: 7.7 kB
Release files / zulip_exporter-0.0.9.tar.gz
| Download URL | zulip_exporter-0.0.9.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d31d3409de3c1edd846c14cb5d980ba33446a651f9af6ec29b7f402cc8aa616e
|
|
BLAKE2b-256 checksum How to use checksums |
94f997fd2fd74bead8f472c9cef0f704f56fdd0edc5f49d72b7d12693792a60e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.5 Darwin/23.6.0
|
Release files / zulip_exporter-0.0.9-py3-none-any.whl
| Download URL | zulip_exporter-0.0.9-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41ef5996a72fce1205208ed694fc485b5ab56acb0fd25f307982ceb61abe8020
|
|
BLAKE2b-256 checksum How to use checksums |
58a5032307f29ae2bfcd8b861314c977dae057d4216262eb5e439252710dc5b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.5 Darwin/23.6.0
|
Security for zulip-exporter 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.