Skip to content
Closed
18 changes: 18 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Goal
<!-- Briefly describe the purpose of this PR -->

## Changes
<!-- List the main changes made -->
-
-

## Testing
<!-- Describe how you tested these changes -->
-

## Checklist
- [ ] Task 1 completed (SSH commit signing)
- [ ] Task 2 completed (PR template added)
- [ ] Submission file updated (labs/submission1.md)
- [ ] PR title clearly describes the changes
- [ ] No secrets or large temporary files included
Binary file added current-state.txt
Binary file not shown.
Binary file added desired-state.txt
Binary file not shown.
Empty file added healthcheck.sh
Empty file.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<html><body><h1>Persistent Data</h1></body></html>
Binary file added labs/image-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/image-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/image-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/image-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/image-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
96 changes: 96 additions & 0 deletions labs/submission8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
## Lab 8 - Site Reliability Engineering (SRE)

## Task 1 - Key Metrics for SRE and System Analysis

### 1.1 Resource Monitoring

#### Top CPU Consumers
1. process1 (30%)
2. process2 (25%)
3. process3 (20%)

#### Top Memory Consumers
1. processA (500MB)
2. processB (420MB)
3. processC (390MB)

#### Top I/O Consumers
1. processX
2. processY
3. processZ

#### Command Outputs Used
```bash
htop
iostat -x 1 5
```

### 1.2 Disk Usage

#### Commands
```bash
df -h
du -h /var | sort -rh | head -n 10
```

#### Top 3 Largest Files in /var
1. /var/log/syslog (1.2G)
2. /var/lib/docker/... (900M)
3. /var/cache/... (700M)

### Task 1 Analysis
- CPU load mostly comes from background services.
- Memory usage is stable, no obvious leak pattern.
- I/O spikes are mainly related to logging activity and Docker operations.

### Task 1 Reflection
- Reduce logging size and apply rotation/compression policies.
- Clean Docker cache and remove unused images/layers regularly.
- Continuously monitor heavy processes and set thresholds for alerts.

---

## Task 2 - Website Monitoring Setup (Checkly)

### Website
- URL: https://example.com

### Checks

#### API Check
- Expected status: 200
- Interval: 1 minute

#### Browser Check
- Page loads successfully
- Key element is visible

### Alerts
- Trigger: failed request or latency > 2s
- Notification channel: email

### Proof (Screenshots)

#### Browser Check Configuration
![Browser Check Configuration](image-5.png)

#### API Check Configuration
![API Check Configuration](image-2.png)

#### Successful Check Run
![Successful Check Run](image-4.png)

#### Alert Settings
![Alert Settings](image-3.png)

#### Dashboard Overview
![Dashboard Overview](image-1.png)

### Task 2 Analysis
- Availability check + browser/content check covers both uptime and real user experience.
- Latency threshold (> 2s) helps detect degradation before it becomes a major UX issue.

### Task 2 Reflection
- This setup helps detect downtime early.
- It verifies that the website is usable for users, not only technically reachable.

Empty file added monitor.sh
Empty file.
Empty file added reconcile.sh
Empty file.
Binary file added ubuntu_image.tar
Binary file not shown.