Why does Prometheus container exits after configure rule and restart

Ohh sry…

This is my instance_up_rule.yml file

groups:

  • name: instance_down_alert_rule
    rules:

    To give a warning when all Vms and application services are down for 1 min

    • alert: InstanceDown
      expr: up == 0
      for: 1m
      labels:
      severity: critical
      annotations:
      summary: “Instance [{{$labels.instance}}] down”
      d:wqescription: “[{{$labels.instance}}] of job [{{$labels.job}}] has been down for more than 1 minute.”