Prometheus http query client for asyncio
Project description
Drow Aio
Prometheus http query client for Python asyncio.
Implemented prometheus http api: https://prometheus.io/docs/prometheus/latest/querying/api/
install
pip install drow-aio
usage
get client:
from drow_aio import get_client
client = get_client("http://127.0.0.1:9090")
query as vector:
result = await client.query_as_vector("http_requests_total")
for s in result.series:
print(s.metric, s.value.timestamp, s.value.value)
query range:
import time
end = time.time()
start = end - 60 * 60
result = await client.query_range("http_requests_total", start=start, end=end)
for s in result.series:
print(s.metric)
for p in s.values:
print(p.timestamp, p.value)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
drow_aio-0.0.2.tar.gz
(2.8 kB
view details)
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 drow_aio-0.0.2.tar.gz.
File metadata
- Download URL: drow_aio-0.0.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90c78fef31d3972d881241a6314490e10ae31dbc250e590e39abb06ff29903c7
|
|
| MD5 |
1e4749d00ffe15a5503f0f0b08b8d7f3
|
|
| BLAKE2b-256 |
72a161ab401d0b2e5f5a3be27ee969a53e95c04636d4f87de02ad79b169c861d
|
File details
Details for the file drow_aio-0.0.2-py3-none-any.whl.
File metadata
- Download URL: drow_aio-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a369d416035eafea884d233fef3b49154dedc0ecde93164dc99025f034b7d196
|
|
| MD5 |
1552558db50fb42b34cd76e8e7a041a8
|
|
| BLAKE2b-256 |
fbf44ab190086c7624a6f2cbbfba5112f408bf58b1a38fdf56f5b0662f1d7685
|