-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Implement MB Seconds function and builds metric #8235
base: feat-runtime-controls
Are you sure you want to change the base?
Conversation
app/init.php
Outdated
const METRIC_FUNCTION_ID_BUILDS = '{functionInternalId}.builds'; | ||
const METRIC_FUNCTION_ID_BUILDS_STORAGE = '{functionInternalId}.builds.storage'; | ||
const METRIC_FUNCTION_ID_BUILDS_COMPUTE = '{functionInternalId}.builds.compute'; | ||
const METRIC_FUNCTION_ID_DEPLOYMENTS = '{resourceType}.{resourceInternalId}.deployments'; | ||
const METRIC_FUNCTION_ID_DEPLOYMENTS_STORAGE = '{resourceType}.{resourceInternalId}.deployments.storage'; | ||
const METRIC_FUNCTION_ID_BUILDS_MB_SECONDS = '{functionInternalId}.builds.mb_seconds'; |
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.
We might also want
- METRIC_FUNCTION_ID_MB_SECONDS = '{functionInternalId}.mbSeconds'
for convenience, which would be a total of the build and execution mbSeconds for a specific function
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.
Doesn't METRIC_FUNCTION_ID_EXECUTIONS_MB_SECONDS
cover that?
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
Co-authored-by: Shimon Newman <shimonewman@gmail.com>
Co-authored-by: Shimon Newman <shimonewman@gmail.com>
What does this PR do?
This PR implements the metric that calculates GB Hours for functions and builds.
Checklist