Skip to main content

Metrique - Client Libraries

Project description

../metriqued/metriqued/static/img/metrique_logo.png

Metrique Client

Author: “Chris Ward” <cward@redhat.com>

Sources: https://github.com/drpoovilleorg/metrique

Install

Make sure you have read the `General Install Guide <https://github.com/drpoovilleorg/metrique/tree/master/README.rst>`_.

Install metrique:

pip install metrique

To start using metrique, in ipython notebook, for example:

$> ipython notebook --pylab=inline
...
>>> from metrique import pyclient

Then, to load a new pyclient instance for querying:

>>> m = pyclient(host='http://127.0.0.1')

Ping the server to ensure your connected. If all is well, metriqe server should pong your ping!:

>>> m.ping()
    PONG ($METRIQUED_HOSTNAME)

Now you can start exploring what data already exists on the host:

>>> m.list_cubes()
...
>>> m.list_cube_fields('cube_name_here')
...

And assuming you have a metriqued host to connect to, with data in already, you can get to work!:

>>> q = m.find('gitrepo_commit', 'author, committer_ts')
>>> q.groupby(['author']).size().plot(kind='barh')
    <matplotlib.axes.AxesSubplot at 0x6f77ad0>

If you plan to extract data (optional), see metriquec to install metriques default cubes.

Known Issues

Import Warnings

When running (eg) from metrique import pyclient for the first time in a session, you might see a warning like:

Module bson was already imported from ...

This warning can be safely ignored. It’s only a warning.

Configuration

When loading a server instance, if you get an error about loading http_api.json, run metrique-setup

Project details


Release history Release notifications

History Node

0.3.2-1

History Node

0.3.1-2

History Node

0.3.0-9a

History Node

0.3.0-6a

History Node

0.3.0-2a

History Node

0.3.0-1a

History Node

0.2.7-1a

History Node

0.2.6-11a

History Node

0.2.6-10a

History Node

0.2.6-9a

This version
History Node

0.2.6-8a

History Node

0.2.6-4a

History Node

0.2.6-3a

History Node

0.2.6-2a

History Node

0.2.6-1a

History Node

0.2.5-7

History Node

0.2.5-6

History Node

0.2.5-4a

History Node

0.2.5-3a

History Node

0.2.5-2a

History Node

0.2.4-11a

History Node

0.2.4-10a

History Node

0.2.4-8a

History Node

0.2.4-6a

History Node

0.2.4-5a

History Node

0.2.4-1a

History Node

0.2.2-21

History Node

0.2.2-17

History Node

0.2.2-12

History Node

0.2.2-11a

History Node

0.2.2-7a

History Node

0.2.2-3a

History Node

0.2.2-1a

History Node

0.2.0-4

History Node

0.1.5-23

History Node

0.1.5-22

History Node

0.1.5-20a

History Node

0.1.5-19a

History Node

0.1.5-18a

History Node

0.1.5-17a

History Node

0.1.5-16a

History Node

0.1.5-15a

History Node

0.1.5-14a

History Node

0.1.5-13a

History Node

0.1.5-12a

History Node

0.1.5-11a

History Node

0.1.4-16

History Node

0.1.4-8

History Node

0.1.4

History Node

0.1.3-5

History Node

0.1.3-3

History Node

0.1.3-2

History Node

0.1.3-1

History Node

0.1.3-alpha33

History Node

0.1.3-alpha32

History Node

.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
metrique-0.2.6-8a.tar.gz (20.8 kB) Copy SHA256 hash SHA256 Source None Jan 21, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page