feat: добавлена обработка "достоверных" документов, направляемых посредством отправления агенту "достоверных" документов, добавлен функционал добавления title в chunk content`а, обновлены configmap.yaml и values.yaml
This commit is contained in:
1 parent
2b1f85bfc1
commit
dd0a124e36
35 files changed
+3107
-183
No files matched your search
@@ -24,5 +24,8 @@ services:
|
||||
restart: "no"
|
||||
# Даём время корректно закрыть S3/Qdrant клиенты по SIGTERM
|
||||
stop_grace_period: 30s
|
||||
# Позволяет из контейнера обращаться к сервисам на хосте
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
volumes:
|
||||
- ../logs:/app/logs
|
||||
@@ -0,0 +1,39 @@
|
||||
# Один batch-прогон против S3/Qdrant, запущенных на хосте.
|
||||
#
|
||||
# docker compose -f docker/docker-compose.cloud.yml \
|
||||
# -f docker/docker-compose.local.yml run -d --name etl-run etl-service
|
||||
#
|
||||
# Prometheus (собирает метрики etl-run):
|
||||
#
|
||||
# docker compose -f docker/docker-compose.cloud.yml \
|
||||
# -f docker/docker-compose.local.yml up -d prometheus
|
||||
services:
|
||||
etl-service:
|
||||
environment:
|
||||
S3_ENDPOINT_URL: http://host.docker.internal:9000
|
||||
QDRANT_URL: http://host.docker.internal:6333
|
||||
|
||||
prometheus:
|
||||
image: prom/prometheus:latest
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
||||
ports:
|
||||
- "9090:9090"
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:latest
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3002:3000"
|
||||
environment:
|
||||
GF_SECURITY_ADMIN_USER: admin
|
||||
GF_SECURITY_ADMIN_PASSWORD: admin
|
||||
GF_AUTH_ANONYMOUS_ENABLED: "true"
|
||||
GF_AUTH_ANONYMOUS_ORG_ROLE: Viewer
|
||||
GF_USERS_ALLOW_SIGN_UP: "false"
|
||||
volumes:
|
||||
- ./grafana/provisioning:/etc/grafana/provisioning:ro
|
||||
- ./grafana/dashboards:/var/lib/grafana/dashboards:ro
|
||||
depends_on:
|
||||
- prometheus
|
||||
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"title": "ETL Service",
|
||||
"uid": "etl-service",
|
||||
"schemaVersion": 39,
|
||||
"version": 1,
|
||||
"refresh": "5s",
|
||||
"time": {"from": "now-1h", "to": "now"},
|
||||
"panels": [
|
||||
{
|
||||
"id": 1,
|
||||
"type": "stat",
|
||||
"title": "Rows processed",
|
||||
"gridPos": {"h": 4, "w": 6, "x": 0, "y": 0},
|
||||
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
||||
"targets": [{"expr": "etl_rows_processed_total", "refId": "A", "instant": true}],
|
||||
"options": {"reduceOptions": {"calcs": ["lastNotNull"]}, "colorMode": "value"}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"type": "stat",
|
||||
"title": "Chunks upserted",
|
||||
"gridPos": {"h": 4, "w": 6, "x": 6, "y": 0},
|
||||
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
||||
"targets": [{"expr": "etl_chunks_upserted_total", "refId": "A", "instant": true}],
|
||||
"options": {"reduceOptions": {"calcs": ["lastNotNull"]}, "colorMode": "value"}
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"type": "stat",
|
||||
"title": "Files processed",
|
||||
"gridPos": {"h": 4, "w": 6, "x": 12, "y": 0},
|
||||
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
||||
"targets": [{"expr": "etl_files_processed_total", "refId": "A", "instant": true}],
|
||||
"options": {"reduceOptions": {"calcs": ["lastNotNull"]}, "colorMode": "value"}
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"type": "stat",
|
||||
"title": "Files failed",
|
||||
"gridPos": {"h": 4, "w": 6, "x": 18, "y": 0},
|
||||
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
||||
"targets": [{"expr": "etl_files_failed_total", "refId": "A", "instant": true}],
|
||||
"options": {"reduceOptions": {"calcs": ["lastNotNull"]}, "colorMode": "background"}
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"type": "timeseries",
|
||||
"title": "Rows per second",
|
||||
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 4},
|
||||
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
||||
"targets": [
|
||||
{"expr": "rate(etl_rows_processed_total[$__rate_interval])", "refId": "A", "legendFormat": "rows/s"}
|
||||
],
|
||||
"options": {"legend": {"displayMode": "list", "placement": "bottom"}}
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"type": "timeseries",
|
||||
"title": "Chunks per second",
|
||||
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 4},
|
||||
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
||||
"targets": [
|
||||
{"expr": "rate(etl_chunks_upserted_total[$__rate_interval])", "refId": "A", "legendFormat": "chunks/s"}
|
||||
],
|
||||
"options": {"legend": {"displayMode": "list", "placement": "bottom"}}
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"type": "timeseries",
|
||||
"title": "Cumulative rows and chunks",
|
||||
"gridPos": {"h": 8, "w": 24, "x": 0, "y": 12},
|
||||
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
||||
"targets": [
|
||||
{"expr": "etl_rows_processed_total", "refId": "A", "legendFormat": "rows"},
|
||||
{"expr": "etl_chunks_upserted_total", "refId": "B", "legendFormat": "chunks"}
|
||||
],
|
||||
"options": {"legend": {"displayMode": "list", "placement": "bottom"}}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
apiVersion: 1
|
||||
|
||||
providers:
|
||||
- name: ETL
|
||||
orgId: 1
|
||||
folder: ETL
|
||||
type: file
|
||||
disableDeletion: false
|
||||
editable: true
|
||||
options:
|
||||
path: /var/lib/grafana/dashboards
|
||||
@@ -0,0 +1,9 @@
|
||||
apiVersion: 1
|
||||
|
||||
datasources:
|
||||
- name: Prometheus
|
||||
uid: prometheus
|
||||
type: prometheus
|
||||
access: proxy
|
||||
url: http://prometheus:9090
|
||||
isDefault: true
|
||||
@@ -0,0 +1,8 @@
|
||||
global:
|
||||
scrape_interval: 15s
|
||||
|
||||
scrape_configs:
|
||||
- job_name: etl-service
|
||||
static_configs:
|
||||
# etl-run — имя контейнера, заданное при `docker compose run --name etl-run`
|
||||
- targets: ["etl-run:9100"]
|
||||
Reference in new issue
Block a user