Skip to content

Add --label-key-state to override the exit state#118

Merged
martialblog merged 1 commit intomainfrom
feature/state-label
Feb 12, 2026
Merged

Add --label-key-state to override the exit state#118
martialblog merged 1 commit intomainfrom
feature/state-label

Conversation

@martialblog
Copy link
Member

@martialblog martialblog commented Feb 11, 2026

If this flag is set the plugin looks for warning/critical/ok in the label 'icingaState'

  -S, --label-key-state string      
Use the given AlertRule label to override the exit state for firing alerts.
If this flag is set the plugin looks for warning/critical/ok in the provided label key

See #112

@martialblog martialblog self-assigned this Feb 11, 2026
@martialblog martialblog added this to the v0.6.0 milestone Feb 11, 2026
@martialblog
Copy link
Member Author

martialblog commented Feb 12, 2026

I'm not yet sure if a single flag is enough, we could also for example just say if the -K, --state-labels-key is set, then it is used to override the exit state

@martialblog martialblog changed the title Add --use-state-labels to override the exit state Add --label-key-state to override the exit state Feb 12, 2026
@martialblog martialblog merged commit 8039c77 into main Feb 12, 2026
2 checks passed
@martialblog martialblog deleted the feature/state-label branch February 12, 2026 13:30
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

Comments