Skip to content

Conversation

@ilyam8
Copy link
Member

@ilyam8 ilyam8 commented Dec 26, 2025

Summary
Test Plan
Additional Information
For users: How does this change affect me?

Summary by cubic

Updated the go.d vnodes config schema to allow labels with arbitrary keys and string values, fixing validation failures in dynamic config.

  • Bug Fixes
    • Added additionalProperties: { type: "string" } to the labels field in config_schema.json to accept any label keys with string values.

Written for commit 80ad3a7. Summary will update automatically on new commits.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds the additionalProperties constraint to the labels field in the virtual node configuration schema to properly validate that label values must be strings. This aligns the JSON schema with the Go code implementation (map[string]string) and follows the established pattern used in other collectors throughout the codebase.

Key Changes:

  • Added additionalProperties with type: "string" constraint to the labels field schema

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ilyam8 ilyam8 enabled auto-merge (squash) December 26, 2025 07:57
@ilyam8 ilyam8 merged commit 22ab245 into netdata:master Dec 26, 2025
121 checks passed
@ilyam8 ilyam8 deleted the fix-go.d-vnode-dyncfg-labels branch December 26, 2025 09:08
stelfrag pushed a commit to stelfrag/netdata that referenced this pull request Jan 9, 2026
stelfrag pushed a commit to stelfrag/netdata that referenced this pull request Jan 9, 2026
@stelfrag stelfrag mentioned this pull request Jan 9, 2026
Ferroin pushed a commit that referenced this pull request Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/collectors Everything related to data collection area/go collectors/go.d

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants