promalyze

A a library for querying prometheus and working with the data


Keywords
prometheus, metrics, data, timeseries, science
License
MIT
Install
pip install promalyze==0.0.1

Documentation

Promalyze

The library to get data out of Prometheus to analyze.

Install

pip install promalyze

Usage

from promalyze import Client

client = Client('http://localhost:9090')

ts_data = client.range_query('go_gc_duration_seconds') # returns PrometheusData object

ts = ts_data.timeseries[0] # returns a TimeSeries object

json_data = ts.as_json()

dataframe = ts.as_pandas_dataframe()

Development

Install Dependencies

pip install -r requirements.txt

Run Tests

nosetests

With Coverage

nosetests --with-coverage --cover-package=promalyze

Contribute

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request