-
-
Notifications
You must be signed in to change notification settings - Fork 352
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
How to create new own plugins and deploy #1877
Comments
You should consider using your python virtual environment to deploy your custom plugin. |
Thanks Skander, I'm going on with tests, I need realise when operator write a new note in alarm, in my tests don't see anything in my plugin when add new note. How can I see new note in alarm?? |
Did you manage to deloy the plugin correctly ? |
Hello Skander, Yes my plugin run find, I see pre_receive, status_changes, take_actions and deletes. Thanks and Regards. |
Hello,
Can we create new own plugins to alerta??
We are thinking create a plugin agains ticketing tool like remedy to open an update and close tickets.
We are checkin creating a file prueba.py:
import logging
from alerta.exceptions import RateLimit
from alerta.plugins import PluginBase
LOG = logging.getLogger('alerta.plugins.prueba')
class PruebaAlert(PluginBase):
We are getting this error, starting alerta in docker:
{"log":"2023-08-25 11:22:29,394 alerta.plugins[37]: [ERROR] Failed to load plugin 'prueba': 'prueba' [in /venv/lib/pyth on3.9/site-packages/alerta/utils/plugin.py:44]\n","stream":"stdout","time":"2023-08-25T11:22:29.394973708Z"}
Thanks and Regards.
The text was updated successfully, but these errors were encountered: