grafana 8.0 新的报警机制

grafana 最近发布了8.0 功能还是很不错的,以下是关于8.0 报警运行的配置说明,具体使用可以参考官方文档

docker-compose 文件

version: "2.2"
services:
  grafana:
    image: grafana/grafana
    environment: 
    - "GF_FEATURE_TOGGLES_ENABLE=ngalert" # 主要是此选项,开启特性,默认没开启
    ports:
      - "3000:3000"
  prometheus:
    image: prom/prometheus
    volumes:
      - "./prometheus.yml:/etc/prometheus/prometheus.yml"
    ports:
      - "9090:9090"

参考界面


参考资料

https://grafana.com/docs/grafana/latest/administration/configuration/#feature_toggles
https://grafana.com/docs/grafana/latest/alerting/unified-alerting/opt-in/

原文地址:https://www.cnblogs.com/rongfengliang/p/15022301.html