Skip to main content

A small python api to collect data from prometheus

Project description

prometheus-api-client

Codacy Badge PyPI version PyPI download month

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prometheus-api-client-0.4.1.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prometheus_api_client-0.4.1-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file prometheus-api-client-0.4.1.tar.gz.

File metadata

  • Download URL: prometheus-api-client-0.4.1.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8

File hashes

Hashes for prometheus-api-client-0.4.1.tar.gz
Algorithm Hash digest
SHA256 ce327513380bf24077b36b6c5d0e8ac6cac122d47b5f413c61c121fdca78cbba
MD5 778760776ad812e17fa0a11d539cce3e
BLAKE2b-256 15d3b4380ca3afe1ae9e33756d36d6aa9450fbeb547dc61cd1f1d6a187e89c9e

See more details on using hashes here.

File details

Details for the file prometheus_api_client-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: prometheus_api_client-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8

File hashes

Hashes for prometheus_api_client-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 91a7848238cf94ca16ae0c8f73cc8850965552a6a02621ffbcba590d18054560
MD5 c146579e1a4d4bf99bfbf363c00f7d1a
BLAKE2b-256 f3eacef236942e57869a69a3cf701a0cceea85978465c3525f0823abd7d573f8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page