monitor

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 0 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

使用方法:

从环境变量中根据规则解析出 logrus 日志前缀 与 eventbox dest 的映射关系。

目前支持 DINGDING Webhook,通过 logrus 日志前缀 查找对应的钉钉告警地址,并发送告警。
通过环境变量解析日志前缀的规则如下:
1. DINGDING                   默认规则,前缀为 [alert]
2. DINGDING_[-._a-zA-Z0-9]*   DINGDING_ 后的字符串左右加上 [] 即为前缀。假设 key 为 DINGDING_error,则前缀为 [error]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL