Skip to main content
Pre-release

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

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

Metrique Client

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

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

Installation

General

Make sure you have the following OS stuff installed before doing anything else. The examples given below are fedora rpm package names:

yum install git python python-devel python-setuptools gcc gcc-c++

Also, make sure python pip, distribute and setuptools are installed up2date:

easy_install -U pip
pip install -U distribute
pip install -U setuptools

Ipython

We strongly suggest installing and using IPython notebook instead of standard python shell for interactive data exploration.

To install ipython notebook install the following OS packages:

yum install libpng-devel freetype-devel

Then pip install ipython.

If you see any error, not otherwise mentioned here, Google.

Client

Install metrique:

pip install metrique

If you plan to extract data, metrique’s default cubes, can be installed with:

pip install metriquec

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()

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.fetch('gitrepo_commit', 'author, committer_ts')
>>> q.groupby(['author']).size().plot(kind='barh')
    <matplotlib.axes.AxesSubplot at 0x6f77ad0>

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.1.5-11a.tar.gz (21.4 kB view details)

Uploaded Source

File details

Details for the file metrique-0.1.5-11a.tar.gz.

File metadata

  • Download URL: metrique-0.1.5-11a.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for metrique-0.1.5-11a.tar.gz
Algorithm Hash digest
SHA256 018dbf8dafbb491e46836d8ed7bed1efd89c756fd9f8f5dca0037b0ee857088d
MD5 59159649dff481328afc31a1b4f9a817
BLAKE2b-256 c13d568fb1fb5fd9c40f9ed0aa3ddd7a677569b31d2f7890b61050561f900395

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.2-1

1 file

0.3.1-2

1 file

0.2.5-7

1 file

0.2.5-6

1 file

0.2.2-21

1 file

0.2.2-17

1 file

0.2.2-12

1 file

0.2.0-4

1 file

0.1.5-23

1 file

0.1.5-22

1 file

This release

0.1.5-11a This release

1 file

0.1.4-16

1 file

0.1.4-8

1 file

0.1.4

1 file

0.1.3-5

1 file

0.1.3-3

1 file

0.1.3-2

1 file

0.1.3-1

1 file

.

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page