Skip to content

Feat: Usage Stats#19

Merged
christyjacob4 merged 30 commits intomainfrom
feat-usage-stats
Nov 7, 2022
Merged

Feat: Usage Stats#19
christyjacob4 merged 30 commits intomainfrom
feat-usage-stats

Conversation

@Meldiron
Copy link
Contributor

@Meldiron Meldiron commented Oct 5, 2022

Usage stats are useful in Appwrite in future functions proxy. These stats will allow us to decide which function container to use or if we need to spawn a new one.

This implements getStats() that gives CPU, memory, disk, and network usage.

This is a per-container implementation of a similar implementation from utopia/system. Notice that the System library gives host machine stats while this gives per-container stats.

  • Implement tests

Copy link
Contributor

@christyjacob4 christyjacob4 left a comment

Choose a reason for hiding this comment

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

Looks good. please address the comments

Meldiron and others added 2 commits November 7, 2022 12:48
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
@christyjacob4 christyjacob4 merged commit c7fe1fe into main Nov 7, 2022
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.

4 participants