A Zulip exporter for Prometheus
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zulip_exporter-0.0.9.tar.gz.
File metadata
- Download URL: zulip_exporter-0.0.9.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d31d3409de3c1edd846c14cb5d980ba33446a651f9af6ec29b7f402cc8aa616e
|
|
| MD5 |
3ec9e5b500d32b3d98d9061c188f2d4c
|
|
| BLAKE2b-256 |
94f997fd2fd74bead8f472c9cef0f704f56fdd0edc5f49d72b7d12693792a60e
|
File details
Details for the file zulip_exporter-0.0.9-py3-none-any.whl.
File metadata
- Download URL: zulip_exporter-0.0.9-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41ef5996a72fce1205208ed694fc485b5ab56acb0fd25f307982ceb61abe8020
|
|
| MD5 |
9ffb592df6e1343f9dc4d72686ca55c0
|
|
| BLAKE2b-256 |
58a5032307f29ae2bfcd8b861314c977dae057d4216262eb5e439252710dc5b4
|