feat: Harvest should load ASAr2 templates when monitoring ASAr2 clusters#3871
Merged
rahulguptajss merged 6 commits intomainfrom Sep 4, 2025
Merged
feat: Harvest should load ASAr2 templates when monitoring ASAr2 clusters#3871rahulguptajss merged 6 commits intomainfrom
rahulguptajss merged 6 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for ASAr2 templates in the Harvest monitoring system. When monitoring ASAr2 clusters, Harvest will now load ASAr2-specific templates from a dedicated directory structure.
- Introduces model constants and remote detection logic for ASAr2 vs CDOT systems
- Creates a separate ASAr2 template directory structure with default configuration
- Updates template loading logic to prioritize ASAr2 templates when monitoring ASAr2 clusters
Reviewed Changes
Copilot reviewed 13 out of 14 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/errs/errors.go | Adds new error constant for template matching failures |
| pkg/conf/remotes.go | Introduces model constants and ASAr2 detection logic with NewRemote constructor |
| pkg/api/ontapi/zapi/system.go | Updates to use new CDOT constant instead of hardcoded string |
| conf/rest/default.yaml | Removes ASAr2 templates from main default configuration |
| conf/rest/asar2/default.yaml | Creates new ASAr2-specific default template configuration |
| cmd/tools/rest/client.go | Refactors cluster info parsing to use new NewRemote constructor |
| cmd/poller/poller.go | Adds ASAr2 template injection logic and improved logging |
| cmd/poller/collector/helpers.go | Updates template loading to support multiple models and improved error handling |
| cmd/collectors/zapi/collector/zapi.go | Updates to use model slice parameter for template loading |
| cmd/collectors/storagegrid/storagegrid.go | Updates to use model slice parameter for template loading |
| cmd/collectors/rest/templating.go | Adds ASAr2-specific template loading logic |
| cmd/collectors/rest/rest.go | Updates to use CDOT constant |
| cmd/collectors/cisco/cisco.go | Updates to use model slice parameter for template loading |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Contributor
|
Changes look good.
|
Contributor
|
ignore the comment as my custom.yaml file was in 9.16.0 folder. It's working as expected after moved to proper place. |
Hardikl
previously approved these changes
Sep 3, 2025
rahulguptajss
approved these changes
Sep 4, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.