<?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: Joshica S</title>
    <description>The latest articles on Debug School by Joshica S (@joshicas).</description>
    <link>https://www.debug.school/joshicas</link>
    <image>
      <url>https://www.debug.school/images/8vwXKghqSl0Ia1tcFuONMldL50u36yD1HDGEsGce-Uc/rs:fill:90:90/g:sm/mb:500000/ar:1/aHR0cHM6Ly93d3cu/ZGVidWcuc2Nob29s/L3VwbG9hZHMvdXNl/ci9wcm9maWxlX2lt/YWdlLzY2OC9jNzg2/Y2RhZC1jOGU2LTRm/ZGItYjQ4NC03Mzdj/MzEzNDgwNGQucG5n</url>
      <title>Debug School: Joshica S</title>
      <link>https://www.debug.school/joshicas</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.debug.school/feed/joshicas"/>
    <language>en</language>
    <item>
      <title>Datadog Training Day 4 - Assignment (14-09-2023)</title>
      <dc:creator>Joshica S</dc:creator>
      <pubDate>Thu, 14 Sep 2023 07:15:42 +0000</pubDate>
      <link>https://www.debug.school/joshicas/datadog-training-day-4-assignment-14-09-2023-11gl</link>
      <guid>https://www.debug.school/joshicas/datadog-training-day-4-assignment-14-09-2023-11gl</guid>
      <description>&lt;p&gt;1 Top 10 metrics/indicators for APM&lt;br&gt;
 i. APM Trace Metrics - Tracing application metrics are collected after enabling trace collection and instrumenting your application&lt;br&gt;
ii. Request Count- &lt;code&gt;trace.&amp;lt;SPAN_NAME&amp;gt;.hits&lt;/code&gt; - Represent the count of hits for a given span.&lt;br&gt;
    &lt;code&gt;trace.&amp;lt;SPAN_NAME&amp;gt;.hits.by_http_status&lt;/code&gt; - Represent the count of hits for a given span break down by HTTP status code.&lt;br&gt;
iii. Latency distribution - &lt;code&gt;trace.&amp;lt;SPAN_NAME&amp;gt;&lt;/code&gt; - Represent the latency distribution for all services, resources, and versions across different environments and second primary tags.&lt;br&gt;
iv. Errors - trace..errors - Represent the count of errors for a given span.&lt;br&gt;
 &lt;code&gt;trace.&amp;lt;SPAN_NAME&amp;gt;.errors.by_http_status&lt;/code&gt; - Represent the count of errors for a given span.&lt;br&gt;
 v. Span count - trace..span_count - Represent the amount of spans collected on a given interval.&lt;br&gt;&lt;br&gt;
 &lt;code&gt;trace.&amp;lt;SPAN_NAME&amp;gt;.span_count.by_http_status&lt;/code&gt;- Represent the amount of spans collected on a given interval break down by HTTP status.&lt;br&gt;
vi. Duration - &lt;code&gt;trace.&amp;lt;SPAN_NAME&amp;gt;.duration&lt;/code&gt; - Measure the total time for a collection of spans within a time interval&lt;br&gt;
vii. Duration by - &lt;code&gt;trace.&amp;lt;SPAN_NAME&amp;gt;.duration.by_http_status&lt;/code&gt; - Measure the total time for a collection of spans for each HTTP status&lt;br&gt;
  &lt;code&gt;trace.&amp;lt;SPAN_NAME&amp;gt;.duration.by_service&lt;/code&gt; - Measure the total time spent actually processing for each service&lt;br&gt;
 &lt;code&gt;trace.&amp;lt;SPAN_NAME&amp;gt;.duration.by_type&lt;/code&gt; - Measure the total time spent actually processing for each Service type.&lt;br&gt;
 &lt;code&gt;trace.&amp;lt;SPAN_NAME&amp;gt;.duration.by_type.by_http_status&lt;/code&gt; - Measure the total time spent actually processing for each Service type and HTTP status. &lt;br&gt;
 &lt;code&gt;trace.&amp;lt;SPAN_NAME&amp;gt;.duration.by_service.by_http_status&lt;/code&gt; - Measure the total time spent actually processing for each Service and HTTP status.&lt;br&gt;
 viii. Apdex - &lt;code&gt;trace.&amp;lt;SPAN_NAME&amp;gt;.apdex&lt;/code&gt; - Measures the Apdex score for each web service.&lt;br&gt;
 &lt;code&gt;trace.&amp;lt;SPAN_NAME&amp;gt;.apdex.by.resource_&amp;lt;2ND_PRIM_TAG&amp;gt;_service&lt;/code&gt; - Represents the Apdex score for all combination of resources, 2nd primary tags and services.&lt;br&gt;
 &lt;code&gt;trace.&amp;lt;SPAN_NAME&amp;gt;.apdex.by.resource_service&lt;/code&gt; - Measures the Apdex score for each combination of resources and web services.&lt;br&gt;&lt;br&gt;
 &lt;code&gt;trace.&amp;lt;SPAN_NAME&amp;gt;.apdex.by.&amp;lt;2ND_PRIM_TAG&amp;gt;_service&lt;/code&gt; - Measures the Apdex score for each combination of 2nd primary tag and web services.&lt;br&gt;
 &lt;code&gt;trace.&amp;lt;SPAN_NAME&amp;gt;.apdex.by.service&lt;/code&gt; - Measures the Apdex score for each web service.&lt;br&gt;
 ix. Runtime metrics - Runtime metrics collection can be enabled with the &lt;code&gt;DD_RUNTIME_METRICS_ENABLED=true&lt;/code&gt; environment parameter when running with ddtrace-run.&lt;br&gt;
 x. Generate custom metrics from spans - Monitor Service Metrics - For send requests, Errors, Latency percentiles, Analyse database queries or endpoints&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Top 10 metrics/indicators for Synthetic monitoring
The following metrics are generated by Synthetic Monitoring tests and Continuous Testing settings.
a.General Metrics - synthetics.test_runs - The number of Synthetic test runs.
b.API tests - synthetics.api.response - The count of API responses we receive.
c.HTTP tests - synthetics.http.* come from your API HTTP tests
d.SSL tests - synthetics.ssl.* come from your API SSL tests
e.DNS tests - synthetics.dns.* come from your API DNS tests
f.WebSocket tests - synthetics.websocket.* come from your API WebSocket tests
g.TCP tests - synthetics.tcp.* come from your API TCP tests
h.UDP tests - synthetics.udp.* come from your API UDP tests
i.ICMP tests - synthetics.icmp.* come from your API ICMP tests
j.Multistep API tests - synthetics.multi.* come from your multistep API tests
k.Browser tests - synthetics.browser.* come from your browser tests
l.Private locations - synthetics.pl.&lt;em&gt;come from your private locations
Metrics starting with:
synthetics.test_runs come from all your Synthetic tests
datadog.estimated_usage.synthetics.&lt;/em&gt; return relevant usage data from your Synthetic tests
synthetics.on_demand return relevant usage data for Continuous Testing&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;3 Top 10 metrics/indicators for RUM&lt;br&gt;
Datadog Real User Monitoring (RUM) provides end-to-end visibility into the user experience and performance of your browser and mobile applications. RUM allows you to capture and retain complete user sessions for 30 days. This means you can pinpoint bugs, prioritize issues, and determine fixes with data collected across an entire quarter.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;User satisfaction and Apdex&lt;/li&gt;
&lt;li&gt;FP/ FCP
How to Improve FP and FCP&lt;/li&gt;
&lt;li&gt;Time to interactive
How to Improve Your TTI score&lt;/li&gt;
&lt;li&gt;Page speed and load time&lt;/li&gt;
&lt;li&gt;Time to first byte
 How to Improve TTFB&lt;/li&gt;
&lt;li&gt;DNS Lookup time&lt;/li&gt;
&lt;li&gt;Error Rate&lt;/li&gt;
&lt;li&gt;Peak Response Time &lt;/li&gt;
&lt;li&gt;Hardware utilization&lt;/li&gt;
&lt;li&gt;Uptime
+++++++++++++++++++++++++++++END++++++++++++++++++++++++++++++&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>Datadog Training - Day 2 Assignment (12-9-2023)</title>
      <dc:creator>Joshica S</dc:creator>
      <pubDate>Tue, 12 Sep 2023 12:26:30 +0000</pubDate>
      <link>https://www.debug.school/joshicas/datadog-training-day-2-assignment-12-9-2023-4jbm</link>
      <guid>https://www.debug.school/joshicas/datadog-training-day-2-assignment-12-9-2023-4jbm</guid>
      <description>&lt;p&gt;I. Write it down a step to collect apache metrices to datadog&lt;br&gt;
    1. Install Datadog Agent in Ubuntu &lt;br&gt;
          Register at &lt;code&gt;https://www.datadoghq.com/&lt;/code&gt;&lt;br&gt;
          Select the UBUNTU from the Datadog supported agent list&lt;br&gt;
          Run the commands in ubuntu -&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;             $ D_AGENT_MAJOR_VERSION=7 DD_API_KEY=XXX DD_SITE="datadoghq.com" bash -c "$(curl -L https://s3.amazonaws.com/dd-agent/scripts/install_script.sh)"

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

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;systemctl start datadog-agent&lt;br&gt;
             systemctl status datadog-agent&lt;br&gt;
         datadog-agent status&lt;br&gt;
&lt;/code&gt;          You would get output at the end of Installation&lt;br&gt;
                 Adding you api key to Agent config: /etc/datadog-agent/datadog.yml&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;2. Install Apache HTTPD server in Ubuntu
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;&lt;code&gt;$ sudo apt update&lt;br&gt;
       $ sudo apt install apache2&lt;br&gt;
&lt;/code&gt;      # Setup webiste in default virtual host&lt;br&gt;
&lt;code&gt;$ rm /var/www/html/index.html&lt;br&gt;
        $ vi /var/www/html/index.html&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    &amp;lt;html&amp;gt;
    &amp;lt;head&amp;gt;
        &amp;lt;title&amp;gt; Welcome to DevOpsSchool.com &amp;lt;/title&amp;gt;
    &amp;lt;/head&amp;gt;
    &amp;lt;body&amp;gt;
        &amp;lt;p&amp;gt; I'm running this website on an Ubuntu Server server!
    &amp;lt;/body&amp;gt;
    &amp;lt;/html&amp;gt;

&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;# Restart Apache
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;code&gt;$ service apache2 reload&lt;br&gt;
    $ service apache2 restart&lt;br&gt;
&lt;/code&gt;        # Validate &lt;br&gt;
&lt;code&gt;$ watch curl http://localhost&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
    3. Go to datadog console, &lt;a href="https://app.datadoghq.com/integrations"&gt;https://app.datadoghq.com/integrations&lt;/a&gt; -&amp;gt; Integrations -&amp;gt; Search For Apache and Install the integration&lt;br&gt;
    4. Enable mod_status &amp;amp; ExtendedStatus in Apache&lt;br&gt;
        By default, Apache ships with the mod_status module already enabled. Verify by running, &lt;code&gt;$ ls /etc/apache2/mods-enabled | grep status*&lt;/code&gt;&lt;br&gt;
              Output:&lt;br&gt;
                  status.conf&lt;br&gt;
                  status.load&lt;br&gt;
        Enable mod_status module by invoking the command:&lt;br&gt;
&lt;code&gt;$ sudo /usr/sbin/a2enmod status&lt;br&gt;
&lt;/code&gt;   Configure mod_status in Apache Ubuntu&lt;br&gt;
`              sudo vi /etc/apache2/mods-enabled/status.conf &lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;&lt;br&gt;
&lt;/code&gt;                     &lt;br&gt;
                                Require all granted&lt;br&gt;&lt;br&gt;
`&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;h1&gt;
  
  
  Replace ip &amp;lt;&amp;gt;
&lt;/h1&gt;

&lt;p&gt;&lt;code&gt;         $ sudo systemctl restart apache2&lt;br&gt;
    $ sudo systemctl status apache2&lt;br&gt;
    $ curl http://localhost/server-status&lt;br&gt;
&lt;/code&gt;    5. Enable Datadog Apache Integration configuration to start collecting your Apache metrics.&lt;br&gt;
`          $ cd /etc/datadog-agent/conf.d/apache.d/&lt;br&gt;
         $ sudo cp conf.yaml.example conf.yaml&lt;br&gt;
         $ sudo vi conf.yaml&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;`              instances:
                    - apache_status_url: http:localhost/server-status?auto        #localhost can be added with IP if it is a remote agent

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

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;$ sudo systemctl restart datadog-agent&lt;br&gt;
&lt;/code&gt;&lt;code&gt;watch curl http://localhost/&lt;br&gt;
&lt;/code&gt;    6. Validate if datadog agent is monitoring Apache&lt;br&gt;
&lt;code&gt;$ datadog-agent configcheck | grep apache -A 5 -B 5&lt;br&gt;
&lt;/code&gt;        Output: &lt;br&gt;
        === apache check ===&lt;br&gt;
         Configuration provider: file&lt;br&gt;
        Configuration source: file:/etc/datadog-agent/conf.d/apache.d/conf.yaml&lt;br&gt;
&lt;code&gt;$ datadog-agent status | grep apache -B 5 -A 15&lt;br&gt;
&lt;/code&gt;        ==Running Checks apache====&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a dummy traffic on Apache
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;        $ while true; do curl -s -o /dev/null http://localhost &amp;amp; done

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

&lt;/div&gt;


&lt;ol&gt;
&lt;li&gt;Verify the Apache Metrix on Datadog Console&lt;/li&gt;
&lt;/ol&gt;
&lt;h1&gt;
  
  
  &lt;img src="https://www.debug.school/images/AGJ47hbcMqarncjKmRPadtSHh_OkETsEzK9cHfF68Bs/rt:fit/w:800/g:sm/mb:500000/ar:1/aHR0cHM6Ly93d3cu/ZGVidWcuc2Nob29s/L3VwbG9hZHMvYXJ0/aWNsZXMvdWxvYncw/dzliN3B0emlicmtn/a3YuanBn" alt="Image description" width="800" height="616"&gt;
&lt;/h1&gt;

&lt;p&gt;II. Write it down a step to collect tomcat metrices to datadog&lt;br&gt;
Step A: Loginto Datadog console, Integrations -&amp;gt; Search for Tomcat and Click Install&lt;br&gt;
Step 1: Install Open JDK 11&lt;br&gt;
&lt;code&gt;$ sudo apt-get update&lt;br&gt;
    $ sudo apt-get install openjdk-11-jdk -y&lt;br&gt;
    $ apt install openjdk-11-jdk-headless -y &lt;br&gt;
&lt;/code&gt;Step 2: Download Apache Tomcat 9 in ubuntu:&lt;br&gt;
&lt;code&gt;$ sudo apt-get install wget unzip -y&lt;br&gt;
    $ sudo -s&lt;br&gt;
    $ cd /opt/&lt;br&gt;
    $ wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.80/bin/apache-tomcat-9.0.80.zip&lt;br&gt;
        $ unzip apache-tomcat-9.0.80.zip&lt;br&gt;
    $ cd apache-tomcat-9.0.73&lt;br&gt;
    $ cd bin&lt;br&gt;
    $ chmod -R 755 .&lt;br&gt;
    $ ls&lt;br&gt;
    $ ./shutdown.sh&lt;br&gt;
    $ ./startup.sh&lt;br&gt;
&lt;/code&gt;Step 3: Enable JMX Remote in Tomcat 8 to Monitor &amp;amp; Administer              &lt;code&gt;$ vi /opt/apache-tomcat-9.0.73/bin/catalina.sh&lt;/code&gt;&lt;/p&gt;
&lt;h1&gt;
  
  
  Add these below lines
&lt;/h1&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9012 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"

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

&lt;/div&gt;


&lt;p&gt;&lt;code&gt;$ ./shutdown.sh&lt;br&gt;
$ ./startup.sh&lt;/code&gt;&lt;br&gt;
Step 4: Configure and enable Tomcat intergration in Datadog agent&lt;br&gt;
&lt;code&gt;$ cd /etc/datadog-agent/conf.d/tomcat.d/&lt;br&gt;
    $ cp conf.yaml.example conf.yaml&lt;br&gt;
    $ datadog-agent configcheck&lt;br&gt;
    $ systemctl restart datadog-agent&lt;br&gt;
    $ systemctl status datadog-agent&lt;br&gt;
    $ datadog-agent configcheck | grep tomcat -A 1 B 1&lt;br&gt;
&lt;/code&gt;        Output:&lt;br&gt;
       ==tomcat check====&lt;br&gt;
Step 5: In datadog console, Go to Metrics tab, search for tomcat metrices and also in Infrastructure list under Ubuntu VM check for tomcat apps &lt;/p&gt;
&lt;h1&gt;
  
  
  &lt;img src="https://www.debug.school/images/biHVn9c8RSbP5eeaJABVDPdtVLdGhZdsLgekuo6U-H0/rt:fit/w:800/g:sm/mb:500000/ar:1/aHR0cHM6Ly93d3cu/ZGVidWcuc2Nob29s/L3VwbG9hZHMvYXJ0/aWNsZXMvOG9uYjN3/OGNucWJlNmxvY2Vn/MW0uanBn" alt="Image description" width="800" height="613"&gt;
&lt;/h1&gt;

&lt;p&gt;III.   Write it down a step to collect docker metrices to datadog&lt;br&gt;
Step 1 – Enable Datadog Process Monitoring&lt;br&gt;
Step 2 – Install Docker Server&lt;br&gt;
Step 3 – Enable Docker integration with Datadog&lt;/p&gt;
&lt;h1&gt;
  
  
  These commands to configure Agent for Docker Intergration.
&lt;/h1&gt;
&lt;h1&gt;
  
  
  Add the user running the Agent to Docker's group.
&lt;/h1&gt;

&lt;p&gt;&lt;code&gt;$ usermod -a -G docker dd-agent&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;`$ cd /etc/datadog-agent/conf.d/docker.d/&lt;br&gt;
$ cp conf.yaml.default conf.yaml&lt;br&gt;
$ vi conf.yaml&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;/code&gt;`&lt;br&gt;
ad_identifiers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;_docker
init_config:
instances:

&lt;ul&gt;
&lt;li&gt;url: "unix://var/run/docker.sock"
new_tag_names: true
`&lt;code&gt;&lt;/code&gt;
&lt;code&gt;$ systemctl restart datadog-agent
$ systemctl status datadog-agent&lt;/code&gt;
$ datadog-agent configcheck
$ datadog-agent check docker
$ datadog-agent status | grep docker -B 5 -A 5
&lt;code&gt;  =========
Collector
=========
Step 4 – Create few containers and Verify
&lt;/code&gt;$ docker run -itd ubuntu
$ docker run -itd ubuntu
$ docker run -itd ubuntu
$ docker ps
`Step 5 - Verify Containers at Datadog console
In console -&amp;gt; Integrations -&amp;gt; Docker Install -&amp;gt; Metrics -&amp;gt; Explorer -&amp;gt; Search for command:containerd-shim-runc-v2&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h1&gt;
  
  
  &lt;img src="https://www.debug.school/images/pmGHbj7nNRVJ8ICUx5WpA2N98cUfjh1dgEFMsfBOWb0/rt:fit/w:800/g:sm/mb:500000/ar:1/aHR0cHM6Ly93d3cu/ZGVidWcuc2Nob29s/L3VwbG9hZHMvYXJ0/aWNsZXMvOTF5cmxx/N2dwaTJoc2I1cnM4/Y3AucG5n" alt="Image description" width="800" height="515"&gt;
&lt;/h1&gt;

&lt;p&gt;IV.  - Write it down a step to collect mysql metrices to datadog Step 1 – Install Datadog Agent in Ubuntu&lt;br&gt;
         Register at &lt;a href="https://www.datadoghq.com/"&gt;https://www.datadoghq.com/&lt;/a&gt;&lt;br&gt;
         Select the UBUNTU from the Datadog supported agent list&lt;br&gt;
         Run the commands in ubuntu -&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;            $ D_AGENT_MAJOR_VERSION=7 DD_API_KEY=XXX DD_SITE="datadoghq.com" bash -c "$(curl -L https://s3.amazonaws.com/dd-agent/scripts/install_script.sh)"
                $ systemctl start datadog-agent
                $ systemctl status datadog-agent
        $ datadog-agent status

&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;          You would get output at the end of Installation
              Adding you api key to Agent config: /etc/datadog-agent/datadog.yml
    (Mysql by default comes with Dataagent package)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Step 2 – Prepare MySQL. On each MySQL server, create a database user for the Datadog Agent:&lt;br&gt;
Go to datadog console, Integrations, Mysql -&amp;gt; Install&lt;br&gt;
Step 3 - Login Mysql in Ubuntu. Run the below commands&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;        $ sudo su -
        $ mysql -h localhost -u root -p
        mysql&amp;gt; CREATE USER 'datadog'@'localhost' IDENTIFIED BY '&amp;lt;UNIQUEPASSWORD&amp;gt;';
        mysql&amp;gt; CREATE USER 'datadog'@'localhost' IDENTIFIED WITH mysql_native_password by '&amp;lt;UNIQUEPASSWORD&amp;gt;';
        mysql -u datadog --password='&amp;lt;UNIQUEPASSWORD&amp;gt;' -e "show status" | \
grep Uptime &amp;amp;&amp;amp; echo -e "3[0;32mMySQL user - OK3[0m" || \
echo -e "3[0;31mCannot connect to MySQL3[0m"
        mysql -u datadog --password='&amp;lt;UNIQUEPASSWORD&amp;gt;' -e "show slave status" &amp;amp;&amp;amp; \
echo -e "3[0;32mMySQL grant - OK3[0m" || \
echo -e "3[0;31mMissing REPLICATION CLIENT grant3[0m"

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

&lt;/div&gt;



&lt;p&gt;Step 4 - The Agent needs a few privileges to collect metrics. Grant the user the following limited privileges ONLY:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;        mysql&amp;gt; GRANT REPLICATION CLIENT ON *.* TO 'datadog'@'localhost' WITH MAX_USER_CONNECTIONS 5;
        mysql&amp;gt; GRANT PROCESS ON *.* TO 'datadog'@'localhost';
        mysql&amp;gt; ALTER USER 'datadog'@'localhost' WITH MAX_USER_CONNECTIONS 5;

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

&lt;/div&gt;



&lt;p&gt;If enabled, metrics can be collected from the performance_schema database by granting an additional privilege:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;        mysql&amp;gt; show databases like 'performance_schema';
Output:     
            | Database (performance_schema) |
                +-------------------------------+
                | performance_schema            |
        mysql&amp;gt; GRANT SELECT ON performance_schema.* TO 'datadog'@'localhost';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Step 5 - Configure Datadog agent to start collection mysql metrics.&lt;br&gt;
Edit the mysql.d/conf.yaml file, in the conf.d/ folder at the root of your Agent’s configuration directory to start collecting your MySQL metrics and logs&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;        $ cd /etc/datadog-agent/conf.d/mysql.d/
        $ sudo cp conf.yaml.example conf.yaml
        $ sudo vi conf.yaml
        init_config:
        instances:
          - server: 127.0.0.1
            user: datadog
            pass: "&amp;lt;YOUR_CHOSEN_PASSWORD&amp;gt;" # from the CREATE USER step earlier
            port: "&amp;lt;YOUR_MYSQL_PORT&amp;gt;" # e.g. 3306
            options:
                  replication: false
                  galera_cluster: true
                  extra_status_metrics: true
                  extra_innodb_metrics: true
                  extra_performance_metrics: true
                  schema_size_metrics: false
                  disable_innodb_metrics: false

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

&lt;/div&gt;



&lt;p&gt;Note: Wrap your password in single quotes in case a special character is present.&lt;br&gt;
Step 6: Validate mysql metrices&lt;br&gt;
&lt;code&gt;$ systemctl restart datadog-agent&lt;br&gt;
        $ datadog-agent status&lt;br&gt;
&lt;/code&gt;In metrics explorer UI console, You would be able to see the mysql data reporting&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.debug.school/images/RsQpfCvKXNznjb_simA5L1EtvdasMDXK_KGsz9LcHE4/rt:fit/w:800/g:sm/mb:500000/ar:1/aHR0cHM6Ly93d3cu/ZGVidWcuc2Nob29s/L3VwbG9hZHMvYXJ0/aWNsZXMvaGs1NXJz/NTBoaXRiYmY3Y2po/MDEuanBn" class="article-body-image-wrapper"&gt;&lt;img src="https://www.debug.school/images/RsQpfCvKXNznjb_simA5L1EtvdasMDXK_KGsz9LcHE4/rt:fit/w:800/g:sm/mb:500000/ar:1/aHR0cHM6Ly93d3cu/ZGVidWcuc2Nob29s/L3VwbG9hZHMvYXJ0/aWNsZXMvaGs1NXJz/NTBoaXRiYmY3Y2po/MDEuanBn" alt="Image description" width="601" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.debug.school/images/kUTYBeFxGX-fviYWczn9iGYpXG7TVDRGEnEwBTuy8DY/rt:fit/w:800/g:sm/mb:500000/ar:1/aHR0cHM6Ly93d3cu/ZGVidWcuc2Nob29s/L3VwbG9hZHMvYXJ0/aWNsZXMvOXNtZXZm/NWVzd3Q1dDFzanVy/dm8uanBn" class="article-body-image-wrapper"&gt;&lt;img src="https://www.debug.school/images/kUTYBeFxGX-fviYWczn9iGYpXG7TVDRGEnEwBTuy8DY/rt:fit/w:800/g:sm/mb:500000/ar:1/aHR0cHM6Ly93d3cu/ZGVidWcuc2Nob29s/L3VwbG9hZHMvYXJ0/aWNsZXMvOXNtZXZm/NWVzd3Q1dDFzanVy/dm8uanBn" alt="Image description" width="800" height="541"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;+++++++++++++++++++++++++++++++++++END+++++++++++++++++++++++++&lt;/p&gt;

</description>
    </item>
    <item>
      <title>DataDog Training -Assignment Day 1 - 11-09-2023 Set 2</title>
      <dc:creator>Joshica S</dc:creator>
      <pubDate>Mon, 11 Sep 2023 12:21:18 +0000</pubDate>
      <link>https://www.debug.school/joshicas/assignment-day-1-11-09-2023-set-2-2k1k</link>
      <guid>https://www.debug.school/joshicas/assignment-day-1-11-09-2023-set-2-2k1k</guid>
      <description>&lt;h1&gt;
  
  
  1 Top 10 commands of Datadog Agent
&lt;/h1&gt;

&lt;p&gt;The 10 significant commands that we use for Datadog Agent (for Linux) are:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;datadog-agent status&lt;/li&gt;
&lt;li&gt;systemctl start datadog-agent&lt;/li&gt;
&lt;li&gt;systemctl stopdatadog-agent&lt;/li&gt;
&lt;li&gt;systemctl status datadog-agent
&lt;/li&gt;
&lt;li&gt;systemctl restart datadog-agent&lt;/li&gt;
&lt;li&gt;datadog-agent health&lt;/li&gt;
&lt;li&gt;datadog-agent configcheck&lt;/li&gt;
&lt;li&gt;datadog-agent version&lt;/li&gt;
&lt;li&gt;datadog-agent&lt;/li&gt;
&lt;li&gt;more /etc/datadog-agent/datadog.yaml&lt;/li&gt;
&lt;/ol&gt;

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

&lt;p&gt;Step 1. Edit the datadog config file by logging into your server and running &lt;br&gt;
&lt;code&gt;sudo vi /etc/datadog-agent/datadog.yaml&lt;/code&gt;&lt;br&gt;
Step 2: Add the following lines to the bottom of the file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;process_config:
    enabled: true

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

&lt;/div&gt;



&lt;p&gt;Step 3 Restart the datadog agent&lt;br&gt;
&lt;code&gt;sudo systemctl restart datadog-agent&lt;br&gt;
    sudo systemctl status datadog-agent&lt;/code&gt;&lt;br&gt;
Step 4 . You can view all of your processes by going to Datadog Console &amp;gt;&amp;gt; Infrastructure &amp;gt;&amp;gt; Processes.&lt;/p&gt;

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

&lt;ol&gt;
&lt;li&gt;Firstly, use the command "sudo systemctl status datadog-agent" to determine whether the Datadog Agent is running. In the event that the agent isn't running, do a restart by running this command
&lt;code&gt;sudo systemctl restart datadog-agent&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the logs and configuration:&lt;/strong&gt; Check the logs for any error messages that might indicate issues with the agent. The directory /var/log/datadog contains the agent logs. 
Try to resolve the issue based on the error message by looking for any stack traces or error messages. 
Make sure the configuration of the agent is correct by verifying it. Assuming the programming interface key and different subtleties are accurately arranged. Assuming the API key,region and other details are correct. The agent configuration file is located in /etc/datadog-agent/datadog.yaml.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verify the Connections:&lt;/strong&gt; Verify whether the agent can connect to the Datadog backend. Run the command "sudo datadog-agent status". In the event that the status is "not running", there might be an issue with the agent configuration or connectivity.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check for Firewalls:&lt;/strong&gt; In the event that you are running a firewall on the machine, ensure that the agent is permitted to communicate with the Datadog backend.The agent communicates over ports 443 and 8125. If these ports are blocked by a firewall, the agent may not be able to communicate with the backend.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check for Resource Constraints:&lt;/strong&gt; Check if the agent is running into resource constraints, such as running out of disk space or memory. If the agent is running into resource constraints, try freeing up resources or increasing the resource limits for the agent.&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>DataDog Training Day -1 Assigment Q/A Set 1</title>
      <dc:creator>Joshica S</dc:creator>
      <pubDate>Mon, 11 Sep 2023 08:16:21 +0000</pubDate>
      <link>https://www.debug.school/joshicas/datadog-training-day-1-assigment-qa-set-1-1bd5</link>
      <guid>https://www.debug.school/joshicas/datadog-training-day-1-assigment-qa-set-1-1bd5</guid>
      <description>&lt;ol&gt;
&lt;li&gt;What is Observability and its advantage?
  Observability is the evolution of monitoring where we understand the actual system's state/behaviour. It helps us to build the system better since we get to know the internal condition of the complex system.
It collects system data to identify a system's state and performance and is built on top of monitoring. It requires the knowledge of 3 support points - metrics,logs and traces.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It has different advantages and benefits:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;It aids in recognizing the system's complexity. &lt;/li&gt;
&lt;li&gt;It assists with recognizing the difficult issues&lt;/li&gt;
&lt;li&gt;It aids in the troubleshooting of issues at their source. &lt;/li&gt;
&lt;li&gt;It increased the automation process&lt;/li&gt;
&lt;li&gt;It aids in processes of self-healing. &lt;/li&gt;
&lt;li&gt;
&lt;p&gt;It makes the user's experience better.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Difference between Observability Monitoring?
Observability:

&lt;ol&gt;
&lt;li&gt;A system has to be designed to be observed&lt;/li&gt;
&lt;li&gt;It assists in understand how system is performing&lt;/li&gt;
&lt;li&gt;It is passive where we can push/publish&lt;/li&gt;
&lt;li&gt;It incorporates metrics,logs and traces&lt;/li&gt;
&lt;li&gt;It helps isolate issue at scale&lt;/li&gt;
&lt;li&gt;It reduces duration of outages&lt;/li&gt;
&lt;li&gt;Generate metrics&lt;/li&gt;
&lt;li&gt;It helps to detect why my system has failed &lt;/li&gt;
&lt;li&gt;It helps to create resilience
Monitoring:&lt;/li&gt;
&lt;li&gt;Almost anything can be monitored&lt;/li&gt;
&lt;li&gt;It helps to understand if the system is working&lt;/li&gt;
&lt;li&gt;It is active where we can pull/collect&lt;/li&gt;
&lt;li&gt;It incorporates metrics,events and logs&lt;/li&gt;
&lt;li&gt;It helps in challenging at scale&lt;/li&gt;
&lt;li&gt;It provides rapid response to outages&lt;/li&gt;
&lt;li&gt;Collect metrics&lt;/li&gt;
&lt;li&gt;It helps to understand the state of my system&lt;/li&gt;
&lt;li&gt;It helps to fix based on past scenarios&lt;/li&gt;
&lt;/ol&gt;


&lt;/li&gt;
&lt;li&gt;What is Datadog?
Datadog is a monitoring and analytics tool for large scale applications.
It is useful for determining performance metrics and event monitoring for cloud and infrastructure services. 
It offers metrics, visualization, and alerting for applications' maintenance and optimization. 
The primary four signals for datadog are latency, traffic, errors, and saturation.
It upholds Windows,Linux and Macintosh operating system and it is accessible and it upholds cloud suppliers like AWS,GCP,Azure and so forth.&lt;/li&gt;
&lt;li&gt;What is Datadog Agent and How it works?&lt;/li&gt;
&lt;li&gt;  The Datadog Agent is software that runs on hosts.&lt;/li&gt;
&lt;li&gt;  It sends events and metrics from hosts to Datadog, where monitoring and performance data can be analyzed. &lt;/li&gt;
&lt;li&gt;  The Datadog Agent's source code can be found on GitHub at DataDog/datadog-agent because it is open source.
Working Mechanism:
The Agent should be installed completely. On the other hand, Amazon Linux, CentOS, Debian, Fedora, Red Hat, SUSE, and Ubuntu all come with a separate DogStatsD package.
The standalone DogStatsD package is installed with the Agent one-line install command except every occurrence of datadog-agent should be replaced with datadog-dogstatsd. A Docker image is available in the DogStatsD6 Docker image repo. In containerized environments where DogStatsD runs as a sidecar or in environments with a DogStatsD server but no full Agent functionality, this package is used.&lt;/li&gt;
&lt;li&gt;Component of Datadog Agent and short intro for each
Datadog   Agent is composed of a main process responsible for collecting infrastructure metrics, logs, and receiving DogStatsD metrics. The main components to this process are:
The Collector is in charge of running checks and collecting metrics.
The Forwarder sends payloads to Datadog.
Two optional processes are spawned by the Agent if enabled in the datadog.yaml configuration file:
&lt;img src="https://www.debug.school/images/JI0lkc1iKgB_kC6Zu58r7twyzPG-kmGspQOFLR9Nsuk/rt:fit/w:800/g:sm/mb:500000/ar:1/aHR0cHM6Ly93d3cu/ZGVidWcuc2Nob29s/L3VwbG9hZHMvYXJ0/aWNsZXMvNXBnZWl4/eGZzZmxzaWR4Z3Y0/MHkuanBn" alt="Image description" width="739" height="358"&gt;
Datadog   Agent is composed of a main process responsible for collecting infrastructure metrics, logs, and receiving DogStatsD metrics.
The primary elements of this procedure are:
The Collector is in charge of running checks and collecting metrics.
The Forwarder sends payloads to Datadog.
If the datadog.yaml configuration file is set to "enabled," the Agent will launch two optional processes:&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A process for collecting traces is the APM Agent (enabled by default).&lt;br&gt;
The Process Agent is a method for obtaining live process data. In the absence of available containers, it is disabled by default.&lt;/p&gt;

&lt;p&gt;Collector&lt;br&gt;
The collector collects all standard metrics every 15 seconds. Agent v6 embeds a Python 2.7 interpreter to run integrations and custom checks.&lt;/p&gt;

&lt;p&gt;Forwarder&lt;br&gt;
The Agent forwarder send metrics over HTTPS to Datadog. Buffering prevents network splits from affecting metric reporting. Metrics are buffered in memory until a limit in size or number of outstanding send requests are reached. Afterwards, the oldest metrics are discarded to keep the forwarder’s memory footprint manageable. Logs are sent over an SSL-encrypted TCP connection to Datadog.&lt;/p&gt;

&lt;p&gt;DogStatsD&lt;br&gt;
 In v6, DogStatsD is a Golang execution of Etsy's StatsD metric total daemon. It is utilized to get and turn up inconsistent measurements over UDP or Unix attachment, accordingly permitting custom code to be instrumented without adding inertness.&lt;/p&gt;

&lt;p&gt;GUI&lt;br&gt;
In the datadog.yaml file, you can set the port on which the GUI runs. Set the value of the port to -1 to disable the GUI. For Windows and macOS, the GUI is empowered of course and runs on port 5002. For Linux, the GUI is handicapped as a matter of course.&lt;br&gt;
When the Agent is running, use the datadog-agent launch-gui command to open the GUI in your default web browser.&lt;/p&gt;

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