Here’s to hoping I am in the correct category.
I have an onprem version of prometheus that is feeding data to Pagerduty. From there I am trying to execute a custom incident action back to On Premises Process automation. In order to match the nodename in process automation to the server name in the alert, I believe I need to define a custom variable, but can’t seem to get it to work.
The message that is in Pagerduty looks like this
- alertname = AlertName
- application = AppName
- category = Cat
- creating_process_id = 724
- instance = InstanceName
- job = JobName
- location = location
- process = process
- process_id = 2576
- servername = servername
- severity = critical
The JSON payload that goes to Process Automation via the webhook only has the server name listed in the summary sections. and they look like this:
“summary”: “[iNCIDENT#] [FIRING:1] Alertname [INSTANCENAME] (Better description of said alert that has the Servername in it here and Ends with Servername critical)”,
Wondering if someone could point me in the right direction of creating a variable that will be fed over to rundeck so I can match the node names.
Appreciate it in advance,