{"id":440,"date":"2018-10-16T23:13:29","date_gmt":"2018-10-16T23:13:29","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw93\/?p=440"},"modified":"2018-10-17T09:25:32","modified_gmt":"2018-10-17T09:25:32","slug":"how-to-deploy-datadog-on-rancher-2-0","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw93\/index.php\/2018\/10\/16\/how-to-deploy-datadog-on-rancher-2-0\/","title":{"rendered":"How to Deploy Datadog on Rancher 2.0"},"content":{"rendered":"<h5>Expert Training in Kubernetes and Rancher<\/h5>\n<p>Join our free online training sessions to learn how to manage Kubernetes workloads with Rancher.<\/p>\n<p><a href=\"https:\/\/rancher.com\/training\/\" target=\"blank\">Sign up here<\/a><\/p>\n<p><a href=\"https:\/\/www.datadoghq.com\/\">Datadog<\/a> is a popular hosted monitoring solution for aggregating and analyzing metrics and events for distributed systems. From infrastructure integrations to collaborative dashboards, Datadog gives you a clean single pane view into the information that is most important to you. Leveraging Datadog with Rancher can then give you a full stack view of all of your applications running on Kubernetes clusters, wherever they are hosted. To make Datadog easy to use with Rancher 2.0, we have modified the Datadog <a href=\"https:\/\/helm.sh\/\">Helm<\/a> chart to make it a simple deployment through Rancher\u2019s catalog feature that will function across Rancher projects within a cluster.<\/p>\n<h2>Prerequisites<\/h2>\n<ol>\n<li>Datadog API Key (you can use an existing secret with your API key, or let the chart make one for you).<\/li>\n<li>By default <a href=\"https:\/\/github.com\/rancher\/rke\">Rancher Kubernetes Engine<\/a> (RKE) does not allow unauthenticated access to the kubelet API which Datadog relies on for many of its metrics. When installing the cluster with RKE we need to provide extra arguments to the kubelet service.\n<p>services:<br \/>\nkubelet:<br \/>\nextra_args:<br \/>\nread-only-port: 10255<\/p>\n<p>NOTE: You should make sure this port is properly firewalled<\/li>\n<li>A Kubernetes 1.8 cluster attached to a Rancher installation.<\/li>\n<\/ol>\n<h2>Setup &amp; Configuration<\/h2>\n<ol>\n<li>The <a href=\"https:\/\/github.com\/rancher\/charts\/tree\/master\/charts\/datadog\/v1.0.0\">Datadog Rancher Chart<\/a> is available by default in the Rancher library; there is also a Datadog chart in Helm stable, but we suggest using the Rancher library chart for ease of use. The Rancher library is enabled by default; if disabled this setting can be modified under Global-&gt;Catalogs.<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"https:\/\/rancher.com\/img\/blog\/2018\/DataDog-Helm-Chart.png\" alt=\"Catalog\" \/><\/p>\n<ol>\n<li>The charts configuration options have been made available through the UI in Rancher by adding a <a href=\"https:\/\/github.com\/rancher\/charts\/blob\/master\/charts\/datadog\/v1.0.0\/questions.yml\">questions.yaml<\/a> file. To learn more about them, please refer to the <a href=\"https:\/\/github.com\/rancher\/charts\/blob\/master\/charts\/datadog\/v1.0.0\/values.yaml\">values.yaml<\/a> file, which has additional information and links describing the variables.<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"https:\/\/rancher.com\/img\/blog\/2018\/AgentConfiguration.png\" alt=\"Catalog\" \/><\/p>\n<h2>Dashboards<\/h2>\n<p>If you plan to send mutliple clusters of data to the same Datadog endpoint, it\u2019s useful to add the cluster name as a host tag (e.g. kube-cluster-name:CLUSTERNAME) when configuring the Helm chart. This will allow you to sort data by scope to a specific cluster, as well as group data by cluster within a dashboard. In the below dashboard we have grouped node data by cluster in a few of the default widgets for the clusters \u2018dash-1\u2019 and dash-2\u2019.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/rancher.com\/img\/blog\/2018\/datadogDashboard.png\" alt=\"Dashboard\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>Using Helm to deploy applications provides a tested, standardized deployment method. With the Rancher Catalog UI, Helm charts are even easier to use and configure. With the addition of the Datadog chart to the Rancher library, users can now leverage this workflow for one of the top enterprise ready solutions for monitoring and alerting with Kubernetes.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/rancher.com\/img\/bio\/kyle-rome.jpg\" alt=\"Kyle Rome\" width=\"100\" height=\"100\" \/><\/p>\n<p>Kyle Rome is a Field Engineer for Rancher and has been working with Kubernetes for the past two years. He has a background in Distributed Systems Architecture and as a Java Software Engineer.<\/p>\n<p><a href=\"https:\/\/rancher.com\/blog\/2018\/2018-07-16-how-to-deploy-datadog\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Expert Training in Kubernetes and Rancher Join our free online training sessions to learn how to manage Kubernetes workloads with Rancher. Sign up here Datadog is a popular hosted monitoring solution for aggregating and analyzing metrics and events for distributed systems. From infrastructure integrations to collaborative dashboards, Datadog gives you a clean single pane view &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw93\/index.php\/2018\/10\/16\/how-to-deploy-datadog-on-rancher-2-0\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Deploy Datadog on Rancher 2.0&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-440","post","type-post","status-publish","format-standard","hentry","category-kubernetes"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/posts\/440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/comments?post=440"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/posts\/440\/revisions"}],"predecessor-version":[{"id":550,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/posts\/440\/revisions\/550"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/media?parent=440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/categories?post=440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/tags?post=440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}