Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Proposal] Allow empty connectors in config file #19

Closed
yongzhang opened this issue Aug 10, 2018 · 1 comment
Closed

[Proposal] Allow empty connectors in config file #19

yongzhang opened this issue Aug 10, 2018 · 1 comment

Comments

@yongzhang
Copy link

Hi,

I tested prometheus-msteams these days, it is really a wonderful tool and better than the one wrote in python introduced in the official link I think.
Now I'm managing connectors with the config file by saltstack, it will dynamically create connectors from pillar values. But if no connectors defined, the service will be failed to start, looks like prometheus-msteams needs at least one connectors to start, so what I have done is this:

connectors:
- dummy: "Used for empty connectors"

By doing this, if I have no actual connectors defined in my pillar, at least the service can be running.
Any thoughts?

@bzon
Copy link
Collaborator

bzon commented Aug 14, 2018

@hiscal2015 currently, the server does not support hot reload, "a way of reloading the variables in memory if the config file changes".

I'll recommend to just always restart the server or the container when Saltstack has changed your config file.

@bzon bzon closed this as completed Aug 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants