Skip to content

Change perfdata output for alert subcheck to be alert name and status - #153

Draft
martialblog wants to merge 2 commits into
mainfrom
feature/alert-perfdata
Draft

martialblog wants to merge 2 commits into
mainfrom
feature/alert-perfdata

Conversation

@martialblog

Copy link
Copy Markdown
Member

Fixes #148

@martialblog martialblog self-assigned this Nov 12, 2026
@martialblog martialblog added this to the v0.10.0 milestone Nov 12, 2026
Comment thread cmd/alert.go
// Set the alert in the internal Type to generate the output
rl.Alert = alert
sc.SetOutput(rl.GetOutput())
sc.AddPerfdata(&check.Perfdata{Label: rl.AlertingRule.Name, Value: int(rlStatus)})

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This label for the perfdata is not unique.

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.

Return alert status as perfdata in alert subcheck

1 participant