Active IQ Unified Manager Discussions

Harvest docker image

J_curl
11,215 Views

Any thoughts on releasing a docker image for harvest?  I started playing with docker today, and easily got graphite, grafana and harvest (rolled my own image) running as a package.  Would make installs so much easier

 

 

9 REPLIES 9

J_curl
11,141 Views

I am running Graphite and Grafana using hopsoft/graphite-statsd and grafana/grafana:3.0.4 Docker images.  Quick and easy.  Here is what I did to get harvest running in Docker.  I can write up a complete guide if anyone is intersted

 

 

Here is a Dockerfile i used to create a harvest image.  I have about 10 hours of experience with Docker, so I am sure there are better ways but this is working for me.

 

 

FROM alpine:latest
RUN apk update && apk add perl perl-json perl-libwww perl-xml-parser perl-lwp-protocol-https unzip
ADD netapp-harvest /opt/netapp-harvest
WORKDIR /opt/netapp-harvest

You have to download netapp-harvest,  add the perl modules from SDK (as per the Harvest install guide), and populate your netapp-harvest.conf file.  This will make a complete netapp-harvest directory that will get added to the image.

 

 

Then create this Dockerfile and run 

docker build -t <name>/harvest:<version tag> .

 

From here you can spin up workers as containers by running:

 

docker run -d\
 --name harvest-<name of your poller>\
--restart=always\ jpeake/harvest:0.1\ ./netapp-worker -poller <name of poller in .conf file>

 

I am still running my production Harvest the old fashioned way, but find this really interesting, and super easy to spin up at our various sites around the world.  Put all pollers in the conf file, and call up workers as needed per site.  

asulliva
11,138 Views

Hello @J_curl,

 

If you want something immediate, Dan Burkland wrote a blog post a while ago on creating a single container with all of the Harvest + Grafana + Graphite components.  I have an internal version using Docker Compose which should be ready to be released in the next few days now that DockerCon is over.  I'll be publishing everything to the netapp.github.io site, so be sure to keep an eye out there (I'll try to remember to post here as well).

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

J_curl
11,127 Views

Thanks!  I must be living under a rock, I never knew this netapp.github.io site existed. looks like it contains everything I need for now

markymarcc
10,723 Views

I would be interesting in the complete guide for netapp-harvest in docker if your wouldn't mind

thanks

yannb
10,651 Views

Note that there is a virtual appliance sort of available (not public yet), but I can see the advantage of a docker image as well

BrianTrevisa
10,517 Views

I am also interested in a vm build or virtual appliance for Harvest. Did you ever locate one?

 

brian.trevisa@atkinsgloal.com

yannb
10,504 Views
Can you double check your email? I think there's a typo

BrianTrevisa
9,298 Views

I just returned to this site after about a year. There was a typo in my email. It is brian.trevisa@atkinsglobal.com. I am  still intested in workign with NetApp Harvest. Has there been much improvements with using grafana / Harfest togeather. I am trying one persons solution called NAbox. It is a virtual machin. I am impressed. I would like to know if you know if anyone has taken it any further. Perhaps adding alerting. Thant would be fantastic. 

yannb
9,266 Views
NAbox is the virtual appliance I was talking about yes, I’m glad you found it.
Alerting is a different challenge because grafana can’t really do it (alerting in grafana doesn’t work with template variables, which harvest dashboards are using a lot) and it would be a lot of work to try to implement it manually.
Public