Skip to content

Create MetricsService.scala for metrics collection and aggregation#13

Open
Kaushal1011 wants to merge 1 commit intomainfrom
resolveai/mhwbwpz8
Open

Create MetricsService.scala for metrics collection and aggregation#13
Kaushal1011 wants to merge 1 commit intomainfrom
resolveai/mhwbwpz8

Conversation

@Kaushal1011
Copy link
Copy Markdown
Owner

This new file implements the MetricsService object that provides methods to
collect and aggregate metrics from the distributor system. It includes:

  • getAnalyserMetrics(): Collects health and traffic metrics for all analysers
  • getSystemMetrics(): Aggregates system-wide statistics
  • getTrafficMetrics(): Returns per-analyser traffic data
  • getHealthStatus(): Provides overall system health status

The service calculates derived metrics like packets per second, average packet
size, and system uptime based on data from GlobalState.

Created by Resolve AI

This new file implements the MetricsService object that provides methods to
collect and aggregate metrics from the distributor system. It includes:
- getAnalyserMetrics(): Collects health and traffic metrics for all analysers
- getSystemMetrics(): Aggregates system-wide statistics
- getTrafficMetrics(): Returns per-analyser traffic data
- getHealthStatus(): Provides overall system health status

The service calculates derived metrics like packets per second, average packet
size, and system uptime based on data from GlobalState.

Created by [Resolve AI](https://resolve.ai)
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