The library to get data out of Prometheus to analyze.
pip install promalyze
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()
pip install -r requirements.txt
nosetests
nosetests --with-coverage --cover-package=promalyze
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request