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
Modernize searchAndIndexStoreSizePanel using signal framework and remove defaults
Updated the store_size_bytes signal and searchAndIndexStoreSizePanel to match
legacy configuration following .clauderc guidelines.
Signal changes (opensearch-mixin/signals/indexing.libsonnet:232-246):
- Converted from type: 'raw' to type: 'gauge' (this is a gauge metric)
- Added framework properties: aggLevel: 'group', aggFunction: 'avg'
- Changed selector from %(queriesSelector)s to %(queriesSelectorGroupOnly)s
- Added index=~"$index" filter to match legacy behavior
- Added legendCustomTemplate: '{{index}}'
- Added aggKeepLabels: ['index'] to include index in aggregation
- Simplified expression to let framework handle aggregation automatically
Panel changes (opensearch-mixin/panels.libsonnet:962-979):
- Added intervalFactor(2) to target (was missing)
- Removed all default values: color mode, axis config, legend, tooltip options
- Added field override to hide series with all-zero values from legend/tooltip
- Reduced from 38 lines to 18 lines while maintaining identical functionality
Verified by comparing generated JSON with legacy panel - all significant
fields match, only acceptable differences (default values) remain.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments