forked from inno-devops-labs/S25-core-course-labs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6dcca4c
commit c0a61c4
Showing
22 changed files
with
207 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ Jinja2==3.1.5 | |
MarkupSafe==3.0.2 | ||
pytz==2024.2 | ||
Werkzeug==3.1.3 | ||
prometheus_client==0.21.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# Metrics | ||
|
||
This report provides results of the lab with demonstration of screenshots. | ||
|
||
## Task 1 | ||
|
||
In this step service `prometheus` was introduced into `docker-compose.yml`. Process of configuration is similar to the previous lab (check services `grafana` and `promtail`). The result you may see on the screenshot. | ||
|
||
 | ||
 | ||
 | ||
|
||
## Task 2 | ||
|
||
Dashboards from examples ( and ) was used. The process was simple (just importing, using UI, which is intuitive). Metrics for other services was introdiced. There are results: | ||
|
||
**Loki**: | ||
|
||
 | ||
 | ||
 | ||
|
||
**Prometheus:** | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
|
||
**Other services' metrics:** | ||
|
||
 | ||
 | ||
|
||
Log rotation mechanism realised by introducing | ||
|
||
```yaml | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: "10m" | ||
max-file: "3" | ||
``` | ||
for each component in `docker-compose.yml`. | ||
|
||
For memory limits was used | ||
|
||
```yaml | ||
mem_limit: 512m | ||
``` | ||
|
||
Finally, all services was gathered (python_app from bonus task too) | ||
|
||
 | ||
|
||
## Bonus task | ||
|
||
**Metrics:** | ||
|
||
 | ||
|
||
**Health check:** | ||
|
||
Was introduced | ||
|
||
```yaml | ||
healthcheck: | ||
test: ["CMD", "curl", "-f", "http://localhost:<port>/<url's tail>"] | ||
interval: <interval>s | ||
timeout: <timeout>s | ||
retries: <retries> | ||
``` | ||
|
||
for each service. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.