Trigger python script #338
-
Hello, we would like to add gatus into our ecosystem, and we are wondering if there is a possibility to trigger a script from gatus, which outputs some data, and based on the data resulted from the script to add conditions in gatus. Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Similar, but for alerting: #118 There's still some work needed before we can even start working on this, but we're not too far. Still, I prioritize issues based on what I want to work on (sometimes I just feel like tackling a specific problem), and based on the number of 👍 on existing isssues. As the issue I've mentioned doesn't have that many 👍, I don't think I'll be working on this very soon. I could have sworn there was an issue for providing an API to manually insert an endpoint's status, but it appears there isn't. That would be the eventual solution to your problem - you could just have a python script run on a cronjob that would do its thing, and then call Gatus' endpoint to update the endpoint. |
Beta Was this translation helpful? Give feedback.
-
This is currently "kind of" possible by using external endpoints to push status instead of having Gatus be the one to run the script. See By default, the configuration file is expected to be at config/config.yaml. You can specify a custom path by setting the GATUS_CONFIG_PATH environment variable. If GATUS_CONFIG_PATH points to a directory, all *.yaml and *.yml files inside said directory and its subdirectories are merged like so:
|
Beta Was this translation helpful? Give feedback.
This is currently "kind of" possible by using external endpoints to push status instead of having Gatus be the one to run the script.
See By default, the configuration file is expected to be at config/config.yaml.
You can specify a custom path by setting the GATUS_CONFIG_PATH environment variable.
If GATUS_CONFIG_PATH points to a directory, all *.yaml and *.yml files inside said directory and its subdirectories are merged like so: