Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1 KB

README.md

File metadata and controls

24 lines (17 loc) · 1 KB

PulsewayDockerContainerMonitor

A simple workaround to allow Pulseway to monitor Docker containers by using a generic systemd service

To use this solution properly:

  1. Copy one of the scripts to /opt/ (or other location if you want) and give it permission of exection (chmod +x script)
  2. Copy the special service file ([email protected]) to one of the valid systemd locations (e.g. /lib/systemd/system)
  3. Enable the service for each specific Docker container you want to monitor using the following notation:
$ systemctl enable pulseway-docker@nameofcontainer
$ systemctl start pulseway-docker@nameofcontainer
  1. Include the entry in the Pulseway XML config file as a systemd service inside of the section MonitoredServices:
<MonitoredServices>
  <Service Name="[email protected]" DisplayName="Container Name" IsDaemon="true" DaemonType="SYSTEMD" Path="" StartParameters="" CanBeStopped="false" Enabled="true"/>
</MonitoredServices>

  1. Restart the Pulseway agent.