[hw-7] add metrics, tracing

This commit is contained in:
Никита Шубин
2025-07-26 14:15:40 +00:00
parent 342bd3f726
commit 4396bebe80
38 changed files with 717 additions and 36 deletions

17
prometheus/prometheus.yml Normal file
View File

@@ -0,0 +1,17 @@
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'prometheus'
# Override the global default and scrape targets from this job every 5 seconds.
scrape_interval: 5s
static_configs:
- targets: ['localhost:9090']
- job_name: 'cart'
scrape_interval: 5s
static_configs:
- targets: ['cart:8080']
- job_name: 'loms'
scrape_interval: 5s
static_configs:
- targets: ['loms:8084']