Changes:
- replace travisci with github actions
- fix incompatibility with elasticsearch-dsl>=6.3, update to 6.3+
- test on pythons 3.6 thru 3.10, djangoes from 1.11 to 4.1
- various fixes to pass tests
Changes:
- Backwards-incompatible: Change default template pattern to
<appname>_<metricname>_<date>.
Bug fixes:
- Pin to elasticsearch-dsl>=6.0.0,<6.3.0 because version 6.3.0 introduces an incompatiblity.
Bug fixes:
- Fix
check_metricsexiting with an error when "number_of_shards" or "number_of_replicas" is set on a metric.
Bug fixes:
- Don't set
_allon mappings. This prevents a DeprecationWarning in Elasticsearch 6.
Bug fixes:
- Fix inheritance of
Indexsettings.
Features:
- Add
Metric.check_index_template, which checks that the state of the metric is in sync with the index template in Elasticsearch. - Backwards-incompatible: Remove
Metric.check_index_template_exists. UseMetric.check_index_templateinstead.
Bug fixes:
- Fix bug where different
Metricsubclasses were sharing the same index settings (incl. mappings).
Other changes:
- Backwards-incompatible: Rename
Metric.create_index_templatetoMetric.sync_index_template.
Features:
- Add
check_metricscommand.
Features:
- Make
Metric.timestamprequired.
Features:
- Add
Metric.record.
Other changes:
- Backwards-incompatible: Remove
dateparameter fromMetric.save.
Features:
- Add
post_index_template_createsignal. - Add
--connectionargument tosync_metrics. - Make
show_metricsoutput more consistent withsync_metrics.
Features:
- Backwards-incompatible: By default,
Metric.search,Metric.get, andMetric.mgetwill use the metric's template pattern as the default index (e.g.myapp_mymetric-*). - Add
dateparameter toMetric.save. - Add optional factory_boy integration in
elasticsearch_metrics.factory.
Bug fixes:
- Include management/ folder in distribution.
- First release.