You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it seems like we can define a default message for new conditions that are introduced.
"conditions": [
{
"type": "SomeNodeProblem",
"reason": "NoProblem",
"message": "some node problem not seen in the node"
}
],
However, when rules are defined against this condition, we can only do a regex match for the logs and NPD will report the the matching log as is. In cases where we want to customize the message posted, there is no option to do this.
"rules": [
{
"type": "permanent",
"condition": "SomeNodeProblem",
"reason": "HaveProblem",
"pattern": "failed: some node problem regex log"
}
]
Is it possible to have an additional field to add to the matching log posted to by NPD? It can be a simple static message tha tis concatenated to the matching log message posted to NPD.
"rules": [
{
"type": "permanent",
"condition": "SomeNodeProblem",
"reason": "HaveProblem",
"pattern": "failed: some node problem regex log",
"message": "refer www.foo.com/docs for playbook on how to fix the issue"
}
]
Type Status Reason Message
------ ------ ------ ------
SomeNodeProblem True. HaveProblem. failed: some node problem regex log; refer www.foo.com/docs for playbook on how to fix the issue
If this request makes sense I am happy to send a pull request to integrate it.
The text was updated successfully, but these errors were encountered:
Shabirmean
changed the title
[FR] Support for adding custom information to LogMonitor Events/Conditions
[FR] Add custom information to LogMonitor Events/Conditions
Oct 23, 2024
Description
Currently it seems like we can define a default message for new conditions that are introduced.
However, when rules are defined against this condition, we can only do a regex match for the logs and NPD will report the the matching log as is. In cases where we want to customize the message posted, there is no option to do this.
Is it possible to have an additional field to add to the matching log posted to by NPD? It can be a simple static message tha tis concatenated to the matching log message posted to NPD.
If this request makes sense I am happy to send a pull request to integrate it.
The text was updated successfully, but these errors were encountered: