encore icon indicating copy to clipboard operation
encore copied to clipboard

runtimes/core: Add metrics support

Open fredr opened this issue 5 months ago • 4 comments

Adds the ground work for adding metrics to encore.ts, adds the e_requests_total counter for apps running in gcp/encore cloud that export metrics to gcp cloud monitoring.

~Will add support for aws, datadog and prometheus in a follow up.~ ~This also doesnt expose any sys metrics, will add that in a follow up pr as well.~

fredr avatar Oct 10 '25 14:10 fredr

All committers have signed the CLA.

encore-cla[bot] avatar Oct 10 '25 14:10 encore-cla[bot]

actually, I will refactor this a bit since metrics-rs isn't flexible enough with the different types that we support. Drafting this for now

fredr avatar Oct 16 '25 07:10 fredr

refactored and added system metrics to this ps

fredr avatar Oct 17 '25 11:10 fredr

updated the pr with the other exporters as well

fredr avatar Oct 23 '25 07:10 fredr