I want to notify when a log type error occurs and send its log content, will it be possible to add it in the labels or annotations of the loki rules and send it to alertmanager?
This would be my test rule, but I still don’t see how to add the content of the registry
groups:
- name: rate-alerting
rules:
- alert: testRule
expr: |
sum by (message)
(rate({app="_development"} | json | level = "error"[1m] ))
> 0.02
for: 1m
labels:
severity:...
team: ...
category: ...
annotations:
title: "title Alert"
description: "content log"
I would like to be able to obtain the content of the log to be able to notify it