ЛР7
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-11-24 19:50:03 +03:00
parent 20afc2c790
commit fd932c6de4
84 changed files with 3738 additions and 15 deletions
@@ -0,0 +1,11 @@
apiVersion: 1
providers:
- name: 'default'
orgId: 1
folder: ''
type: file
disableDeletion: false
editable: true
options:
path: /etc/grafana/provisioning/dashboards
@@ -0,0 +1,45 @@
{
"title": "Messenger Observability",
"panels": [
{
"type": "timeseries",
"title": "API RPS",
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"targets": [
{
"expr": "rate(http_server_requests_seconds_count{job=\"messenger-api\"}[1m])",
"legendFormat": "{{uri}}"
}
]
},
{
"type": "timeseries",
"title": "API Errors (5xx)",
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"targets": [
{
"expr": "rate(http_server_requests_seconds_count{job=\"messenger-api\",status=~\"5..\"}[1m])"
}
]
},
{
"type": "timeseries",
"title": "Worker Jobs (RabbitMQ)",
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"targets": [
{
"expr": "rate(rabbitmq_queue_messages_published_total{queue=\"image-processing-queue\"}[1m])"
}
]
}
]
}
@@ -0,0 +1,28 @@
apiVersion: 1
datasources:
- name: Prometheus
uid: PBFA97CFB590B2093 # <-- UID здесь
type: prometheus
access: proxy
url: http://prometheus:9090 # <-- А URL здесь
isDefault: true
- name: Tempo
type: tempo
access: proxy
url: http://tempo:3200
jsonData:
tracesToLogsV2:
datasourceUid: loki
tags: [{key: 'service.name', value: 'service_name'}]
- name: Loki
uid: loki # <-- Добавьте UID, чтобы ссылка из Tempo работала
type: loki
access: proxy
url: http://loki:3100
jsonData:
derivedFields:
- name: TraceID
matcherRegex: 'trace_id=(\w+)'
url: '$${__value.raw}'
datasourceUid: tempo