How do I modify Harvest templates included from Amazon's cloud formation template #2648
cgrinds
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
These instructions work with containers installed by Monitoring FSx for ONTAP file systems using Harvest and Grafana.
SSH
After deploying the CloudFormation stack, ssh into the Amazon EC2 instance that your Harvest and Grafana clients are running on and switch to the directory that contains your
manage_harvest.yml
Ansible file.Copy conf
Verify that the docker containers were successfully started using the following command.
You should see something like this - we are interested in the Harvest pollers which have names like
harvest_cluster-1
We're going to copy the
conf
directory from theharvest_cluster-1
container to the local directory.Replace
harvest_cluster-1
with the name of one of your Harvest container's included in thedocker ps
command above.docker cp harvest_cluster-1:/opt/harvest/conf .
Make edits you want to any of the templates included in the now-local
conf
directory.Modify volume mounts
We need to edit the
manage_harvest.yml
and add a volume mount to the Harvest containers so they will use our local templates.At line 199, under the
volumes:
section add- ./conf:/opt/harvest/conf
At line 94 add, under the
volumes:
section add- ./conf:/opt/harvest/conf
manage_harvest.yml with edits above made
Restart containers
The containers need to be restarted to use the template changes.
Beta Was this translation helpful? Give feedback.
All reactions