A small python api to collect data from prometheus
Project description
prometheus-api-client
A Python wrapper for the Prometheus http api and some tools for metrics processing.
Installation
To install the latest release:
pip install prometheus-api-client
To install directly from this branch:
pip install https://github.com/AICoE/prometheus-api-client-python/zipball/master
Links
Running tests
PROM_URL="http://prometheus-route-aiops-prod-prometheus-predict.cloud.paas.psi.redhat.com/" pytest
Code Styling and Linting
Prometheus Api client uses pre-commit framework to maintain the code linting and python code styling.
The AICoE-CI would run the pre-commit check on each pull request.
We encourage our contributors to follow the same pattern, while contributing to the code.
we would like to keep the same standard and maintain the code for better quality and readability.
The pre-commit configuration file is present in the repository .pre-commit-config.yaml
It contains the different code styling and linting guide which we use for the application.
we just need to run pre-commit before raising a Pull Request.
Following command can be used to run the pre-commit:
pre-commit run --all-files
If pre-commit is not installed in your system, it can be install with : pip install pre-commit
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
Built Distribution
Hashes for prometheus-api-client-0.4.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce327513380bf24077b36b6c5d0e8ac6cac122d47b5f413c61c121fdca78cbba |
|
MD5 | 778760776ad812e17fa0a11d539cce3e |
|
BLAKE2b-256 | 15d3b4380ca3afe1ae9e33756d36d6aa9450fbeb547dc61cd1f1d6a187e89c9e |
Hashes for prometheus_api_client-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91a7848238cf94ca16ae0c8f73cc8850965552a6a02621ffbcba590d18054560 |
|
MD5 | c146579e1a4d4bf99bfbf363c00f7d1a |
|
BLAKE2b-256 | f3eacef236942e57869a69a3cf701a0cceea85978465c3525f0823abd7d573f8 |