Current issues with the analyzer:
- API design problem - This is considered suboptimal for metrics collection. APIs can introduce unnecessary complexity and overhead
Solution:
- Implementing Prometheus - Prometheus scrapes metrics directly which is more efficient than pushing via API. Also better for monitoring use cases.
Key Benefits of this Change:
- Simplification:
- Remove API complexity
- Direct metrics exposure
- Standard monitoring approach
- Scalability:
- Easy to add new collectors
- Better performance
- Lower resource usage
- ** Standardization:**
- Common metrics format
- Built-in monitoring tools support
- Better integration options
- Reliability:
- Fewer moving parts
- Built-in retry mechanisms
- Better failure handling
Overall, using standard Prometheus patterns for metrics exposure will implement a more scalable and maintainable architecture.