Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] different granularities for different metrics #414

Open
suelai opened this issue Dec 5, 2023 · 0 comments
Open

[FEATURE] different granularities for different metrics #414

suelai opened this issue Dec 5, 2023 · 0 comments

Comments

@suelai
Copy link
Contributor

suelai commented Dec 5, 2023

Tell us about the problem you're trying to solve

A day granularity works well for most of the metrics and the immediate spikes but some of the metrics shift slowly and re_data won't catch that. Or sometimes the values are very small on the day granularity, but if we aggregate on the week/month level, we can see the change better. It will be helpful to have a time_granularity parameter to define this.

Describe the solution you’d like
Something like this, where the sum of the amount will be aggregated on the monthly level and then calculate the metrics

models:
  - name: pending_orders
    config:
      re_data_monitored: true
      re_data_time_filter: created_at
      re_data_columns:
        - amount
        - status
      re_data_metrics_groups:
        - table_metrics
      re_data_metrics:
        column:
          amount:
            - sum:
               time_granularity: month
      re_data_anomaly_detector:
        name: modified_z_score
        threshold: 3

Describe the alternative you’ve considered or used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant