{"repo":"CenterForOpenScience/django-elasticsearch-metrics","free":true,"listed":false,"github":"https://github.com/CenterForOpenScience/django-elasticsearch-metrics","clone":"git clone https://github.com/CenterForOpenScience/django-elasticsearch-metrics.git","description":"Django app for storing time-series metrics in Elasticsearch.","language":"Python","stars":12,"topics":["django","elastic","elasticsearch","time-series","metrics","analytics","statistics"],"license":"MIT","category":"analytics","readme_excerpt":"django-elasticsearch-metrics (\"djelme\" for short) Django app for storing time-series metrics in Elasticsearch. django-elasticsearch-metrics on pypi: https://pypi.org/project/django-elasticsearch-metrics python importables: - elasticsearch metrics - elasticsearch metrics.imps.elastic8 (an implementation with elasticsearch 8) - ... Pre-requisites Python =3.10 Django 4.2, 5.1, or 5.2 Elasticsearch 8 Install Quickstart Add \"elasticseach metrics\" to INSTALLED APPS . Configure at least one djelme backend: In one of your apps, add record types in metrics.py and be sure to run the djelme backend setup management command before trying to store anything: Now add some data: Go forth and search! Timeseries indexes By default, behind the scenes, a new elasticsearch index is created for each record type for each day in which a record is saved (using UTC timezone). You can change this for a record type by setting Meta.timeseries index timedepth , or change the default timedepth with the setting DJELME DEFAULT TIMEDEPTH (see below). - index per year: timeseries index timedepth = 1 - index per month: timeseries index timedepth = 2 - index per day: timeseries index timedepth = 3 (default) - index per hour: timeseries index timedepth = 4 Index settings You can configure the index settings that will be set on the index template and used for each new timeseries index with Index.settings on a record type. Index templates Each record type will have its own index template. The index template name an","default_branch":null,"files":null,"tree":[],"storefront":"/r/CenterForOpenScience","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/CenterForOpenScience/django-elasticsearch-metrics/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}