cosmo
cosmo copied to clipboard
Add planning stage in metrics
Component(s)
router
Is your feature request related to a problem? Please describe.
Currently , the time spent in the planning stage is only available in traces , but alerts and dashboards cannot be built from trace data to monitor it .
Describe the solution you'd like
Maybe we could add the time spent in the planning stage to metrics.
Describe alternatives you've considered
No response
Additional context
No response
WunderGraph commits fully to Open Source and we want to make sure that we can help you as fast as possible. The roadmap is driven by our customers and we have to prioritize issues that are important to them. You can influence the priority by becoming a customer. Please contact us here.
Hi @biubiubiuboomboomboom, we do have a metric for operation planning time, see here: https://cosmo-docs.wundergraph.com/router/metrics-and-monitoring/prometheus-metric-reference#router-graphql-operation-planning-time
Would that work for your use case?
Yes, this is very useful to me. However, this metric represents the total planning time and cannot distinguish the situation of each phase.
Hi, can you explain your use case for this and what specifically you'd want to measure?
Sure. I hope to build a dashboard in Grafana to monitor the entire lifecycle of a request—starting from when it is received, through each processing phase in Cosmo, and track the time taken for each phase. This way, I can identify anomalies when there are abnormal fluctuations in latency.