-
Notifications
You must be signed in to change notification settings - Fork 45
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] Metrics Should Support All-Time Grain Metrics #97
Comments
this is an interesting one! Do you have other examples from the community on the kinds of non-time aggregated metrics? the quote above says
Wouldn’t this imply that the metric is indeed time aggregated, but the way it’s reported depends on a definition of I support the inclusion of the |
agree with dave, i like 'all_time' as something you can explicitly specify vs the more ambiguous idea of making time grains optional -- mainly because a) most metrics are going to be time bucketed and b) as dave said, these non-time-bucketed metrics are actually still measured over time, this is just a convenience to say 'up to present'. |
Examples from partners & community members:
There are a few others like this but tbh we've not dug as deep into this use case because it wasn't supported. Moving ForwardI think we're all in agreement that the As for your point @dave-connors-3 around the definition of |
@callum-mcdata -- one additional idea to meet somewhere in the middle is to update the default calendar model to include |
@dave-connors-3 I'm not sure I follow - are you saying that Or are you saying that adding this field to be used in the |
I think I was thinking this could be passed in the What I'm thinking about on the user end is having to come back in to wherever this macro gets called and updating start and end dates for the next quarter, so some notion of an always correct |
+1 on adding an |
I believe Let's think of a scenario. A software company wants to track user activities. They often want to look at the metric on a weekly basis, but sometimes it's helpful to see the cumulative total. If we provide an Returning the date range makes the most sense if possible so the user understands what |
Sounds like we're all in alignment that So the outstanding questions are:
Here are the implementation details I think we've settled in this thread:
As for the comment around |
Hello all, Is it possible to get metrics for a table that doesn't have timestamp\date column (AFAIK Thanks! |
Is this your first time submitting a feature request?
Describe the feature
From the beginning of
timethe metrics issue , people have been asking about non-time based metrics. Some people believed that non-time based metrics were a requirement while others thought that we'd run into practical constraints for usage. George Fraser of Fivetran had this comment:He was right! We've heard from a lot of our customers that they're interested in getting single numbers returned for their metrics. The metrics themselves might be time-series in principle but the end consumer is only interested in the present value.
So lets add that functionality.
Implementation
There are two different options we have for adding this type of functionality.
metric
node to maketimestamp
&time_grains
optional - if those attributes are not present then we return the single aggregate.all_time
as an option for thegrain
input that aggregates across the entire date range.I am almost certain that option 1 is NOT the route we want to go. Making these parameters optional has the potential to introduce too many issues downstream. For example:
grain
input. They'd need to change their integrations to support that parameter becoming conditionaltimestamp
andtime_grains
. Metrics that actually do require it wouldn't know that the metric is misconfigured until they are actually run.So with that being said, I believe that we should add support for
all_time
(or some similarly named input) in time grains.Open Questions
all_time
? Is there some other name that better captures it?Describe alternatives you've considered
Option 1 raised in above message. I think that is a capital B bad idea but I am willing to be convinced otherwise!
Who will this benefit?
Anyone who wants to return metric results across all time.
Are you interested in contributing this feature?
Yep!
Anything else?
No response
The text was updated successfully, but these errors were encountered: