Good evening,
I'm struggling to integrate with PagerDuty for alerting on volume usage. I have attempted to use the example (Alert me via PagerDuty when the free space of a volume is less than 5%) provided by PagerDuty, however when alerting on volumes, I see a 400 error come back from the PD API Endpoint. The routing key is sent blank, and I do not believe the dedupe key is correct (not sure how that should be formatted at all.
I've been really messing with this quite a bit (I have not found any good examples online). I know this is hot garbage as-is, but does anyone have working code they can suggest?
{
"payload": {
"summary": "Free Space is CRITICAL on volume ${N=SwisEntity;M=Node.SysName}",
"source": "${FullName} Free Space",
"severity": "critical",
"component": "${N=SwisEntity;M=DeviceId}",
"custom_details": {
"Volume": "${FullName}",
"Total Size": "${VolumeSize}",
"Free Space": "${VolumeSpaceAvailable}",
"Percent Used": ${VolumePercentUsed}"
}
},
"routing_key": "${SQL: SELECT Volume.PDIntegrationKey FROM Nodes WHERE VolumeID='${VolumeID}'}",
"dedup_key": "${FullName}_${N=SwisEntity;M=VolumePercentAvailable}_memory",
"event_action": "trigger",
"client": "SolarWinds Orion",
"client_url": "${N=SwisEntity;M=DetailsUrl}"
}