<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Debug School: Saurabh Kumar </title>
    <description>The latest articles on Debug School by Saurabh Kumar  (@saukumar95_944).</description>
    <link>https://www.debug.school/saukumar95_944</link>
    <image>
      <url>https://www.debug.school/images/QINzA5lAFFO_9jkBfkmnh5iU-ah9WdiAIeLk02mMILU/rs:fill:90:90/g:sm/mb:500000/ar:1/aHR0cHM6Ly93d3cu/ZGVidWcuc2Nob29s/L3VwbG9hZHMvdXNl/ci9wcm9maWxlX2lt/YWdlLzM1NS8yMjUw/NzFkYy1mZGE4LTQz/NTctODY2NS1hYzU5/Y2Y1ZDJkOTEucG5n</url>
      <title>Debug School: Saurabh Kumar </title>
      <link>https://www.debug.school/saukumar95_944</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.debug.school/feed/saukumar95_944"/>
    <language>en</language>
    <item>
      <title>Datadog Assignment: Infra (17-01-2023)</title>
      <dc:creator>Saurabh Kumar </dc:creator>
      <pubDate>Wed, 18 Jan 2023 04:09:32 +0000</pubDate>
      <link>https://www.debug.school/saukumar95_944/datadog-assignment-infra-2b09</link>
      <guid>https://www.debug.school/saukumar95_944/datadog-assignment-infra-2b09</guid>
      <description>&lt;h2&gt;
  
  
  Q1. What is Datadog Agent?
&lt;/h2&gt;

&lt;p&gt;Ans.: The Datadog Agent is software that runs on the hosts machine/server. It collects events and metrics from hosts and sends them to Datadog, where you can analyze your monitoring and performance data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Q2. What are list of methods to send data to Datadog?
&lt;/h2&gt;

&lt;p&gt;Ans.: Following are the methods to send data to Datadog:&lt;br&gt;
     1. Collector (Datadog agent)&lt;br&gt;
     2. DogstasD (Custom Metrics) - Extension of LogstasD lib &lt;/p&gt;

&lt;h2&gt;
  
  
  3. Top 10 commands of Datadog Agent
&lt;/h2&gt;

&lt;p&gt;Ans.: Following are the top 10 commands of Datadog agent:&lt;br&gt;
      1. &lt;code&gt;datadog-agent run&lt;/code&gt;&lt;br&gt;
      2. &lt;code&gt;datadog-agent configcheck&lt;/code&gt;&lt;br&gt;
      3. &lt;code&gt;datadog-agent health&lt;/code&gt;&lt;br&gt;
      4. &lt;code&gt;datadog-agent hostname&lt;/code&gt;&lt;br&gt;
      5. &lt;code&gt;datadog-agent status&lt;/code&gt;&lt;br&gt;
      6. &lt;code&gt;datadog-agent check&lt;/code&gt;&lt;br&gt;
      7. &lt;code&gt;datadog-agent stop&lt;/code&gt;&lt;br&gt;
      8. &lt;code&gt;datadog-agent version&lt;/code&gt;&lt;br&gt;
      9. &lt;code&gt;datadog-agent stream-logs&lt;/code&gt;&lt;br&gt;
      10. &lt;code&gt;datadog-agent dogstasd-stats&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Top 10 Techniques for troubleshooting Datadog Agent
&lt;/h2&gt;

&lt;p&gt;Ans.: Following are the top 10 techniques for troubleshooting Datadog Agent:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Check status of Datadog agent using &lt;code&gt;datadog-agent status&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Check &lt;strong&gt;datadog.yaml&lt;/strong&gt; file for correct indentation or 
  misconfiguration.&lt;/li&gt;
&lt;li&gt;Check status of site URL configured in &lt;strong&gt;datadog.yaml&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Check for permission issues for running that agent.&lt;/li&gt;
&lt;li&gt;Check the integration installation in Datadog portal.&lt;/li&gt;
&lt;li&gt;Check for the API Key correctness in &lt;strong&gt;datadog.yaml&lt;/strong&gt; used 
  from Datadog portal.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  5. Top 10 Metrices of Linux Servers which you should care it?
&lt;/h2&gt;

&lt;p&gt;Ans.: Following are the metric of Linux Servers:&lt;br&gt;
      1. &lt;code&gt;system.io.avg_rq_sz&lt;/code&gt; - The average size of request &lt;br&gt;
          issued to device.&lt;br&gt;
      2. &lt;code&gt;system.io.avg_q_sz&lt;/code&gt; - The average queue size of request &lt;br&gt;
          issued to device.&lt;br&gt;
      3. &lt;code&gt;system.disk.free&lt;/code&gt; - The amount of disk space that is &lt;br&gt;
          free.&lt;br&gt;
      4. &lt;code&gt;system.mem.free&lt;/code&gt; - The amount of memory that is free.&lt;br&gt;
      5. &lt;code&gt;system.load.1&lt;/code&gt; - The average system load over 1 minute.&lt;br&gt;
      6. &lt;code&gt;system.cpu.system&lt;/code&gt; The percent of time the CPU spent &lt;br&gt;
          running the kernel.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Write down the steps to enable any integration in datadog?
&lt;/h2&gt;

&lt;p&gt;Ans.: Following are the steps to enable any integration in datadog(except legacy products):&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Install the required software or product whose metrics needs to be collected and also supported by Datadog agent.&lt;/li&gt;
&lt;li&gt;Before we proceed, make sure you have Datadog agent running on your server or machine.&lt;/li&gt;
&lt;li&gt;Add datadog agent user to the user group of that software or product.
   &lt;code&gt;usermod -a -G &amp;lt;product&amp;gt; dd-agent&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Once user is added, proceed to update the config of that 
  software/product inside below path and open yaml file.&lt;/li&gt;
&lt;li&gt;Update that file shown below with (if you are trying for docker) given configs.&lt;/li&gt;
&lt;li&gt;Once above step down. Restart the docker and datadog 
agent. &lt;/li&gt;
&lt;li&gt;After few seconds, once agent is restarted you will be 
able to watch metrics in Metrics &amp;gt; Explorer in Datadog 
portal.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; /etc/datadog-agent/conf.d/&amp;lt;product&amp;gt;.d/
 vi &amp;lt;product-conf&amp;gt;.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;init_config:

instances:

  - url: "unix://var/run/docker.sock"
    new_tag_names: true
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  7. Top 10 Metrices of Windows Servers which you should care it?
&lt;/h2&gt;

&lt;p&gt;Ans.: Following are the metrices of windows servers:&lt;br&gt;
       1. Server Uptime&lt;br&gt;
       2. Disk Utilization&lt;br&gt;
       3. Memory Utilization&lt;br&gt;
       4. Request Queue Size&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Top 5 Metrices of Apache which you should not miss it?
&lt;/h2&gt;

&lt;p&gt;Ans.: Following are top 5 metrices of Apache:&lt;br&gt;
      1. &lt;code&gt;apache.performance.cpu_load&lt;/code&gt; - The percent of CPU used.&lt;br&gt;
      2. &lt;code&gt;apache.net.request_per_s&lt;/code&gt; - The number of requests &lt;br&gt;
          performed per second.&lt;br&gt;
      3. &lt;code&gt;apache.conns_total&lt;/code&gt; - The total number of connections &lt;br&gt;
          performed.&lt;br&gt;
      4. &lt;code&gt;apache.net.hits&lt;/code&gt; - The total number of requests &lt;br&gt;
          performed.&lt;br&gt;
      5. &lt;code&gt;apache.performance.busy_workers&lt;/code&gt; - The number of &lt;br&gt;
          workers serving requests.&lt;/p&gt;

</description>
      <category>datadog</category>
      <category>devops</category>
      <category>infra</category>
    </item>
  </channel>
</rss>
