Skip to content

Add named collection presets (closes #454)#463

Merged
erikdarlingdata merged 1 commit intodevfrom
feature/collection-presets
Mar 7, 2026
Merged

Add named collection presets (closes #454)#463
erikdarlingdata merged 1 commit intodevfrom
feature/collection-presets

Conversation

@erikdarlingdata
Copy link
Owner

Summary

  • New config.apply_collection_preset stored proc — applies Aggressive, Balanced, or Low-Impact frequency profiles to all 29 scheduled collectors in one operation
  • Preset ComboBox added to Dashboard's Collector Schedules window and Lite's Settings window
  • Auto-detects active preset by comparing current intervals; shows "Custom" if manually edited
  • Drops three legacy profile procs replaced by the unified preset approach

Closes #454

Preset intervals

Tier Core collectors Heavy collectors Infrequent
Aggressive 1 min 1 min 2 min
Balanced 1 min (default) 2 min 5 min
Low-Impact 5 min 10 min 30 min

Test plan

  • SQL: All three presets tested on sql2022 (29 collectors updated each)
  • SQL: Invalid preset name returns proper error
  • SQL: Legacy procs confirmed dropped
  • Dashboard: Builds clean
  • Lite: Builds clean
  • Dashboard: Open schedule window, verify preset detection and apply
  • Lite: Open settings, verify preset detection and apply

🤖 Generated with Claude Code

 #454

One-click profile switching for all collector frequencies, requested in #454.

SQL: New config.apply_collection_preset proc replaces three legacy profile
procs. Uses table variable + UPDATE JOIN for single-operation preset apply.
Drops config.enable_realtime_monitoring, enable_consulting_analysis,
enable_baseline_monitoring.

Dashboard: Preset ComboBox in CollectorScheduleWindow with auto-detection
of active preset by comparing current intervals against known definitions.
Confirmation dialog before applying. Manual edits switch to Custom.

Lite: Same UI pattern in SettingsWindow. Preset definitions and
ApplyPreset/GetActivePreset methods on ScheduleManager.

Tested all three presets on sql2022 (29 collectors each). Both apps build clean.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit f71bd58 into dev Mar 7, 2026
3 of 7 checks passed
erikdarlingdata added a commit that referenced this pull request Mar 7, 2026
- Remove 3 dropped legacy preset procs (enable_realtime/consulting/baseline)
- Add config.apply_collection_preset (their replacement from PR #463)
- Add 2 new collect procs (database_size_stats, server_properties)
- Add 4 new FinOps report views
- Bump minimum collect table count from 19 to 21

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
erikdarlingdata added a commit that referenced this pull request Mar 7, 2026
- Remove 3 dropped legacy preset procs (enable_realtime/consulting/baseline)
- Add config.apply_collection_preset (their replacement from PR #463)
- Add 2 new collect procs (database_size_stats, server_properties)
- Add 4 new FinOps report views
- Bump minimum collect table count from 19 to 21

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant