You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Display Broker and Brokerset Information in Orion UI
This update enables Orion to store and display metrics for brokers and brokersets within the Orion interface.
## Details
### Broker Class
- Introduces two new maps:
- **`rawBrokerStatus`**: Stores raw data from the metrics API call as a map of `String -> Double`. Example: `cpu_usage -> 0.22`.
- **`brokerStatus`**: Contains the keys and values that are displayed in the Orion UI. Both values are strings. Example: `"CPU Usage"` and `"22%"`.
### Brokerset Class
- Also includes two new maps:
- **`rawBrokersetStatus`**: Stores raw data after aggregating values across all brokers as a map of `String -> Double`. Example: `max_cpu_usage -> 0.22`.
- **`brokersetStatus`**: Contains the keys and values to be shown in the Orion UI. Both values are strings. Example: `"Max CPU Usage Across All Brokers"` and `"22%"`.
### BrokerMetricsSensor Class
- This class will be overridden by a sensor from the internal package.
- The sensor is intended to periodically call metrics APIs, such as the CloudWatch API, and update the `rawBrokerStatus`.
### JavaScript Changes
- Multiple JavaScript updates were made to display the information.
- The Brokersets page in the Service section will show:
- Maximum CPU usage over 7 days.
- Maximum disk usage over 7 days for all brokers.
## Testing
- The changes have been successfully tested within Pinterest.
0 commit comments