<?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: MALLI SANDHYA</title>
    <description>The latest articles on Debug School by MALLI SANDHYA (@sandhyamalli19).</description>
    <link>https://www.debug.school/sandhyamalli19</link>
    <image>
      <url>https://www.debug.school/images/Js3oOiHvr6GnpHnuxCBIqE1tJykJjhb9tKT3wCbSziQ/rs:fill:90:90/g:sm/mb:500000/ar:1/aHR0cHM6Ly93d3cu/ZGVidWcuc2Nob29s/L3VwbG9hZHMvdXNl/ci9wcm9maWxlX2lt/YWdlLzY2MS8yZmQy/ODY0MS01NjY3LTQw/NGMtODBhNi03M2I0/NDZjMzlmYWEucG5n</url>
      <title>Debug School: MALLI SANDHYA</title>
      <link>https://www.debug.school/sandhyamalli19</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.debug.school/feed/sandhyamalli19"/>
    <language>en</language>
    <item>
      <title>DATADOG ASSIGNMENT -DAY 2</title>
      <dc:creator>MALLI SANDHYA</dc:creator>
      <pubDate>Wed, 13 Sep 2023 06:04:06 +0000</pubDate>
      <link>https://www.debug.school/sandhyamalli19/datadog-assignment-day-2-4b84</link>
      <guid>https://www.debug.school/sandhyamalli19/datadog-assignment-day-2-4b84</guid>
      <description>&lt;h2&gt;
  
  
  1. Write it down a step to collect apache metrices to datadog
&lt;/h2&gt;

&lt;p&gt;Collecting Apache metrics and sending them to Datadog involves several steps. Datadog is a popular monitoring and analytics platform that can help you gain insights into the performance of your Apache web server. Here's a step-by-step guide to collect Apache metrics and send them to Datadog:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Sign Up for Datadog&lt;/strong&gt;&lt;br&gt;
If you haven't already, sign up for a Datadog account at &lt;a href="https://www.datadog.com/"&gt;https://www.datadog.com/&lt;/a&gt; and create an API key. You'll need this API key to send data to Datadog.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Install the Datadog Agent&lt;/strong&gt;&lt;br&gt;
Install the Datadog Agent on the server where your Apache web server is running. You can find installation instructions for various operating systems on the Datadog website: &lt;a href="https://docs.datadoghq.com/agent/"&gt;https://docs.datadoghq.com/agent/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Configure the Datadog Agent&lt;/strong&gt;&lt;br&gt;
Configure the Datadog Agent to collect Apache metrics. You'll need to edit the Datadog Agent configuration file (usually located at /etc/datadog-agent/datadog.yaml on Linux) and add the following configuration for Apache:&lt;br&gt;
&lt;/p&gt;

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

instances:
  - apache_status_url: http://localhost/server-status?auto
    tags:
      - apache_instance:my_instance
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;a href="http://localhost/server-status?auto"&gt;http://localhost/server-status?auto&lt;/a&gt; with the actual URL of your Apache server status page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Restart the Datadog Agent&lt;/strong&gt;&lt;br&gt;
Restart the Datadog Agent to apply the new configuration:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;bash&lt;br&gt;
Copy code&lt;br&gt;
sudo systemctl restart datadog-agent&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
Step 5: Verify Apache Metrics Collection&lt;br&gt;
Verify that the Datadog Agent is successfully collecting Apache metrics by checking the Datadog web interface. Log in to your Datadog account and navigate to the "Metrics Explorer" to search for Apache-related metrics.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 6: Create Dashboards and Alerts&lt;/strong&gt;&lt;br&gt;
Create custom dashboards in Datadog to visualize your Apache metrics. You can also set up alerts to be notified of any performance issues or anomalies.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 7: Explore Additional Integrations&lt;/strong&gt;&lt;br&gt;
Datadog offers various integrations and plugins for monitoring different aspects of your infrastructure and applications. Explore and configure additional integrations as needed to gain a comprehensive view of your environment.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 8: Monitor and Optimize&lt;/strong&gt;&lt;br&gt;
Continuously monitor your Apache web server metrics in Datadog to identify performance bottlenecks, track trends, and optimize your server's configuration for better performance.&lt;/p&gt;
&lt;h2&gt;
  
  
  2. Write it down a step to collect tomcat metrices to datadog
&lt;/h2&gt;

&lt;p&gt;To collect Tomcat metrics and send them to Datadog for monitoring and analysis, We can use the Datadog Agent along with the Datadog integration for Tomcat. Here are the step-by-step instructions:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Sign Up for Datadog&lt;/strong&gt;&lt;br&gt;
If you haven't already, sign up for a Datadog account at &lt;a href="https://www.datadog.com/"&gt;https://www.datadog.com/&lt;/a&gt; and create an API key. You'll need this API key to send data to Datadog.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Install the Datadog Agent&lt;/strong&gt;&lt;br&gt;
Install the Datadog Agent on the server where your Tomcat application server is running. You can find installation instructions for various operating systems on the Datadog website: &lt;a href="https://docs.datadoghq.com/agent/"&gt;https://docs.datadoghq.com/agent/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Configure the Datadog Agent for Tomcat&lt;/strong&gt;&lt;br&gt;
Configure the Datadog Agent to collect Tomcat metrics by editing the Datadog Agent configuration file (usually located at /etc/datadog-agent/datadog.yaml on Linux) and adding the following configuration for Tomcat:&lt;br&gt;
&lt;/p&gt;

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

instances:
  - host: localhost              # Tomcat host
    port: 8080                   # Tomcat port
    servlet_name: Tomcat         # Optional, the name to be prepended to each metric collected
    tags:
      - tomcat_instance:my_tomcat
Replace localhost and 8080 with the actual Tomcat host and port if they are different in your environment.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 4: Restart the Datadog Agent&lt;/strong&gt;&lt;br&gt;
Restart the Datadog Agent to apply the new configuration:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;`bash
Copy code
sudo systemctl restart datadog-agent
`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 5: Verify Tomcat Metrics Collection&lt;/strong&gt;&lt;br&gt;
Verify that the Datadog Agent is successfully collecting Tomcat metrics by checking the Datadog web interface. Log in to your Datadog account and navigate to the "Metrics Explorer" to search for Tomcat-related metrics.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 6: Create Dashboards and Alerts&lt;/strong&gt;&lt;br&gt;
Create custom dashboards in Datadog to visualize your Tomcat metrics. You can also set up alerts to be notified of any performance issues or anomalies related to Tomcat.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 7: Explore Additional Integrations&lt;/strong&gt;&lt;br&gt;
Datadog offers various integrations and plugins for monitoring different aspects of your infrastructure and applications. Explore and configure additional integrations as needed to gain a comprehensive view of your environment.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 8: Monitor and Optimize&lt;/strong&gt;&lt;br&gt;
Continuously monitor your Tomcat application server metrics in Datadog to identify performance bottlenecks, track trends, and optimize your server's configuration for better performance.&lt;/p&gt;
&lt;h2&gt;
  
  
  3. Write it down a step to collect docker metrices to datadog
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Install the Datadog Agent&lt;/strong&gt;&lt;br&gt;
Install the Datadog Agent on your Docker host or node where your containers are running. You can find installation instructions for various operating systems on the Datadog website: &lt;a href="https://docs.datadoghq.com/agent/"&gt;https://docs.datadoghq.com/agent/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Label Your Docker Containers&lt;/strong&gt;&lt;br&gt;
In your Docker Compose or Docker Swarm configuration, add Datadog labels to the containers you want to monitor. These labels help Datadog automatically discover and collect metrics from the labeled containers. Here's an example of how to add labels in a Docker Compose file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;yaml
Copy code
version: '3'
services:
  my_app:
    image: my_app_image
    labels:
      - "com.datadoghq.ad.check_names: ['docker']"
      - "com.datadoghq.ad.init_configs: [{}]"
      - "com.datadoghq.ad.instances: [{'cgroup_use: true'}]"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this example, we label the my_app container with Datadog labels to enable automatic Docker container monitoring.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Restart Your Containers&lt;/strong&gt;&lt;br&gt;
After adding the Datadog labels, restart your Docker containers or services to apply the changes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Verify Metrics in Datadog&lt;/strong&gt;&lt;br&gt;
Wait for a few minutes to allow Datadog to collect metrics from your Docker containers. Then, log in to your Datadog account and navigate to the "Metrics Explorer" or "Container Map" to visualize and explore the Docker container metrics.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5: Create Dashboards and Alerts&lt;/strong&gt;&lt;br&gt;
Create custom dashboards and set up alerts in Datadog to monitor your Docker container performance and health.&lt;/p&gt;
&lt;h2&gt;
  
  
  Write it down a step to collect mysql metrices to datadog
&lt;/h2&gt;

&lt;p&gt;Configure MySQL Custom Checks:&lt;br&gt;
In Datadog, create a custom check for MySQL. Custom checks allow you to collect specific metrics that matter to you. Create a YAML file, e.g., mysql_custom.yaml, with the following content:&lt;br&gt;
&lt;/p&gt;

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

instances:
  - server: mysql_server_address
    user: mysql_user
    pass: mysql_password
    port: 3306
    tls_ca_cert: /path/to/mysql_ca_cert.pem`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace mysql_server_address, mysql_user, mysql_password, and /path/to/mysql_ca_cert.pem with your MySQL server's information and the path to your CA certificate while using SSL/TLS.&lt;/p&gt;

&lt;p&gt;Place the Configuration File&lt;br&gt;
Place the mysql_custom.yaml configuration file in the Datadog Agent's custom checks directory, which is typically located at /etc/datadog-agent/conf.d/.&lt;/p&gt;

&lt;p&gt;Restart the Datadog Agent&lt;br&gt;
Restart the Datadog Agent to apply the new custom check configuration:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;bash&lt;br&gt;
Copy code&lt;br&gt;
sudo systemctl restart datadog-agent&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Verify MySQL Metrics Collection&lt;br&gt;
Verify that the Datadog Agent is successfully collecting MySQL metrics by checking the Datadog web interface. Log in to your Datadog account and navigate to the "Metrics Explorer" or "Infrastructure List" to search for MySQL-related metrics.&lt;/p&gt;

&lt;p&gt;Custom Dashboards and Alerts&lt;br&gt;
Create custom dashboards in Datadog to visualize the specific MySQL metrics you are interested in. Additionally, set up alerts to receive notifications for any unusual database behavior.&lt;/p&gt;

&lt;p&gt;Monitor and Optimize&lt;br&gt;
Continuously monitor your MySQL metrics in Datadog to identify performance bottlenecks, track trends, and optimize your database configuration for better performance.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>DATADOG INTRODUCTION - day1 Assessment(1 &amp; 2)</title>
      <dc:creator>MALLI SANDHYA</dc:creator>
      <pubDate>Mon, 11 Sep 2023 07:52:29 +0000</pubDate>
      <link>https://www.debug.school/sandhyamalli19/datadog-introduction-day1-1gda</link>
      <guid>https://www.debug.school/sandhyamalli19/datadog-introduction-day1-1gda</guid>
      <description>&lt;h2&gt;
  
  
  What is Obserbability and its advantage?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Means being able to understand what's happening inside a computer system or software, like seeing inside a black box. &lt;/li&gt;
&lt;li&gt;It involves collecting data and using tools to monitor, troubleshoot, and improve the system's performance.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Advantages of observability:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Spotting Problems&lt;/strong&gt;: It helps find issues before they become big problems.&lt;br&gt;
&lt;strong&gt;Quick Fixes&lt;/strong&gt;: Makes it easier to figure out what's wrong and fix it faster.&lt;br&gt;
&lt;strong&gt;Better Performance&lt;/strong&gt;: Helps make the system run smoother and faster.&lt;br&gt;
&lt;strong&gt;Preventing Issues&lt;/strong&gt;: Helps prevent future problems by learning from past ones.&lt;br&gt;
&lt;strong&gt;Security&lt;/strong&gt;: Helps detect and stop security threats.&lt;/p&gt;

&lt;h2&gt;
  
  
  Difference betweenb Obserbability Monitoring?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Monitoring     -  like watching a checklist for specific &lt;br&gt;
things you know might go wrong, &lt;br&gt;
observability   -  like having tools to look for any unexpected &lt;br&gt;
issues and understand your system better, even if you didn't &lt;br&gt;
know what to look for in advance.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Monitoring     - like having a fixed plan, and &lt;br&gt;
observability   - like having the freedom to explore and learn &lt;br&gt;
as you go.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What is Datadog?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;It collects information about how everything is working, from servers to applications. &lt;/li&gt;
&lt;li&gt;Then, it shows this information in a clear and understandable way, so DevOps teams can quickly spot any issues, make improvements, and keep their systems running smoothly. &lt;/li&gt;
&lt;li&gt;Think of it as a powerful tool that helps DevOps wizards manage digital kingdom.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What is Datadog Agent and How it works?
&lt;/h2&gt;

&lt;p&gt;The Datadog Agent is like a data collector and reporter. It collects important information from your systems, sends it to a central place, and provides tools to help you keep systems running smoothly and troubleshoot any problems that arise.&lt;/p&gt;

&lt;p&gt;The Datadog Agent is a small software program used in DevOps to monitor and gather data about the performance and health of computer systems. Here's how it works:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Installation&lt;/strong&gt;: You install the Datadog Agent on the servers, virtual machines, or containers you want to monitor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data Collection&lt;/strong&gt;: Once installed, the Agent continuously collects data such as CPU usage, memory usage, network activity, and application performance metrics.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data Transmission&lt;/strong&gt;: It securely sends this data to a central location, typically the Datadog platform, over the network.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data Processing&lt;/strong&gt;: The data is processed and stored centrally, making it accessible through a user-friendly dashboard.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Visualization and Analysis&lt;/strong&gt;: DevOps teams use the dashboard to visualize and analyze the data. can create charts, graphs, and alerts to monitor system behavior.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Problem Resolution&lt;/strong&gt;: The insights gained from the Agent's data help teams identify and resolve issues quickly, ensuring the smooth operation of their systems.&lt;/p&gt;

&lt;h2&gt;
  
  
  Component of Datadog Agent and short intro for each
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Collector:&lt;/strong&gt; Gathers data like system metrics and application performance information.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DogStatsD&lt;/strong&gt;: Collects custom application metrics for analysis.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Trace Agent&lt;/strong&gt;: Captures distributed tracing data to visualize request flows.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Log&lt;/strong&gt; : Collects and forwards logs for centralized analysis.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Integrations&lt;/strong&gt;: Pre-built connectors for monitoring various technologies.&lt;/p&gt;

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

&lt;ol&gt;
&lt;li&gt;sudo systemctl start datadog-agent&lt;/li&gt;
&lt;li&gt;sudo systemctl stop datadog-agent&lt;/li&gt;
&lt;li&gt;sudo systemctl status datadog-agent&lt;/li&gt;
&lt;li&gt;sudo systemctl restart datadog-agent&lt;/li&gt;
&lt;li&gt;sudo datadog-agent integration enable apache&lt;/li&gt;
&lt;li&gt;sudo datadog-agent check&lt;/li&gt;
&lt;li&gt;sudo tail -f /var/log/datadog/agent.log&lt;/li&gt;
&lt;li&gt;sudo datadog-agent diag&lt;/li&gt;
&lt;li&gt;sudo apt-get update &amp;amp;&amp;amp; sudo apt-get install datadog-agent&lt;/li&gt;
&lt;li&gt;sudo -u dd-agent /opt/datadog-agent/bin/dog check 
my_service_check&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Locate how to enable Process monitoring in datadog.yaml?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open your datadog.yaml configuration file.
Look for the section where you configure integrations or checks. 2. This is usually under a section like integrations or checks.d.&lt;/li&gt;
&lt;li&gt;In that section, add an entry for the process you want to monitor. This typically includes specifying the process name, and any additional settings or parameters you want to use for monitoring that process.&lt;/li&gt;
&lt;li&gt;Save the datadog.yaml file.&lt;/li&gt;
&lt;li&gt;Restart the Datadog agent or service for the changes to take effect.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Top 5 Techniques for troubleshooting Datadog Agent
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Check Agent Logs&lt;/strong&gt;: Examine Datadog Agent logs for error messages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Configuration Validation&lt;/strong&gt;: Validate your datadog.yaml configuration file for errors.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agent Status and Metrics&lt;/strong&gt;: Monitor agent health and performance using Datadog's metrics.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Firewall and Network Issues&lt;/strong&gt;: Ensure network connectivity and check for firewall rules.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Update and Reinstall&lt;/strong&gt;: Consider updating or reinstalling the Datadog Agent if issues persist.&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
  </channel>
</rss>
