Post

Today I spent an hour figuring out a good way to throttle alerts for Central Logging after I got TLS expiry alerts every 1m. I ended up using an alert tag and tag prefix duration map to specify max frequency per alert type. Is there a better way to do this?

0 reposts2 likes

``` // AlertTagDurations is a map of tag prefixes to durations to throttle alerts. var AlertTagDurations = map[string]time.Duration{ "website-monitor-tls-expires-": 24 * time.Hour, } ```