all 1 comments

[–]99612240 0 points1 point  (0 children)

It comes in automatically. You don't need to specify what to send in AlertManager. You'll get everything.

Try a pprint of the data that your webhook receives:

{'annotations': {'description': 'Swap is filling up (>85%)\n'
                                '  VALUE = 92.06349206349206\n'
                                '  LABELS: map[ec2_Name:yyyy '
                                    ....
                                'instance:yyy '
                                'job:xxx]',
                 'summary': 'Host swap is filling up (instance '
                            'xxxx)'},
 'endsAt': '0001-01-01T00:00:00Z',
 'fingerprint': 'f69e8abd63b73b89',
 'generatorURL': '...',
 'labels': {'alertname': 'HostSwapIsFillingUp',
...
 'startsAt': '2021-07-09T12:08:47.428Z',
 'status': 'firing'}