This folder contains a script for configuring and initializing Kapacitor on an GCP Compute Engine server. This script has been tested on the following operating systems:
- Ubuntu 18.04
There is a good chance it will work on other flavors of Debian, CentOS, and RHEL as well.
This script assumes you installed it, plus all of its dependencies (including Kapacitor itself), using the install-kapacitor module.
This will:
-
Fill out the templated configuration file with user supplied values.
-
Start Kapacitor on the machine.
We recommend using the run-kapacitor
command as part of the instance Startup Script, so that it executes when the Compute Instance is first booting.
See the examples folder for fully-working sample code.
Run run-kapacitor --help
to see all available arguments.
Usage: run-kapacitor [options]
This script can be used to configure and initialize Kapacitor. This script has been tested with Ubuntu 18.04.
Options:
--auto-fill Search the Kapacitor config file for KEY and replace it with VALUE. May be repeated.
Example:
run-kapacitor --auto-fill '<__HOST_NAME__>=0.0.0.0' --auto-fill '<__INFLUXDB_URL__>=http://localhost:8086'
Some tips and tricks for debugging issues with your Kapacitor agent:
- Use
systemctl status kapacitor
to see if systemd thinks the Kapacitor process is running.