This article explains about how to create Custom Payload in Instana.
The Objective is to create Custom Payload. By doing this whenever there is an alert send from the Instana to any alert Channels, the data could contain what is mentioned in the Custom Payload as well.
This helps the Instana to send additional info along with the alert data to the alert channels.
The custom payload would look like this. Look at the section customPayloads
{
"details": {
"containerNames": [],
"customPayloads": {
"custom:NodeAlias": [
"ilender-creditscore-66d5886bd9-vl2xk"
]
}
},
"deduplicationKey": "someId",
"sender": {
"name": "Instana",
"displayName": "Instana Server",
"sourceId": "someId",
"type": "Instana"
},
"resource": {
"sourceId": "someId",
"type": "JVM",
"displayName": "test",
"hostname": "test.fqdn",
"name": "test"
},
"severity": "Warning",
"summary": "Garbage Collection Activity High (11%)",
"type": {
"eventType": "JVM"
}
}
Now all the alerts send from this Instana would have Kubernetes Pod Name inside the alert data.
"customPayloads": {
"custom:NodeAlias": [
"ilender-creditscore-66d5886bd9-vl2xk"
]
}
Custom Payload is created here.