cloud-gov / pages-core

cloud.gov Pages is a publishing platform for modern 21st Century IDEA websites.
https://cloud.gov/pages
Other
275 stars 68 forks source link

Add build metrics query examples #4521

Closed svenaas closed 3 months ago

svenaas commented 3 months ago

Fixes #4500

Changes proposed in this pull request:

security considerations

None. This documents possible queries against an open source schema.

svenaas commented 3 months ago

@drewbo

  • either the disk or memory query (these are the most likely to be interesting, I'd set the memory limit at 2GB if you choose that since it's the limit for small containers)

I think memory is the more interesting but I think I misinterpreted the units as GB. It looks like what's logged is actually a percentage of virtual memory, which will vary by container — am I reading that correctly? If so, maybe we should set the query threshold at 75% or something like that.

drewbo commented 3 months ago

Between the two, memory is probably slightly less interesting since people run into it less frequently. Disk space is a common issue for build failures