Skip to content

Conversation

aasifkhan7
Copy link

  • Added PrintReport implementation for Prometheus sink
  • Added metrics calculation for latency and error counts
  • Matches output format with Memory sink for consistency

- Added PrintReport implementation for Prometheus sink
- Added metrics calculation for latency and error counts
- Matches output format with Memory sink for consistency
@arpitbbhayani
Copy link
Contributor

@aasifkhan7 don't you need to query the prometheus to get the numbers? I see all local calculations here.
Can you point me to the resource where it says this is safe to do?

- Replace local state calculations with direct Prometheus API queries
- Add proper error handling for Prometheus queries
- Use histogram_quantile for percentile calculations
- Add 5-minute rate window for histogram metrics
- Maintain same output format for compatibility

This change improves accuracy of metrics by using Prometheus' native
query capabilities instead of calculating from local state.
@aasifkhan7
Copy link
Author

@arpitbbhayani my bad, I've now made the necessary changes to query Prometheus for the numbers. Please let me know if I'm missing something else here as well.

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.

2 participants