Skip to main content
Copyright (c) 2017 the Timera authors and contributors <see AUTHORS.txt file>.

Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Portions of the code marked as "stolen from Paste" are provided under the
following license:

Copyright (c) 2005 Ian Bicking and Contributors

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Description: Timera
======

Store stats in InfluxDB.

.. figure:: docs/img/plugin-httptimer-grafana-dashboard-1.png
:scale: 50 %
:alt: Grafana Dashboard

Grafana Dashboard

There's currently one plugin included with Timera, ``httptimer``.

With ``httptimer``, you can store the time it takes to get http responses. For example:

.. code-block:: ini

[httptimer_plugin_01]
name = www.google.com
url = https://www.google.com/
proxy = http://proxy.example.com:3128/
include_direct = true

See the config file, `config.ini <https://github.com/natej/timera/blob/master/config.ini>`_, for options.

Use any InfluxDB-compatible visualization software to view your stats. For example:

- `Chronograf <https://portal.influxdata.com/downloads>`_
- `Grafana <http://docs.grafana.org/features/datasources/influxdb/>`_

Timera has a simple plugin system. So it's easy to write your own plugin to collect the stats you want.
Use `httptimer <https://github.com/natej/timera/blob/master/timera/plugins/httptimer/>`_ as an example.

Requirements
------------

- `InfluxDB <https://portal.influxdata.com/downloads>`_
- `Python <https://www.python.org/>`_ 2.7 or 3.6, pip and setuptools.

Install
-------

.. code-block:: bash

$ pip install timera

Or if using a virtual environment:

.. code-block:: bash

$ source env/bin/activate
$ pip install timera

Development Install
-------------------

Use ``make install-dev`` to install in editable mode (``pip install -e .``) with pytest and tox:

.. code-block:: bash

$ source env/bin/activate
$ cd timera-master
$ make install-dev
$ make test
$ tox

Run It
------

Create db and start collecting stats:

.. code-block:: bash

# edit config.ini
$ timera config.ini reset_db
$ timera config.ini start

Optional
--------

Use `Supervisor <https://github.com/Supervisor/supervisor>`_ to run Timera. See the
`contrib dir <https://github.com/natej/timera/blob/master/contrib/>`_. Supervisor requires
Python 2 (``pip install supervisor``).

Viewing Stats with Grafana
--------------------------

Configure `InfluxDB as a datasource <http://docs.grafana.org/features/datasources/influxdb/>`_.

For the ``httptimer`` plugin, create a `graph panel <http://docs.grafana.org/features/panels/graph/>`_ and
configure the query:

.. figure:: docs/img/plugin-httptimer-grafana-metrics-tab-1.png
:scale: 50 %
:alt: Grafana Metrics Tab

Grafana Metrics Tab

Keywords: influxdb system network monitoring
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Topic :: Database
Classifier: Topic :: System :: Monitoring
Classifier: Topic :: System :: Networking :: Monitoring
Classifier: Topic :: System :: Systems Administration
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*

Metadata

Release files for timera 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for timera 0.1.0
File Size Uploaded Provenance Actions
timera-0.1.0.tar.gz 11.7 kB Without provenance Details for timera-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for timera 0.1.0
File Interpreter ABI Platform Actions
timera-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for timera-0.1.0-py2.py3-none-any.whl

Total release size: 27.6 kB

Release files / timera-0.1.0.tar.gz

Download URL timera-0.1.0.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5b869512d6b9523bbb927c4b78069f0e9a4f0c1214ca2a840fac21743677759d
BLAKE2b-256 checksum
How to use checksums
e5385c8ff32863b32476e2ce2a1b9abf6280a4ad2cde8727b24d62fbca0fd919
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / timera-0.1.0-py2.py3-none-any.whl

Download URL timera-0.1.0-py2.py3-none-any.whl
Size 15.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8a96e8ba8f845e0f5a9958e63702ed3aaa071e6138647d6eabff795b896b4510
BLAKE2b-256 checksum
How to use checksums
aea3ec5d326038d3397a4f47c091577183972b10337fba77b5b54e3e17c0084c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for timera 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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