mtakaki / cachet-url-monitor

URL monitor plugin for cachethq.io
MIT License
124 stars 48 forks source link

passing environment variable in the header. #98

Open nilesh2501 opened 4 years ago

nilesh2501 commented 4 years ago

Hi all,

I would like to know the flow for configuration.py with respect to scheduler.py as in how the configuration.py gets loaded. I would also like to know as to where the configuration is stored? How can I make DD-API-KEY' and 'DD-APPLICATION-KEY' as environment variables that can be called into monitor.yaml under header section for URL monitoring? PS : DD-API-KEY' and 'DD-APPLICATION-KEY' are the environment variables I am trying to create and call in the YAML file.

mtakaki commented 4 years ago

Unfortunately it currently doesn't support setting headers through environment variables. It would require a refactoring to get this working. I'll see what I can do about it, but some help would be appreciated.