arachnys / cabot

Self-hosted, easily-deployable monitoring and alerts service - like a lightweight PagerDuty
MIT License
5.59k stars 593 forks source link

Installing Plugins In Docker #621

Open meowingtons opened 6 years ago

meowingtons commented 6 years ago

What is the best way to install alerting/check plugins in the Docker container? Is this even possible? I see a few different issues where people mention using pip to install them - just not sure how that would work in a container.

DJM0 commented 6 years ago

Did you ever figure this out @meowingtons?

meowingtons commented 5 years ago

@davidmaitland sorry for the late response, no. Ended up just installing on a VM and doing it that way.

DJM0 commented 5 years ago

@meowingtons thanks. I ended up creating my own docker image just to run the needed pip install:

FROM cabotapp/cabot:0.11.12

RUN pip install cabot_alert_telegram
whysthatso commented 5 years ago

if i could x-post this: https://github.com/cabotapp/docker-cabot/issues/26

@davidmaitland i'm essentially doing the same thing, but ran into this error:

ImportError: No module named  cabot_alert_telegram

i fear that something in my process (described in the above issue) might be wrong, but i just cannot figure out what.

whysthatso commented 5 years ago

i actually had a whitespace in my env var. make sure your list looks something like this, no whitespace between: CABOT_PLUGINS_ENABLED=cabot_alert_email,cabot_alert_telegram,cabot_alert_webhook,cabot_check_sslcert,cabot_check_ping