Skip to content

Commit

Permalink
Webstack monitoring
Browse files Browse the repository at this point in the history
Web debugging
  • Loading branch information
the1Riddle authored Jan 24, 2024
2 parents 849f036 + 6505bb6 commit e5f5ea9
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions 0x18-webstack_monitoring/2-setup_datadog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

16 changes: 16 additions & 0 deletions 0x18-webstack_monitoring/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Webstack monitoring

Webstack monitoring involves the continuous tracking and analysis of various components within a web application's technology stack to ensure optimal performance, availability, and reliability. This comprehensive monitoring approach covers multiple layers of the webstack, including the infrastructure (servers, network), operating system, web server, database, and application code. Monitoring tools gather data on key metrics such as response times, error rates, resource utilization, and user interactions.

The goal is to proactively identify issues, troubleshoot bottlenecks, and optimize the overall system for improved user experience. Effective webstack monitoring plays a crucial role in maintaining the health and performance of web applications, enabling rapid detection and resolution of issues to ensure a seamless and efficient user experience.

Background Context
------------------

“You cannot fix or improve what you cannot measure” is a famous saying in the Tech industry. In the age of the data-ism, monitoring how our Software systems are doing is an important thing. In this project, we will implement one of many tools to measure what is going on our servers.

Web stack monitoring can be broken down into 2 categories:
- Application monitoring: getting data about your running software and making sure it is behaving as expected
- Server monitoring: getting data about your virtual or physical server and making sure they are not overloaded (could be CPU, memory, disk or network overload)

![image](https://github.com/the1Riddle/alx-system_engineering-devops/assets/125451537/79f4c7ea-e6fd-468b-b4ad-07a3c63e052d)
12 changes: 12 additions & 0 deletions 0x1B-web_stack_debugging_4/0-the_sky_is_the_limit_not.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# a script that fix and allow unlimited traffic/requests

exec {'replace':
provider => shell,
command => 'sudo sed -i "s/ULIMIT=\"-n 15\"/ULIMIT=\"-n 4096\"/" /etc/default/nginx',
before => Exec['restart'],
}

exec {'restart':
provider => shell,
command => 'sudo service nginx restart',
}
12 changes: 12 additions & 0 deletions 0x1B-web_stack_debugging_4/1-user_limit.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# this fix and allow user holberton with unlimited limits

exec {'replace-1':
provider => shell,
command => 'sudo sed -i "s/nofile 5/nofile 50000/" /etc/security/limits.conf',
before => Exec['replace-2'],
}

exec {'replace-2':
provider => shell,
command => 'sudo sed -i "s/nofile 4/nofile 40000/" /etc/security/limits.conf',
}
3 changes: 3 additions & 0 deletions 0x1B-web_stack_debugging_4/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Web stack debugging #4

![image](https://github.com/the1Riddle/alx-system_engineering-devops/assets/125451537/5ea0a15b-c9e6-43ea-9049-208155ab8b7f)

0 comments on commit e5f5ea9

Please sign in to comment.