Metadata-Version: 2.1
Name: prometheus-pandas
Version: 0.1.0
Summary: Pandas integration for Prometheus
Home-page: https://github.com/dcoles/prometheus-pandas
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# Prometheus Pandas

Python library for querying [Prometheus](https://prometheus.io/) and accessing the results as
 [Pandas](https://pandas.pydata.org/) data structures.

This is mostly intended for use in [Jupyter](https://jupyter.org/) notebooks. See [Prometheus.ipynb](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](https://choosealicense.com/licenses/mit/). See `LICENSE` for details.


