Skip to main content

Pandas integration for Prometheus

Project description

Prometheus Pandas

Python library for querying Prometheus and accessing the results as Pandas data structures.

This is mostly intended for use in Jupyter notebooks. See Prometheus.ipynb for an example.

Example

>>> from prometheus_pandas import query
>>>
>>> p = query.Prometheus('http://raspberrypi.lan:9090')
>>> p.query('node_cpu{mode="system"}', '2018-11-23T00:00:00Z')
node_cpu{cpu="cpu2",instance="localhost:9100",job="node",mode="system"}    1041.01
node_cpu{cpu="cpu1",instance="localhost:9100",job="node",mode="system"}    1017.41
node_cpu{cpu="cpu3",instance="localhost:9100",job="node",mode="system"}    1002.68
node_cpu{cpu="cpu0",instance="localhost:9100",job="node",mode="system"}    1121.87
dtype: float64

Licence

Licenced under the MIT License. See LICENSE for details.

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-pandas-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

prometheus_pandas-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file prometheus-pandas-0.1.0.tar.gz.

File metadata

  • Download URL: prometheus-pandas-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7

File hashes

Hashes for prometheus-pandas-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5698167b3da4106d829c1c84b8b6648094f659d14cca9a84c16e4ed5d3ef3dc3
MD5 28b88eed10c42d54a1357bc7235b2e4e
BLAKE2b-256 219c8346b41fbd44b93ec81e517fdd546c4dbd0c9593d658b05777cbfe572dfa

See more details on using hashes here.

File details

Details for the file prometheus_pandas-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: prometheus_pandas-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7

File hashes

Hashes for prometheus_pandas-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfd14523ca31146e06edb66c6a936cdfdcbd0d6fd5abe2c79b14ed3aa4b1b20f
MD5 f738141a33ffca5d4246f9ebf1a6c2b0
BLAKE2b-256 e562b1af4cffdc310c451568e1290b7be5044065aaffd6de5980fb9af3c5d49e

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