cachet-url-monitor icon indicating copy to clipboard operation
cachet-url-monitor copied to clipboard

passing environment variable in the header.

Open nilesh2501 opened this issue 5 years ago • 1 comments
trafficstars

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.

nilesh2501 avatar May 11 '20 09:05 nilesh2501

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.

mtakaki avatar May 20 '20 01:05 mtakaki