Skip to content

Conversation

@ArrisLee
Copy link
Collaborator

@ArrisLee ArrisLee commented Dec 3, 2025

Description

For JIRA: https://issues.redhat.com/browse/ARO-21063

Adds resource usage metrics collection for the MIMO actuator to monitor its CPU, memory, and I/O consumption when deployed on VMSS alongside the RP.

This addresses the "noisy neighbor" risk by providing visibility into MIMO's resource footprint for right-sizing and alerting.

Changes

  • Add pkg/mimo/metrics/resource_usage.go - collector that reads from Linux /proc filesystem
  • Add pkg/mimo/metrics/resource_usage_test.go - unit tests
  • Modify cmd/aro/mimoactuator.go - start collector on actuator startup

Metrics

Metric Description
mimo.resource.cpu.percent CPU usage percentage
mimo.resource.memory.bytes Memory usage (RSS) in bytes
mimo.resource.memory.percent Memory as % of system memory
mimo.resource.io.read_bytes Disk read bytes
mimo.resource.io.write_bytes Disk write bytes

Metrics are emitted every minute via the existing statsd/MDM infrastructure.

Testing

  • Unit tests pass locally

@ArrisLee ArrisLee added the skippy pull requests raised by member of Team Skippy label Dec 3, 2025
Copy link
Collaborator

@hawkowl hawkowl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to explicitly produce these metrics. I'll follow up on Slack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review skippy pull requests raised by member of Team Skippy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants