Thank you. This was really helpful. On Thursday, November 5, 2020 at 4:35:32 PM UTC+5:30 [email protected] wrote:
> > *"Alert relabeling ... has the same configuration format and actions as > target relabeling."* > That configuration is shown immediately above: > https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config > > You would need the "labeldrop" action. > > alert_relabel_configs: > - regex: 'exported_namespace|exported_container' > action: labeldrop > > There is also "labelkeep" which drops all labels *except* the given > pattern. However, you said "I only want the summary and description", but > those are not labels - they are annotations. You REALLY REALLY don't want > to drop all labels. For one thing, alertmanager uses the labels to > distinguish between one alert and another. You really don't want alert B > going away to resolve alert A. > > It sounds to me that what you really want is to change the alertmanager > template to simplify the E-mails it sends out - NOT to remove the labels > sent from prometheus to alertmanager. > > Google "prometheus alertmanager templates" for lots of examples how to do > that. Here's one hit: > https://prometheus.io/blog/2016/03/03/custom-alertmanager-templates/ > > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/269d5ca3-3800-4135-ac74-336cc5df20d6n%40googlegroups.com.

