Kapacitor configuration file problem

all, I’m a newbie to kapacitor, and I’ve installed kapacitor on a docker container and set to run always so the point is am unable to make any changes in configuration file cause I assume it is takin the default configuration from kapacitor itself, but I wanted to do some configuration changes and run kapacitor with those configurations how do I go about that your help will be much appreciated!!! Thanks

@Praphooldhole You should mount a config on the host into the container at the location that kapacitor expects the config to be: /etc/kapacitor/kapacitor.conf. Something like this:

# generate new config
$ kapacitord config > kapacitor.conf
# modify new config
$ vi kapacitor.conf
# run docker container using config
$ docker run -it -v $(pwd)/kapacitor.conf:/etc/kapacitor/kapacitor.conf kapacitor:alpine