Metadata-Version: 2.1
Name: udata-metrics
Version: 1.0.3.dev64
Summary: Connexion handler to metrics service for udata
Home-page: https://github.com/opendatateam/udata-metrics
Author: Open Data Team
Author-email: contact@opendata.team
License: AGPL
Keywords: udata metrics
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python
Classifier: Environment :: Web Environment
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Topic :: System :: Software Distribution
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: udata (>=2.0.0.dev)
Requires-Dist: influxdb (==5.2.3)
Provides-Extra: test
Requires-Dist: httpretty (==0.9.7) ; extra == 'test'
Requires-Dist: mock (==3.0.5) ; extra == 'test'
Requires-Dist: pytest-flask (==0.15.0) ; extra == 'test'
Requires-Dist: pytest-sugar (==0.9.2) ; extra == 'test'
Requires-Dist: pytest (==4.6.3) ; extra == 'test'

# udata-metrics

This plugin handles the connexion to an InfluxDB service for udata.
It provides a client to store and to retrieve views and hits generated by users before injecting them in udata's objects metrics.

## Installation

Install [udata](https://github.com/opendatateam/udata).  
Install [udata-piwik](https://github.com/opendatateam/udata-piwik).

Remain in the same virtual environment (for Python).

Install **udata-metrics**:

```shell
pip install udata-metrics
```

Modify your local configuration file of **udata** (typically, `udata.cfg`) as following:

```python
PLUGINS = ['metrics']
METRICS_DSN = {
    'host': 'localhost',
    'port': '8086',
    'username': 'johndoe',
    'password': 'youwillneverguess',
    'database': 'metrics_db'
}
```

# Changelog

## Current (in progress)

- Nothing yet

## 1.0.2 (2020-07-01)

- Add time condition in the queries to retrieve only last 24 hours results [#4](https://github.com/opendatateam/udata-metrics/pull/4)

## 1.0.1 (2020-05-13)

- Nothing yet

## 1.0.0 (2020-05-12)

Initial release



