idealista / prom2teams

prom2teams is an HTTP server built with Python that receives alert notifications from a previously configured Prometheus Alertmanager instance and forwards it to Microsoft Teams using defined connectors
Apache License 2.0
268 stars 84 forks source link

[SUPPORT] inherit labels from namespace to alerts sent to teams #346

Open yahavvidaa opened 8 months ago

yahavvidaa commented 8 months ago

Description

Hi,

Firstly, thank you all for the excellent work on the prom2teams project - you all are amazing!

I've recently been attempting to work with labels, but seem to have hit a snag. My goal is to label a namespace, and for alerts sent to prom2teams to carry that label. For instance, if a pod goes down, I'd like the alert sent to teams to include the label from the namespace of that pod.

is it possible?

yahavvidaa commented 8 months ago

@mdelagrange @Pablo-GNU @maglo @nvx