Skip to content
This repository was archived by the owner on Jul 29, 2025. It is now read-only.

v3io/promalyze

 
 

Repository files navigation

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

About

Get timeseries data from Prometheus

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%