Skip to main content

Connexion handler to metrics service for udata

Project description

udata-metrics

This plugin adds views to display metrics on datasets, reuses, organizations and site dashboard pages. It uses hook logic based on udata-front hooks. We feed these views with data from: * an optional metrics API for traffic (views, download, external links) * mongo for stock values (with an aggregation pipeline) A job can be scheduled to inject traffic metrics in udata's objects metrics.

Installation

Install udata.

Remain in the same virtual environment (for Python).

Install udata-metrics:

pip install udata-metrics

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

PLUGINS = ['metrics']
METRICS_API = 'http://localhost:8005/api'

Changelog

Current (in progress)

  • Nothing yet

2.0.0 (2023-11-21)

  • :warning: New metrics logic #8
    • Add metrics views (using template hook)
    • Use optional metrics API (with job to update metrics on objects)
    • Remove Influx logic
  • Replace mongo legacy image in CI #6

1.0.2 (2020-07-01)

  • Add time condition in the queries to retrieve only last 24 hours results #4

1.0.1 (2020-05-13)

  • Nothing yet

1.0.0 (2020-05-12)

Initial release

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

udata_metrics-2.0.1.dev144-py2.py3-none-any.whl (14.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file udata_metrics-2.0.1.dev144-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for udata_metrics-2.0.1.dev144-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2cf989cffe4fcad456addbacd6761d48ddb69f6ccbe8c17d79176491ce01d642
MD5 05203720748146b074aba1a3d4f0b754
BLAKE2b-256 1fb63f768685801bd2a5019a26f7d167b78f0923ea37a7c65c047ba5f07efdc4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page