docs: Document brace syntax for dimension names with spaces in alert#22984
Draft
nedi-app[bot] wants to merge 1 commit into
Draft
docs: Document brace syntax for dimension names with spaces in alert#22984nedi-app[bot] wants to merge 1 commit into
nedi-app[bot] wants to merge 1 commit into
Conversation
… of src/health/REFERENCE.md explaining that dimension names containing spaces must be referenced with the ${...} brace form in calc/warn/crit expressions, with a concrete ${Has Number} example and a cross-reference to the Prometheus section that uses the same brace rule for hyphenated chart IDs.
|
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.



Summary
Document brace syntax for dimension names with spaces in alert expressions. Files changed: src/health/REFERENCE.md.
User Request
How to use a dimension as a variable in an alert if the dimension has spaces. Eg: Has Number..
Prompt (English)
How to reference a dimension with spaces (e.g. "Has Number..") as a variable in a Netdata alert expression
Reason for Change
This change applies the specific user request using repository-truth evidence from the audit execution workspace.
Summary by cubic
Documented how to reference dimensions with spaces in alert expressions using the
${...}brace syntax. Added a${Has Number}example for calc/warn/crit and noted that$Has Numberwon’t resolve; also mentions the same rule for hyphenated names (e.g., Prometheus chart IDs).Written for commit 5ffcfdc. Summary will update on new commits.