-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Adds missing schemas + data for metrics to snowplow stats ping #48476
Conversation
- and add defaults
- we aren't reaching into the api API, so the linter is more of a formality here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really excited to see our progress on this migration. I left a few questions and one blocking nitpick that should be easy to resolve :)
snowplow/iglu-client-embedded/schemas/com.metabase/instance_stats/jsonschema/1-0-0
Outdated
Show resolved
Hide resolved
snowplow/iglu-client-embedded/schemas/com.metabase/instance_stats/jsonschema/1-0-0
Outdated
Show resolved
Hide resolved
snowplow/iglu-client-embedded/schemas/com.metabase/instance_stats/jsonschema/1-0-0
Outdated
Show resolved
Hide resolved
- revert changes to 1-0-0 - add metrics section to new file: 1-0-1 - bump ::instance_stats to "1-0-1" - add tags into 1-0-1 - make the code return tags (empty for now until we know what to tag things.) - also fix test that broke from shuffling settings around
…tabase into add-metrics-to-snowplow-ping
snowplow/iglu-client-embedded/schemas/com.metabase/instance_stats/jsonschema/1-0-1
Outdated
Show resolved
Hide resolved
add grouped_metrics to jsonschema 1-0-1 format 1-0-1
snowplow/iglu-client-embedded/schemas/com.metabase/instance_stats/jsonschema/1-0-1
Outdated
Show resolved
Hide resolved
snowplow/iglu-client-embedded/schemas/com.metabase/instance_stats/jsonschema/1-0-1
Outdated
Show resolved
Hide resolved
snowplow/iglu-client-embedded/schemas/com.metabase/instance_stats/jsonschema/1-0-1
Outdated
Show resolved
Hide resolved
…tabase into add-metrics-to-snowplow-ping
- alphabetize metrics generation
I've tested this with snowplow mini, and it accepts the value 🎉. Open question:
Answered:
|
- add maxLength to some strings
- Add description to setting.items.tags - add maxLength, and {min,max}imum to setting.items.value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the back and forth but there were new infos based on the discussion with SnowcatCloud
snowplow/iglu-client-embedded/schemas/com.metabase/instance_stats/jsonschema/1-0-1
Outdated
Show resolved
Hide resolved
snowplow/iglu-client-embedded/schemas/com.metabase/instance_stats/jsonschema/1-0-1
Outdated
Show resolved
Hide resolved
snowplow/iglu-client-embedded/schemas/com.metabase/instance_stats/jsonschema/1-0-1
Outdated
Show resolved
Hide resolved
Should this not be backported to the 51 release branch so it makes it into 51? I see the no-backport label. |
Thanks, I've switched the labels so we will backport it. |
- remove analytics_uuid string length == 36 check - adds assertion to ensure required fields are set (and it passes) - adds info for embedding settings
- adds length info to the schema to pass jsonschema linting
Since we don't have telemetry data for embedding usage, we've expedited that piece and added the |
* adds data + schema for metrics stats ping * remove comment * annotate todos * fill in the rest of the metrics values - and add defaults * fix some definitions + use a single timestamp * shuffle stuff around to appease the namespace linter - we aren't reaching into the api API, so the linter is more of a formality here. * update docstring * fix jsonschema, maybe * review responses - revert changes to 1-0-0 - add metrics section to new file: 1-0-1 - bump ::instance_stats to "1-0-1" - add tags into 1-0-1 - make the code return tags (empty for now until we know what to tag things.) - also fix test that broke from shuffling settings around * remove a footgun * add tags to metrics, add grouped_metrics to jsonschema 1-0-1 format 1-0-1 * indent * cljfmt * version should match filename * update instance stats 1-0-1 schema * require `tags` in grouped_metric + snowcat comment * fix formatting noise * update schema to make it valid * remove grouped_metrics from instance_stats schema * cljfmt appeasement * unbin cache_num_queries_cached value - alphabetize metrics generation * we can now guarantee metric values will be ints * jsonschema for instance_uuid, settings, and grouped_metrics * add analytics_uuid and make it required * lint + alphabetize instance stats json schema * update setting key type - add maxLength to some strings * lint jsonschema - Add description to setting.items.tags - add maxLength, and {min,max}imum to setting.items.value * Bump instance stats to 2-0-0 - remove analytics_uuid string length == 36 check - adds assertion to ensure required fields are set (and it passes) - adds info for embedding settings * adds a grouped-metric to stats ping - adds length info to the schema to pass jsonschema linting * cljfmt
… (#48760) * adds data + schema for metrics stats ping * remove comment * annotate todos * fill in the rest of the metrics values - and add defaults * fix some definitions + use a single timestamp * shuffle stuff around to appease the namespace linter - we aren't reaching into the api API, so the linter is more of a formality here. * update docstring * fix jsonschema, maybe * review responses - revert changes to 1-0-0 - add metrics section to new file: 1-0-1 - bump ::instance_stats to "1-0-1" - add tags into 1-0-1 - make the code return tags (empty for now until we know what to tag things.) - also fix test that broke from shuffling settings around * remove a footgun * add tags to metrics, add grouped_metrics to jsonschema 1-0-1 format 1-0-1 * indent * cljfmt * version should match filename * update instance stats 1-0-1 schema * require `tags` in grouped_metric + snowcat comment * fix formatting noise * update schema to make it valid * remove grouped_metrics from instance_stats schema * cljfmt appeasement * unbin cache_num_queries_cached value - alphabetize metrics generation * we can now guarantee metric values will be ints * jsonschema for instance_uuid, settings, and grouped_metrics * add analytics_uuid and make it required * lint + alphabetize instance stats json schema * update setting key type - add maxLength to some strings * lint jsonschema - Add description to setting.items.tags - add maxLength, and {min,max}imum to setting.items.value * Bump instance stats to 2-0-0 - remove analytics_uuid string length == 36 check - adds assertion to ensure required fields are set (and it passes) - adds info for embedding settings * adds a grouped-metric to stats ping - adds length info to the schema to pass jsonschema linting * cljfmt Co-authored-by: bryan <bryan.maass@gmail.com>
resolves #48424
Most of the info for this section was in the legacy stats info. The new stuff is calculated in
->snowplow-metric-info
.The specified tags are included with
"metrics"
.Also, I refactored this to be more repl-friendly. We can call
generate-instance-stats!
from the repl to see its value.This adds the jsonschema for
"metrics"
section, as well as"grouped_metrics"
.