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

Implement MB Seconds function and builds metric #8235

Open
wants to merge 8 commits into
base: feat-runtime-controls
Choose a base branch
from

Conversation

PineappleIOnic
Copy link
Member

What does this PR do?

This PR implements the metric that calculates GB Hours for functions and builds.

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

@PineappleIOnic PineappleIOnic changed the title Implement GB Hours function and builds metric Implement MB Secnds function and builds metric Jun 10, 2024
@PineappleIOnic PineappleIOnic changed the base branch from main to feat-runtime-controls June 10, 2024 07:14
app/init.php Outdated Show resolved Hide resolved
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';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might also want

  1. METRIC_FUNCTION_ID_MB_SECONDS = '{functionInternalId}.mbSeconds'

for convenience, which would be a total of the build and execution mbSeconds for a specific function

Copy link
Member Author

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?

app/init.php Outdated Show resolved Hide resolved
app/init.php Outdated Show resolved Hide resolved
PineappleIOnic and others added 3 commits June 11, 2024 12:44
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
Co-authored-by: Shimon Newman <shimonewman@gmail.com>
Co-authored-by: Shimon Newman <shimonewman@gmail.com>
@PineappleIOnic PineappleIOnic changed the title Implement MB Secnds function and builds metric Implement MB Seconds function and builds metric Jun 12, 2024
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

Successfully merging this pull request may close these issues.

None yet

3 participants