Sample alert from Prometheus

Snapshot of the entity when an event occurs in Prometheus.

Sample alert sent from Prometheus

The sample alert becomes available after you generate the webhook.

{ 
   "receiver":"web\\.hook", 
   "status":"firing", 
   "alerts":[ 
      { 
         "status":"firing", 
         "labels":{ 
            "alertname":"InstanceDown", 
            "group":"secopslab", 
            "instance":"ip-xxx-xx-x-xx.us-east-2.compute.internal:9100", 
            "job":"linux_lab", 
            "monitor":"codelab-monitor", 
            "severity":"warning",
            "metricName":"cpu usage",
            "resource":"test",
            "type":"test",
         }, 
         "annotations":{ 
            "description":"[ALERTING]: Sample Alert", 
            "summary":"Instance ip-xxx-xx-x-xx.us-east-2.compute.internal:9100 down" 
         }, 
         "startsAt":"2021-08-19T05:29:20.662Z", 
         "endsAt":"0001-01-01T00:00:00Z", 
         "generatorURL":"http://example.com", 
         "fingerprint":"xxxxxxxxxxxxx" 
      } 
   ], 
   "groupLabels":{ 
       
   }, 
   "commonLabels":{ 
      "alertname":"InstanceDown", 
      "group":"secopslab", 
      "monitor":"codelab-monitor", 
      "severity":"warning" 
   }, 
   "commonAnnotations":{ 
       
   }, 
   "externalURL":"http://example.com", 
   "version":"4", 
   "groupKey":"{}:{}", 
   "truncatedAlerts":0 
} 
If Metric Name, Type, Resource, and Node needs to be mapped to an alert, you need to provide that information under labels in the payload as given in the sample payload.
Payload labels Alert fields
metricName Metric Name
resource Resource
type Type
instance Node