{"id":1958,"date":"2020-06-19T00:24:58","date_gmt":"2020-06-19T03:24:58","guid":{"rendered":"https:\/\/www.fonz.net\/blog\/?p=1958"},"modified":"2020-06-20T19:41:07","modified_gmt":"2020-06-20T22:41:07","slug":"datadog-v7-on-raspberry-pi2","status":"publish","type":"post","link":"https:\/\/www.fonz.net\/blog\/archives\/2020\/06\/19\/datadog-v7-on-raspberry-pi2\/","title":{"rendered":"Datadog v7 on Raspberry PI2"},"content":{"rendered":"\n<p>Working at <a href=\"https:\/\/www.datadoghq.com\/\">Datadog<\/a> I like to dog food our products on my personal projects at home. Having recently upgraded our home WiFi setup (more on that another time) I thought it&#8217;d be fun to try out our new <a href=\"https:\/\/www.datadoghq.com\/blog\/monitor-snmp-with-datadog\/\">network monitoring<\/a> and <a href=\"https:\/\/www.datadoghq.com\/blog\/monitor-snmp-with-datadog\/\">SNMP autodiscovery<\/a> features available in Datadog Agent 6.x and 7.x. And since I had a spare Raspberry Pi2+ laying around, that felt like the right place to put it. <\/p>\n\n\n\n<p><strong>Too many ARMs<\/strong><\/p>\n\n\n\n<p>Unfortunately, while <a href=\"https:\/\/www.datadoghq.com\/blog\/datadog-arm-agent\/\">Datadog has ARM builds<\/a> available they focus on ARMv8 and Amazon Web Services&#8217; various <a href=\"https:\/\/aws.amazon.com\/ec2\/graviton\/\">Graviton<\/a> based instances. Raspberry Pi2 models are armhf, which are a whole different beast. Luckily <a href=\"https:\/\/github.com\/DataDog\/datadog-agent\">datadog-agent<\/a> is open source, so I set off to build my own unofficial packages and thought I&#8217;d share the results here to save you the time (about half a day once you have the build env going).   As of writing the current available version is 7.20.2, but I&#8217;ll try to update these from time to time.<\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>APT Repo:<\/strong>  deb http:\/\/apt.fonz.net datadog-arm main<\/p>\n\n\n\n<p><strong>Building it yourself<\/strong><\/p>\n\n\n\n<p>Want to build it yourself?  A <a href=\"https:\/\/github.com\/irabinovitch\/datadog-agent-buildimages\/tree\/master\/deb-armhf\">datadog-agent-buildimages<\/a> container is available on github for deb-armf.  Alternatively, you can save time (clang, cmake, etc take a few days on an RPi2) and use the build images I pushed to Dockerhub: <a href=\"https:\/\/hub.docker.com\/r\/irabinovitch\/datadog-agent-buildimages-armhf\">irabinovitch\/datadog-agent-buildimages-armhf<\/a><\/p>\n\n\n\n<ol><li>Clone <a href=\"https:\/\/github.com\/datadog\/datadog-agent\/\">datadog-agent<\/a> on your Pi<\/li><li>From the repo directory run the build container:<br \/><code>docker run -v \"$PWD:\/go\/src\/github.com\/DataDog\/datadog-agent\" -v \"\/tmp\/omnibus:\/omnibus\" --workdir=\/go\/src\/github.com\/DataDog\/datadog-agent irabinovitch\/datadog-agent-buildimages-armhf:latest inv -e agent.omnibus-build --base-dir=\/omnibus --gem-path=\/gem<\/code><\/li><li>Wait 12~ hours.<\/li><li>Out pop your packages in datadog-agent\/omnibus\/pkg\/<\/li><\/ol>\n\n\n\n<p><strong>Happy Monitoring<\/strong><\/p>\n\n\n\n<p>Hope you find these helpful.  If you end up doing <a href=\"https:\/\/www.datadoghq.com\/blog\/datadog-in-the-wild-5-fun-projects\/\">something cool<\/a> with it, drop me a line.  Whether you&#8217;re monitoring a kegerator, your solar panels or just your home router, I always enjoy hearing about <a href=\"https:\/\/www.datadoghq.com\/blog\/datadog-in-the-wild-5-fun-projects\/\">unique use cases<\/a> for Datadog at home.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Working at Datadog I like to dog food our products on my personal projects at home. Having recently upgraded our home WiFi setup (more on that another time) I thought it&#8217;d be fun to try out our new network monitoring and SNMP autodiscovery features available in Datadog Agent 6.x and 7.x. And since I had [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.fonz.net\/blog\/wp-json\/wp\/v2\/posts\/1958"}],"collection":[{"href":"https:\/\/www.fonz.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fonz.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fonz.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fonz.net\/blog\/wp-json\/wp\/v2\/comments?post=1958"}],"version-history":[{"count":6,"href":"https:\/\/www.fonz.net\/blog\/wp-json\/wp\/v2\/posts\/1958\/revisions"}],"predecessor-version":[{"id":1965,"href":"https:\/\/www.fonz.net\/blog\/wp-json\/wp\/v2\/posts\/1958\/revisions\/1965"}],"wp:attachment":[{"href":"https:\/\/www.fonz.net\/blog\/wp-json\/wp\/v2\/media?parent=1958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fonz.net\/blog\/wp-json\/wp\/v2\/categories?post=1958"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fonz.net\/blog\/wp-json\/wp\/v2\/tags?post=1958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}