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

Add PROM2TEAMS_TEMPLATEPATH environment variable #308

Closed ondrejlinha closed 1 year ago

ondrejlinha commented 1 year ago

Requirements

Description of the Change

Add PROM2TEAMS_TEMPLATEPATH environment variable to set the template path

Benefits

Set the template path via the env variable

Possible Drawbacks

None

Applicable Issues

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

EvertonSA commented 1 year ago

@santi-eidu can you reopen and merge this?

its seems impossible to use template on provider docker without this

santi-eidu commented 1 year ago

@EvertonSA

@santi-eidu can you reopen and merge this?

its seems impossible to use template on provider docker without this

We are reviewing this, you can add the configuration file as a volumen and change the template there for now.

EvertonSA commented 1 year ago

my use case includes many containers in a single pod, and I want every container to contain a different template, so paths will need to be different.

maybe I'm doing it wrong. I could have a separate deployment for each, but I don't see benefits of having 1 deployment for each.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.