Does promtail have an annotations function? like prometheus

hi all i have a question
Does promtail have an annotations function? like prometheus
Although there is a label function, it seems that there is no annotation function.

thx

ex) prometheus alert_rule

groups:
- name: Instances
  rules:
  - alert: InstanceDown
    expr: up == 0
    for: 5m
    labels:
      severity: page
    # Prometheus templates apply here in the annotation and label fields of the alert.
    **annotations:**
      description: '{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes.'
      summary: 'Instance {{ $labels.instance }} down'

Hi @tnrms1385,

as far as I know, Promtail only collects logs. For alerting with Loki, there is a separate service called Ruler I think. The documentation is here.

Looks very similar to Prometheus rules.