Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

../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 hdf5 OS dependencies:

sudo yum install hdf5-devel  # Fedora
# sudo apt-get install libhdf5-serial-dev  # Ubuntu

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

Download files

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

Source Distribution

metrique-0.2.5-3a.tar.gz (22.6 kB view details)

Uploaded Source

File details

Details for the file metrique-0.2.5-3a.tar.gz.

File metadata

  • Download URL: metrique-0.2.5-3a.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for metrique-0.2.5-3a.tar.gz
Algorithm Hash digest
SHA256 cd3d23d26ea9d376df71d830787eba9cd7f24eec8e38447ddbe38e1be83c4c17
MD5 a0f3633333f9f77abb5609b668c4bbd2
BLAKE2b-256 3ec2236cfff9886c37dbd1f082544a9d3e4a6385d314c0b5d60657a56bb8e5d9

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page